Pātuhitia tēnei: Mathematics in the time of the pharaohs