a(n) = S(n) - S(n-1) = k*3^n + b -k*3^(n-1) -b = 2k * 3^(n-1)
所以a(1) = 2k
又s(1) = a(1) = k*3 + b
因此2k = 3k + b
k+b = 0