We know that the nth term and sum of nterms of an A.P. with first term a and common difference d are respectively a+(n−1)d and 2n[2a+(n−1)d].
Let, the number of terms in the given A.P. be 2n then there are 22n=n even terms and n odd terms.
Then, T1=a and T2n=a+(2n−1)d
Given T2n−T1=221
⇒(2n−1)d=221
⇒2nd−d=221...(i)
Also, the sum of odd terms i.e. a+(a+2d)+(a+4d)+... is
2n[2a+(n−1)2d]=24
⇒2a+(n−1)2d=n48...(ii)
And, the sum of even terms i.e. (a+d)+(a+3d)+(a+5d)+... is
2n[2(a+d)+(n−1)2d]=30
⇒2n[2a+(n−1)2d+2d]=30
Put the value from equation (ii) to get
2n[n48+2d]=30
⇒24+dn=30
⇒nd=6...(iii)
Put this value in the equation (i), to get
2×6−d=221
⇒d=224−21=23
Now, put d in the equation (iii), to get
⇒n×23=6
⇒n=4
⇒2n=8
Thus, the number of terms in the given A.P. is 8.