Solution:
Concept: The expansions of (1+x)N and (1−x)N contain the same coefficients NCr. In (1−x)N the general term is NCr(−x)r=(−1)rNCrxr, so the terms with odd powers of x change sign and the terms with even powers stay the same.
Step 1 — Write both expansions. Here N=2n. Writing the coefficients as 2nC0,2nC1,…, the two expansions are
(1+x)2n=2nC0+2nC1x+2nC2x2+2nC3x3+⋯+2nC2nx2n
(1−x)2n=2nC0−2nC1x+2nC2x2−2nC3x3+⋯+2nC2nx2n
Step 2 — Subtract. When we subtract, every even-power term appears with the same sign in both lines and cancels, while every odd-power term doubles:
(1+x)2n−(1−x)2n=2(2nC1x+2nC3x3+⋯+2nC2n−1x2n−1)
Step 3 — Count the odd powers. The powers left are the odd numbers 1,3,5,…,2n−1. The kth odd number is 2k−1, so the last one, 2n−1, is the kth where
2k−1=2n−1
k=n
So there are n odd powers, and hence n terms.
Step 4 — Check with a small case. Take n=2 as a test value. Expanding both brackets and subtracting gives
(1+x)4−(1−x)4=8x+8x3
This has 2 terms, which matches the answer n for this case.
Therefore, the number of terms is n.