Pātuhitia tēnei: Discrete mathematics and its application