当n为偶数时,Sn=[4(1^2-2^2+3^2-4^2+.+(n-1)^2-n^2]*1/9=4/9*[-(1+2)-(3+4)-.-(n-1+n)=-4/9*n(n+1)/2=-2n(n+1)/9
当n为奇数时,Sn=Sn-1+bn=-2n(n+1)/9+(4n^2-1)*1/9=(2n^2-2n-1)/9
当n为偶数时,Sn=[4(1^2-2^2+3^2-4^2+.+(n-1)^2-n^2]*1/9=4/9*[-(1+2)-(3+4)-.-(n-1+n)=-4/9*n(n+1)/2=-2n(n+1)/9
当n为奇数时,Sn=Sn-1+bn=-2n(n+1)/9+(4n^2-1)*1/9=(2n^2-2n-1)/9