若数列{an}的前n项和为Sn=n2,则该数列的通项公式?
问题描述:
若数列{an}的前n项和为Sn=n2,则该数列的通项公式?
A.an=2n-1 B.an=2n+1 C.an=-2n-1 D.an=-2n+1
答
A.an=2n-1
Sn=n^2
Sn-1=(n-1)^2
an=Sn-Sn-1
=n^2-(n-1)^2
=n^2-n^2+2n-1
=2n-1