an 是等差数列,所以 差d=(a6-a3)/(6-3)=2
所以an=5+(n-3)*2 =2n-1
Sn=a1+a2+a3+...+an
=1+3+5+...+(2n-1)
=(1+2n-1)*n/2
=n^2