Pātuhitia tēnei: Ergodic theory with a view towards number theory