Ted is using his Maths knowledge to learn how to spell! (Apologies for the truly awful Miss Jean Brodie impression, btw).