Euler solved problem 30