a1=S1=3-2+1=2
n>=2:
an=Sn-S(n-1)=3n^2-2n+1-[3(n-1)^2-2(n-1)+1]=6n-3+2=6n-1
a1=2不=6-1
故有:
an=2,(n=1)
=6n-1,(n>=2)