A1 = 1, Sn = nan-n (n-1), the general formula of an

A1 = 1, Sn = nan-n (n-1), the general formula of an

Sn=nan-n(n-1)
an=Sn-S(n-1)=nan-n(n-1)-(n-1)a(n-1)+(n-1)(n-2)
It is reduced to (n-1) [an-a (n-1)] = 2 (n-1)
① When n ≠ 1, an-a (n-1) = 2
The sequence {an} is a tolerance arithmetic sequence with 1 as the first term and 2 as the tolerance arithmetic sequence
an=a1+(n-1)d=1+2(n-1)=2n-1
When n ≠ 1, an = 2N-1