Euler solved problem 41