Sn=n2(a+l)S_n = \tfrac n2(a + l)Sn=2n(a+l) where lll is last term. Or Sn=n2[2a+(n−1)d]S_n = \tfrac n2 [2a + (n-1)d]Sn=2n[2a+(n−1)d].