f(n)=n^2+(n+1)^2=2n^2+2n+1
f(0)=1
f(1)=5
f(2)=13