n≥2n \geq 2n≥2时: an=Sn−Sn−1a_n = S_n - S_{n-1}an=Sn−Sn−1 n=1n = 1n=1时: an=S1a_n = S_1an=S1