If the sum of first 7 terms of an AP is 49 and that of last 17 terms is 289, find the sum of its first n terms.
Given that, S7=49 and S17=289
Sn=n2[2a+(n−1)d]∴S7=49=72[2a+(7−1)d]⇒49=72=(2a+6d)⇒(a+3d)=7......(i)Similarly,S17=172[2a+(17−1)d]⇒289=172[2a+16d]⇒(a+8d)=17......(ii)
Substracting equation (i) from equation (ii), we get that 5d = 10.
Therefore, the value of d = 2 and a = 7-3d=1
∴Sn=n2[2a+(n−1)d]=n2[2(1)+(n−1)(2)]
=n2(2+2n−2)=n2(2n)=n2
Therefore, the sum of n terms of the AP is n2