A[n]=S[n]-S[n-1]=n^2+2n-{(n-1)^2+2(n-1)}=2n+1