Between topology and number theory