Maths teacher and mathematician