设数列{an}的前n项和为Sn,且a1=1,Sn=nan-2n(n-1)