勵志

勵志人生知識庫

s n公式

等差數列的前n項和公式可以表示為:

Sn = [n(A1 + An)] / 2

或者

Sn = nA1 + [n(n - 1)d] / 2

其中,Sn是前n項和,A1是首項,An是第n項,d是公差。