Mr. Hansen, Mathematics