solve a(n+1) = (a(n))^2 - a(n) + 1, a(1)=2