Pātuhitia tēnei: The arithmetic of dynamical systems