The direct answer: when an AIME-style question asks how many binomial coefficients C(N,k) have an index in a fixed residue class, you do not expand the row. Write m for the modulus in the condition and ω = cos(2π/m) + i sin(2π/m). Then
(1/m) Σj=0m-1 ω-jr(1 + ωj)N
equals the number of indices k with 0 ≤ k ≤ N and k ≡ r (mod m). Each index k carries a weight that averages to 1 when k is wanted and 0 when it is not, so nothing is enumerated and no Pascal row is built. The index range does not need to contain a complete residue system modulo m, because the weight is attached to each index separately; what the closed form needs is that the indices run as one unbroken block starting from 0, which is exactly what a full binomial row provides. Treat this as a technique for AIME complex numbers practice, not as a claim that a particular published problem uses it. AIME 2027 keeps 15 questions with integer answers from 0 to 999 (Hanlin Courses, “2026-27 AMC10/12 New Policies and AIME Reform: Authoritative Compilation”, 27 August 2026), so the final integer check remains part of the routine.
What signal tells you a roots-of-unity filter is the right move?
Four features can point to the filter. There is a congruence condition with a small modulus such as 2, 3, 4, 5 or 6. There is a high exponent N, so listing every coefficient is slow or error-prone. The answer is a total over many coefficients rather than one named coefficient. And the object being summed has a closed polynomial form, typically (1 + x)N, because that is what collapses each root-of-unity term into a single power.
| Signal in the problem | Filter appropriate? | Reason |
|---|---|---|
| Indices with k ≡ r (mod m), small m | Yes | Each index gets a 1/m weight that survives the summation |
| Indices inside an interval, such as k ≥ 4 | No, not by the basic full-row filter | The weight cannot be switched off partway through a sum |
| Weights such as k·C(N,k) | Yes, with care | Differentiate a power instead of adding term by term |
| Counting over a recurrence or a list with no closed form | No | There is no single power to evaluate at each root |
If the third row is your situation, the recurrence-period approach in AIME Recurrence Relations: Find the Period Before Expanding Long Sequences is the better first tool.
Why the identity holds: orthogonality in one line
Let t be any integer. The sum 1 + ωt + ω2t + … + ω(m-1)t is a finite geometric series with ratio ωt. If m divides t then every term is 1 and the sum is m. Otherwise the ratio is not 1 and the sum is zero. Dividing by m therefore produces an indicator: it returns 1 when m divides t, and 0 when it does not.
Now replace t by k − r. The indicator is 1 exactly when k ≡ r (mod m). Because a sum of indicators counts the members of a set, the count of wanted indices is the sum over all k from 0 to N of C(N,k) multiplied by that indicator. Swap the two sums, collect the k-th powers, and the binomial theorem gives (1 + ωj)N for each root j. The result is the closed expression above. Two practical notes follow immediately. The average is over all m roots, including the uninteresting-looking j = 0 term, which contributes 2N/m to the final average. And because the j and m − j terms are complex conjugates whenever the residue representative r is real, the total is always real; any surviving imaginary part means an arithmetic slip, not a genuine correction.

