Sn=2an+1S(n-1)=2a(n-1)+1所以Sn-S(n-1)=an=2an-2a(n-1)an=2a(n-1)s1=a1=2a1+1得a1=-1故{an}是首项为a1=-1,公比为2的等差数列通项公式an=-2^(n-1)
Sn=2an+1Sn-1=2an-1+1两式相减的an=2an-1所以{an}是等比数列,公比为2S1=a1=2a1+1得a1=-1/2所以an=-1/2*2^(n-1)=-2^(n-2)