Euler solved problem 40