If the first n terms of the sequence {an} and Sn = n2-10n (n = 1,2,3...), then the general term formula of the sequence is What is the smallest term in the sequence {Nan}

If the first n terms of the sequence {an} and Sn = n2-10n (n = 1,2,3...), then the general term formula of the sequence is What is the smallest term in the sequence {Nan}

solution
When n = 1, S1 = A1 = 1-10 = - 9
When n ≥ 2
an=sn-s(n-1)
=n²-10n-(n-1)²+10(n-1)
=n²-10n-(n²-2n+1)+10n-10
=n²-10n-n²+2n-1+10n-10
=2n-11
When n = 1, A1 = 2 × 1-11 = - 9
∴an=2n-11