sn=a1(1-q^n)/(1-q)=a1(q^n-1)/(q-1)= (a1*q^n-a1)/(q-1) = 2*3^(n+1)+k = 6*3^n+k
所以q=3
所以sn = (a1*3^n - a1)/2 = 6*3^n+k
所以a1/2 = 6,a1 = 12
k = -12/2 = -6
sn=a1(1-q^n)/(1-q)=a1(q^n-1)/(q-1)= (a1*q^n-a1)/(q-1) = 2*3^(n+1)+k = 6*3^n+k
所以q=3
所以sn = (a1*3^n - a1)/2 = 6*3^n+k
所以a1/2 = 6,a1 = 12
k = -12/2 = -6