Question
Question: The number of terms of an A.P. is even; the sum of all the odd terms is 24, the sum of all the even ...
The number of terms of an A.P. is even; the sum of all the odd terms is 24, the sum of all the even terms is 30 and the last term exceeds the first by 221. Then the number of terms which are integers in the A.P. is :

2
3
4
6
4
Solution
Let the number of terms in the A.P. be 2n. Let the first term be a and the common difference be d. The sum of the odd-indexed terms is n[a+(n−1)d]=24 --- (1) The sum of the even-indexed terms is n[a+nd]=30 --- (2) The last term exceeds the first term by (2n−1)d=221 --- (3)
Subtracting equation (1) from equation (2) gives nd=6 --- (4)
Dividing equation (3) by equation (4): nd(2n−1)d=621/2⟹n2n−1=47 8n−4=7n⟹n=4.
The total number of terms is 2n=8. From nd=6, we get 4d=6⟹d=23. From equation (1), 4[a+(4−1)23]=24⟹4[a+29]=24⟹a+29=6⟹a=23.
The terms of the A.P. are ak=a+(k−1)d=23+(k−1)23=23k. For ak to be an integer, k must be even. For k∈{1,2,…,8}, the even values of k are {2,4,6,8}. Thus, there are 4 terms that are integers.