General Formula
For an expansion of the form (x+a)n+(x−a)n:
-
If n is even, the number of terms is 2n+1.
-
If n is odd, the number of terms is 2n+1.
Solving
In the given expression, n=100, which is an even number.
Using the expansion of binomial theorem:
(x+a)100=(0100)x100+(1100)x99a+(2100)x98a2+⋯+(100100)a100
(x−a)100=(0100)x100−(1100)x99a+(2100)x98a2−⋯+(100100)a100
Adding the two expansions, the terms with odd powers of a (like a1,a3,…,a99) cancel out. The terms with even powers of a (like a0,a2,…,a100) are doubled:
(x+a)100+(x−a)100=2[(0100)x100+(2100)x98a2+⋯+(100100)a100]
Calculation of Number of Terms
The terms are corresponding to the even subscripts 0,2,4,…,100. This is an Arithmetic Progression: 0,2,4,…,100.
Alternatively, using the formula for even n: