Euler solved problem 37