De Morgan made this puzzling statement about his age: he said that he was $x$ years old in the year $x^2$.