Teaching illustration 1: multiples of 3 among the coefficients of (1+x)6
Teaching illustration, constructed for this article and verified by direct enumeration; it is not an actual AIME problem and carries no official status.
Count the coefficients C(6,k) whose index is divisible by 3. By hand the wanted indices are 0, 3 and 6, giving 1 + 20 + 1 = 22. With the filter, the condition has modulus m = 3, so use the three cube roots of unity, with ω3 = 1 and 1 + ω + ω2 = 0. The terms before division by 3 are: j = 0 gives 26 = 64; j = 1 gives (1 + ω)6, and since 1 + ω = −ω2, this is ω12 = 1; j = 2 gives (1 + ω2)6 = (−ω)6 = ω6 = 1. The total is 66, divided by 3 gives 22, matching the hand count. Notice that the modulus 3, not the exponent 6, fixes how many roots you use; the exponent only decides how large the powers become. Note also that adding the three contributions 64 + 1 + 1 before dividing is not optional shorthand: dividing each term by 3 first and rounding can create avoidable errors, so keep the exact total until the final division.
Teaching illustration 2: a residue class where the complex parts must cancel
Teaching illustration, again verified by enumeration and not an actual AIME problem.
Count the coefficients C(8,k) with k ≡ 1 (mod 4). By hand, k = 1 and k = 5 give 8 + 56 = 64.
With the filter, take ω = i, so the four roots are 1, i, −1, −i, and r = 1. The four terms, before division by 4, are:
- j = 0: (1 + 1)8 = 256.
- j = 1: i−1(1 + i)8. Since 1 + i has modulus √2 and argument π/4, its eighth power is 24 = 16, so this term is −i · 16 = −16i.
- j = 2: (−1)−1(1 − 1)8 = −1 · 0 = 0.
- j = 3: i−3(1 − i)8. Since i−3 = i and (1 − i)8 = 16, this term is 16i.
The imaginary parts cancel and the sum is 256, so the count is 64. This illustration earns its place because it shows the two habits that make the method safe. First, you evaluate a complex power by modulus and argument rather than by multiplying eight times: |1 + i| = √2 and arg(1 + i) = π/4 turn (1 + i)8 into 16 with no expansion. Second, the vanishing imaginary part is a free correctness check. If your bookkeeping had left 16i behind, you would know the error before it reached the answer line.
When the filter is the wrong instrument
The basic full-row filter answers one question only: how many indices fall in a residue class modulo m, summed over a full binomial row. It cannot directly answer a question whose condition is an interval, because the weight is designed to be constant across the whole index set and cannot be clipped. A concrete contrast makes the boundary clear.
Teaching illustration: sum the coefficients C(6,k) with k ≥ 4. The basic full-row filter cannot produce this directly, since it would deliver the count for a residue class across the entire row. Symmetry does the work instead. The row totals 26 = 64, the middle coefficient C(6,3) = 20 stands alone, and the remaining 44 splits evenly between k below 3 and k above 3, giving 22. Direct addition confirms it: 15 + 6 + 1 = 22.
Three further cases deserve the same suspicion. A modulus m larger than the binomial exponent N forces you to compute awkward powers such as (1 + ω)6 at a twelfth root, where the argument is unhelpful and direct counting may be the more practical route. A condition that mixes residues, such as k ≡ 0 (mod 3) and k odd, needs two weights multiplied together; it works in principle but adds an error surface that a small case check would not catch quickly. And a target defined by an inequality inside the collision, such as counting only pairs with a bounded index difference, is a different problem type entirely; the overlap-counting logic in AIME Counting With Symmetry: When Dividing by the Number of Rotations Fails is the relevant neighbour there.
Turning the count into a recorded three-digit integer
Because AIME answers are integers from 0 to 999 (Hanlin Courses, 27 August 2026), any fractional result is diagnostic rather than unfortunate: it means the number of roots and the modulus did not match, or the division by m was applied unevenly. Before writing the answer, run these three questions.
- Did I use exactly m roots for a modulus of m, including j = 0?
- Is my pre-division total an integer, and does dividing by m give an integer?
- Does a two-line hand check on a smaller exponent agree with the same filter?
If the third check fails, the error is in the setup, not the arithmetic, and no amount of re-adding will fix it. The final-minute checks for recording an integer are the same ones used across AIME practice.
Preparing a specific question for an AIME consultation
A consultation is more useful when it diagnoses a method rather than replays a lecture. Bring one roots-of-unity attempt, written out in full, with the modulus you chose and the total you obtained before dividing. Mark which of the three stages stalled: choosing m, evaluating the powers, or the final division and integer check. That single page lets a teacher tell you whether your difficulty is conceptual, arithmetic, or simply a range assumption, and whether the better route for that problem is filtering, direct counting, or symmetry.
Roots of unity and De Moivre’s theorem are treated as AIME complex-number content in Hanlin’s own preparation material: the Hanlin Courses note of 4 November 2026, “2027 AIME Qualification Switches to Fixed Score Lines: Preparation Planning and an Experience Class”, lists complex numbers with De Moivre’s theorem and roots of unity as the subject of its 7 November 2026 AIME experience class. The wider question of when to shift from AMC speed work to sustained AIME reasoning is addressed in AIME Preparation After AMC: When to Switch From Speed to Sustained Reasoning. International candidates should also confirm their own registration route with their International Group Leader; the Pearson-center process is not a China procedure.
The transferable habit
The filter is worth learning not because it is clever, but because it converts a counting question into a two-part routine: choose the modulus, then evaluate powers at roots. Once that routine is automatic, the remaining risk is mainly in bookkeeping, which is why the imaginary-part check and the small-case recount carry more value in a timed paper than another memorised identity.
General event background is available at Event background.

Frequently Asked Questions
Does the roots-of-unity filter still work if the exponent range is cut short?
No. The weighting step is still valid for any chosen index set, but the collapse into a single power such as (1 + ω)^N requires the indices to run as one unbroken block from 0 through N. If the problem covers only part of the row, use symmetry or direct counting instead.
Do I need all m-th roots, or only the primitive ones?
All m of them for modulus m. Each root contributes one term, and the j = 0 term supplies 2^N/m to the final average. Dropping roots breaks the averaging that makes unwanted indices count as zero.
Is this method guaranteed to appear on the 2027 AIME?
No topic is guaranteed. What can be said is that AIME 2027 keeps 15 questions with integer answers from 0 to 999, and roots of unity with De Moivre’s theorem are treated as AIME complex-number content in Hanlin’s 4 November 2026 preparation note. Treat the method as a reliable tool, not a prediction.






