In short
The binomial theorem expands (1 + x)^n into a sum of terms \binom{n}{r}x^r. By substituting complex numbers — especially the cube roots of unity 1, \omega, \omega^2 — you can isolate specific sub-sums of the binomial coefficients: the sum of every third coefficient, or the sum of only the even-indexed or odd-indexed terms. These tricks appear throughout JEE problems on binomial identities.
You know how to expand (1 + x)^n and you know that setting x = 1 gives \sum \binom{n}{r} = 2^n, while x = -1 gives the alternating sum \sum (-1)^r \binom{n}{r} = 0. These are the first two "substitution tricks" — plug in a specific value of x and the sum collapses to something neat.
But what if you want only the coefficients at positions r = 0, 3, 6, 9, \dots — every third coefficient? Setting x = 1 adds all of them, and x = -1 alternates signs. Neither isolates the ones divisible by 3. There is no real number you can plug in to do this.
The key insight: a cube root of unity \omega = e^{2\pi i/3} = -\frac{1}{2} + \frac{\sqrt{3}}{2}i cycles with period 3: \omega^0 = 1, \omega^1 = \omega, \omega^2 = \omega^2, \omega^3 = 1, \omega^4 = \omega, and so on. This periodicity is exactly the filter you need.
The roots-of-unity filter
Here is the central idea. Start with the expansion:
Write three equations by substituting x = 1, x = \omega, and x = \omega^2:
Now add all three equations. Look at what happens to each coefficient \binom{n}{r}:
- The coefficient of \binom{n}{r} in the sum is 1 + \omega^r + \omega^{2r}.
- When r is a multiple of 3: \omega^r = 1, so 1 + 1 + 1 = 3.
- When r is not a multiple of 3: 1 + \omega^r + \omega^{2r} = 0 (the fundamental property of cube roots of unity: 1 + \omega + \omega^2 = 0).
So adding the three equations kills every term where r is not divisible by 3, and triples the ones that are:
This is the roots-of-unity filter — one of the most elegant uses of complex numbers in combinatorics.
Simplifying (1 + \omega)^n and (1 + \omega^2)^n
To make the formula concrete, you need to know the values of 1 + \omega and 1 + \omega^2.
Recall \omega = -\frac{1}{2} + \frac{\sqrt{3}}{2}i and \omega^2 = -\frac{1}{2} - \frac{\sqrt{3}}{2}i.
Convert to polar form. The modulus is |1 + \omega| = \sqrt{\frac{1}{4} + \frac{3}{4}} = 1, and the argument is \frac{\pi}{3} (since \cos\frac{\pi}{3} = \frac{1}{2} and \sin\frac{\pi}{3} = \frac{\sqrt{3}}{2}). So:
Similarly, 1 + \omega^2 = \frac{1}{2} - \frac{\sqrt{3}}{2}i = e^{-i\pi/3}.
Adding these two: (1+\omega)^n + (1+\omega^2)^n = 2\cos\frac{n\pi}{3}.
So the every-third-coefficient sum becomes:
Sum of every third binomial coefficient
The value of \cos\frac{n\pi}{3} cycles with period 6:
| n \bmod 6 | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|
| \cos\frac{n\pi}{3} | 1 | \frac{1}{2} | -\frac{1}{2} | -1 | -\frac{1}{2} | \frac{1}{2} |
For n = 6: \binom{6}{0} + \binom{6}{3} + \binom{6}{6} = 1 + 20 + 1 = 22. From the formula: \frac{64 + 2(1)}{3} = \frac{66}{3} = 22. It checks out.
Separating real and imaginary parts
There is a second powerful technique: expand (1 + x)^n with x = i (the imaginary unit) and separate real and imaginary parts.
Set x = i in (1 + x)^n = \sum \binom{n}{r} x^r:
The powers of i cycle with period 4: i^0 = 1, i^1 = i, i^2 = -1, i^3 = -i, i^4 = 1, and so on. Grouping real and imaginary parts:
Real part: \binom{n}{0} - \binom{n}{2} + \binom{n}{4} - \binom{n}{6} + \cdots
Imaginary part: \binom{n}{1} - \binom{n}{3} + \binom{n}{5} - \binom{n}{7} + \cdots
To evaluate these, convert 1 + i to polar form. The modulus is \sqrt{2} and the argument is \pi/4, so (1 + i)^n = (\sqrt{2})^n \, e^{in\pi/4} = 2^{n/2}\left(\cos\frac{n\pi}{4} + i\sin\frac{n\pi}{4}\right).
Equating real and imaginary parts:
Special sums — a toolkit
The substitution method is versatile. Here is a summary of the most useful special sums, all derived from the binomial expansion of (1 + x)^n with carefully chosen values of x.
| Substitution | Result |
|---|---|
| x = 1 | \displaystyle\sum_{r=0}^{n} \binom{n}{r} = 2^n |
| x = -1 | \displaystyle\sum_{r=0}^{n} (-1)^r \binom{n}{r} = 0 |
| Add x = 1 and x = -1 | \binom{n}{0} + \binom{n}{2} + \binom{n}{4} + \cdots = 2^{n-1} |
| Subtract x = -1 from x = 1 | \binom{n}{1} + \binom{n}{3} + \binom{n}{5} + \cdots = 2^{n-1} |
| x = 1, \omega, \omega^2 (add) | \binom{n}{0} + \binom{n}{3} + \binom{n}{6} + \cdots = \frac{2^n + 2\cos\frac{n\pi}{3}}{3} |
| x = i (real part) | \binom{n}{0} - \binom{n}{2} + \binom{n}{4} - \cdots = 2^{n/2}\cos\frac{n\pi}{4} |
| x = i (imaginary part) | \binom{n}{1} - \binom{n}{3} + \binom{n}{5} - \cdots = 2^{n/2}\sin\frac{n\pi}{4} |
The pattern: pick x so that x^r cycles with the same period as the filter you want, then add or subtract the equations to isolate the desired sub-sum.
Interactive: watch the cube-roots filter in action
Set n from 3 to 9 using the slider. The bar chart shows all \binom{n}{r} values. The bars at positions r = 0, 3, 6, \dots are highlighted in red — these are the ones that survive the roots-of-unity filter. The readout shows their sum and compares it to \frac{2^n + 2\cos(n\pi/3)}{3}.
Two worked examples
Example 1: Find $\binom{9}{0} + \binom{9}{3} + \binom{9}{6} + \binom{9}{9}$
Step 1. Recognise the pattern. The sum picks out every third binomial coefficient from row n = 9, starting at r = 0.
Why: the positions 0, 3, 6, 9 are exactly the multiples of 3. This is the roots-of-unity filter.
Step 2. Apply the formula. With n = 9:
Why: use \binom{n}{0} + \binom{n}{3} + \binom{n}{6} + \cdots = \frac{2^n + 2\cos(n\pi/3)}{3} directly.
Step 3. Evaluate \cos\frac{9\pi}{3}. Since \frac{9\pi}{3} = 3\pi, and \cos 3\pi = \cos\pi = -1.
Why: 3\pi and \pi differ by 2\pi, so they have the same cosine.
Step 4. Compute the answer.
Step 5. Verify directly. \binom{9}{0} = 1, \binom{9}{3} = 84, \binom{9}{6} = 84, \binom{9}{9} = 1. Sum: 1 + 84 + 84 + 1 = 170.
Result: \binom{9}{0} + \binom{9}{3} + \binom{9}{6} + \binom{9}{9} = 170.
The direct verification confirms the formula. Without complex numbers, computing this sum would require calculating each coefficient separately — the filter gives it in one shot.
Example 2: Find $\binom{8}{0} - \binom{8}{2} + \binom{8}{4} - \binom{8}{6} + \binom{8}{8}$
Step 1. Recognise the pattern. This is the alternating sum of even-indexed binomial coefficients from row n = 8 — exactly the real part of (1 + i)^n.
Why: the pattern +C_0, -C_2, +C_4, -C_6, +C_8 matches \text{Re}[(1+i)^n] because i^0 = 1, i^2 = -1, i^4 = 1, i^6 = -1, i^8 = 1.
Step 2. Apply the formula with n = 8.
Why: the real-part formula gives 2^{n/2}\cos(n\pi/4).
Step 3. Evaluate. \cos 2\pi = 1, so the sum is 16 \cdot 1 = 16.
Why: 2\pi is a full rotation, bringing cosine back to 1.
Step 4. Verify. \binom{8}{0} = 1, \binom{8}{2} = 28, \binom{8}{4} = 70, \binom{8}{6} = 28, \binom{8}{8} = 1. The alternating sum: 1 - 28 + 70 - 28 + 1 = 16.
Result: \binom{8}{0} - \binom{8}{2} + \binom{8}{4} - \binom{8}{6} + \binom{8}{8} = 16.
The sum 1 - 28 + 70 - 28 + 1 looks like it should be complicated, but the complex-number approach collapses it to 16 in one line. That is the power of this technique: large cancellations that are painful to do directly become automatic when viewed through the lens of complex exponentials.
Common confusions
-
"I can use the cube-root filter to isolate every second coefficient." The cube roots of unity have period 3, so they filter every third term. To isolate every second term (even-indexed vs odd-indexed), use the second roots of unity — which are just 1 and -1. Setting x = 1 and x = -1 and adding or subtracting does the job, and you do not need complex numbers for that.
-
"(1 + \omega)^n is always a real number." It is not — (1 + \omega)^n = e^{in\pi/3} is complex in general. But (1 + \omega)^n + (1 + \omega^2)^n is always real, because 1 + \omega and 1 + \omega^2 are conjugates, and conjugate powers add to 2\text{Re}[(1+\omega)^n].
-
"The method only works for (1 + x)^n." The filter works for any binomial expansion. For (a + b)^n = \sum \binom{n}{r}a^{n-r}b^r, substitute b = \omega \cdot b_0 (with the appropriate scaling) to select every third term. The principle — that 1 + \omega^r + \omega^{2r} annihilates non-multiples of 3 — is universal.
-
"I need to memorise the formula for \cos(n\pi/3)." You do not. Just reduce n modulo 6 and evaluate \cos(n\pi/3) from the standard angle values: \cos 0 = 1, \cos(\pi/3) = 1/2, \cos(2\pi/3) = -1/2, \cos\pi = -1, and so on.
Going deeper
If you can apply the roots-of-unity filter, separate real and imaginary parts from (1+i)^n, and evaluate the resulting trigonometric expressions, you have the complete toolkit for this topic. What follows is for readers who want to see the general principle.
The general k-th roots filter
The cube-roots filter for every third coefficient is a special case of a general idea. To extract every k-th coefficient — those at positions r \equiv 0 \pmod{k} — use the k-th roots of unity 1, \zeta, \zeta^2, \dots, \zeta^{k-1} where \zeta = e^{2\pi i/k}. The identity
is the orthogonality relation for roots of unity. Adding the k equations from x = 1, \zeta, \zeta^2, \dots, \zeta^{k-1}:
For k = 2 this gives the even-coefficient sum 2^{n-1}. For k = 3 it gives the formula derived above. For k = 4, you would use the fourth roots of unity 1, i, -1, -i.
Relation to the Discrete Fourier Transform
The roots-of-unity filter is, in disguise, the Discrete Fourier Transform (DFT) applied to the sequence of binomial coefficients. The DFT is the workhorse behind signal processing, data compression, and fast polynomial multiplication. The fact that you can use it to pick apart binomial sums is a hint that these ideas from algebra, combinatorics, and analysis are all connected at a deep level.
Where this leads next
- Binomial Theorem for Positive Integer — the foundational expansion theorem that all substitution tricks build on.
- Roots of Unity — the properties of \omega and the orthogonality relation 1 + \omega + \omega^2 = 0 that make the filter work.
- De Moivre's Theorem — computing (\cos\theta + i\sin\theta)^n, the tool behind evaluating (1 + \omega)^n and (1 + i)^n.
- Complex Numbers — Introduction — the Argand plane, polar form, and the arithmetic of i that underlies everything here.
- Special Expansions — more identities and expansions that complement the binomial toolkit.