For AIME Number Theory problems that mix an exponent condition with residue constraints, use a divisibility ladder: check gcd(base, modulus), reduce the exponent period only when Euler is legal, then combine all congruences with CRT. If gcd > 1 and the target is 1, stop because the exponent condition is impossible for positive n.
Use a ladder, not a tool-first reflex
The useful decision is not simply Euler versus CRT in the abstract. The useful decision is which condition restricts n first. A four-rung ladder keeps the legal checks visible before algebra begins.
| Rung | Question | Action | Failure if skipped |
|---|---|---|---|
| 1 | Is gcd(base, modulus) = 1? | Check before naming Euler. | Using a theorem outside its hypothesis. |
| 2 | What is the order or period? | Turn a^n into a condition on n modulo the order. | Checking the wrong exponent class. |
| 3 | What congruences remain? | Combine them with CRT when moduli are pairwise coprime. | Stopping after one residue condition. |
| 4 | Does the answer satisfy the original? | Substitute into every congruence, including the exponent. | Recording a solution to a transformed but not original system. |
The ladder prevents two different errors. One is applying Euler when the base and modulus share a factor. The other is starting CRT with two residue conditions, finding a tidy residue class, and forgetting that the exponent condition has quietly imposed a third congruence on n.
Three signals decide the first move
Before solving, scan for three signals. First, an exponential congruence such as a^n ≡ b mod m: this is usually exponent-first because powers are periodic modulo m once gcd(a,m)=1. Second, two or more residue constraints on n: these are CRT material, but only after the exponent condition has been translated. Third, a base that may not be coprime to the modulus: this is a stop-and-check signal, not a cue to force Euler.
| Signal | What it changes |
|---|---|
| a^n ≡ b mod m | Find the period of a modulo m; replace n by a residue class modulo that period. |
| Two or more n-congruences | Use CRT after all moduli and residues are on the table. |
| gcd(a,m) > 1 | Do not cite Euler. If b = 1, the condition is impossible for positive n. |
A student who starts CRT first is not automatically wrong. CRT is a combining tool. The danger is treating a two-remainder result as complete when the exponent condition has not yet become a congruence on n. Write a short note such as pending exponent condition in the margin; that small note prevents a long but incomplete solution.

A fully worked teaching illustration
Teaching illustration, not a past AIME problem. Find the smallest positive integer n satisfying n ≡ 2 mod 5, n ≡ 3 mod 7, and 2^n ≡ 1 mod 9.
Step 1: check the gcd and find the period
Here gcd(2,9)=1, so period reduction is legal. Compute powers of 2 modulo 9: 2^1 ≡ 2, 2^2 ≡ 4, 2^3 ≡ 8, and 2^6 = 64 ≡ 1. The divisors of 6 are 1, 2, 3, and 6; none of 1, 2, or 3 gives 1 modulo 9. Thus the order is exactly 6. Therefore 2^n ≡ 1 mod 9 exactly when n ≡ 0 mod 6.
Step 2: combine the two residue conditions
Solve n ≡ 2 mod 5 and n ≡ 3 mod 7. The least positive solution is 17, since 17 ≡ 2 mod 5 and 17 ≡ 3 mod 7. The general solution is n = 17 + 35k.
Step 3: impose the exponent condition
Require 17 + 35k ≡ 0 mod 6. Reducing modulo 6 gives 5 + 5k ≡ 0, so 5(1+k) ≡ 0 mod 6. Because gcd(5,6)=1, this is equivalent to 1+k ≡ 0 mod 6, or k ≡ 5 mod 6. The smallest nonnegative k is 5, giving n = 17 + 35(5) = 192. The general solution is n = 192 + 210t.
Step 4: verify in every original condition
Check 192 mod 5 = 2; 192 mod 7 = 3; and 192 mod 6 = 0, so 2^192 ≡ (2^6)^32 ≡ 1 mod 9. If CRT had been stopped at n ≡ 17 mod 35, the candidate n = 17 would fail the exponent test: 2^17 ≡ 2^5 = 32 ≡ 5 mod 9, not 1. That failure is exactly the diagnostic this ladder is designed to catch.
A second period check: the order is not always phi(m)
Teaching illustration. Consider 3^n ≡ 1 mod 8. Here gcd(3,8)=1, so Euler applies, and phi(8)=4. But phi(8) is not the exact order. Compute powers: 3^1 ≡ 3, 3^2 = 9 ≡ 1 mod 8. The order is 2, not 4. Thus 3^n ≡ 1 mod 8 exactly when n ≡ 0 mod 2. A solver who assumes the exponent period must be phi(m) would over-restrict n and could reject valid candidates.
This mini-case reinforces the second rung. Euler's theorem gives a legal period, but the exact order may be a proper divisor of phi(m). In a written solution, show the short cycle or prove the order by checking the divisors. In an AIME-style setting, the extra check is often faster than repairing an invalid restriction later.
When the exponent target is not 1
Teaching illustration. Solve 2^n ≡ 4 mod 9. The gcd is 1, and the order of 2 modulo 9 is still 6. The cycle of 2^n modulo 9 for n = 1,2,3,4,5,6 is 2, 4, 8, 7, 5, 1. The value 4 appears when n ≡ 2 mod 6. So the exponent condition becomes n ≡ 2 mod 6.
This case shows why the ladder should not be memorized as n must be divisible by the order. That shortcut works only when the target is 1. For a general target b, reduce the power cycle, locate b in the cycle, and record the matching residue class or classes. If b does not appear in the cycle, the congruence has no solution. The same discipline applies before CRT is used.
Why Euler cannot rescue a non-coprime base
Euler's theorem says that if gcd(a,m)=1, then a^phi(m) ≡ 1 mod m. The hypothesis is not decoration. Suppose d > 1 divides both a and m. If a^n ≡ 1 mod m for positive n, then m divides a^n - 1. Since d divides m, d divides a^n - 1. But d also divides a^n. Hence d divides 1, a contradiction. So 2^n ≡ 1 mod 4 has no positive solution; the powers are 2, 0, 0, ... modulo 4, never 1.
If the right side is not 1, Euler is still not available when the gcd is greater than 1. The safe move is to factor, examine valuations, or compute the eventual cycle. For example, powers of 2 modulo 8 are 2, 4, 0, 0, ...; this is a short cycle analysis, not an Euler reduction. The common rule is to identify the structure before expanding.
When CRT first is legitimate
CRT is the right first tool when the problem gives residue conditions and no unresolved exponent condition. If n ≡ 2 mod 5 and n ≡ 3 mod 7 alone, then n ≡ 17 mod 35 is the complete answer class. CRT is also legitimate after the exponent condition has been converted to a congruence such as n ≡ 0 mod 6. At that point the solver has three congruences with pairwise coprime moduli 5, 7, and 6, and CRT can combine them.
The invalid habit is not CRT first in every context. It is CRT and stop while an exponent condition remains untranslated. If you already know the order, you may combine in any order you can track. The adjacent guide AIME Modular Arithmetic: Recover an Integer From Two Remainders covers the recovery mechanics for two remainders; this article covers the prior decision about whether an exponent condition must be reduced before that recovery is complete.
A modular condition can also arrive through a polynomial remainder rather than a direct power. In that setting, the same principle applies: identify the structure before expanding. The page AIME Polynomial Remainders: Solving Without Expanding Every Term is a useful companion for that structure-first habit, although its focus is polynomial remainders rather than exponent periods.
What the AIME teaching analysis adds
The Hanlin teaching-team analysis published on 4 November 2026 in the Hanlin Courses WeChat article titled 2027 AIME Qualification Switches to Fixed Cutoffs! Prep Planning + High-Energy Trial Class discussed Euler's theorem and CRT in connection with AIME Q11+ number-theory work. It said students need the statement, proof logic, and application context, not only the formula names. That is a coaching judgment, not an MAA rule, but it explains why a decision ladder is more useful than memorizing two theorem names.
A separate Hanlin Courses WeChat note titled Important Notice: Domestic AIME Math Exam Arrangements Confirmed recommends classified past-paper practice in number theory for students targeting an AIME score of 8-10. That is a preparation recommendation, not a promise of a particular score or a prediction about any individual paper.
For season context, MAA's current 2027 competition page lists AIME as 15 integer-answer questions, answers 0-999, in two 90-minute sections of 8 and 7 questions. The section format does not change the number-theory decision ladder, but it does affect pacing and checking habits.
A practice protocol that catches the error before scoring
During practice, classify each mixed number-theory problem before solving it: exponent-first, CRT-first, or gcd stop. Write one line for the gcd check. Write the order or period and the resulting congruence on n. Only then solve the CRT system. Finish by substituting the final candidate into every original condition. This protocol is slower for the first few problems and faster once the classification becomes automatic.
- If gcd(base, modulus) > 1 and the target is 1, stop and explain why no positive solution exists.
- If the exponent condition is legal, prove the period or cite a complete cycle; do not assume phi(m) is always the exact order.
- If CRT is used, state the pairwise coprime moduli and the final modulus product.
- If the answer is an integer, test the original congruence and the exponent condition separately.
When the final recordable answer must also satisfy an integer bound or inequality, use the range-check discipline described on AIME Floor Function Bounds: Solving Inequalities with Integer Constraints. The topic is different, but the checking principle is compatible: do not record an integer until the original constraints, not just the transformed equations, have been checked.
A common failure is not arithmetic. It is a first reduction that was never legal or never complete. A wrong exponent class often survives arithmetic checks because every individual congruence was solved correctly after an invalid first step. The ladder is a defense against that specific failure mode.
Preparing a useful course-fit or resource question
Before any course-fit conversation, bring one mixed number-theory attempt and mark where the method changed. The useful questions are specific: Did I check gcd before using Euler? Did I prove the order or only assume phi(m)? Did I turn the exponent condition into a congruence on n before combining? Did I verify the final candidate in the original modulus? Did I confuse a two-remainder result with the complete solution?
These questions also help when requesting practice materials. Ask for classified number-theory sets that separate exponent-period reduction from CRT combination, and ask for solutions that state the gcd hypothesis explicitly. A resource that gives only final answers will not reveal whether the failure was the gcd check, the period reduction, or the CRT combination. The ladder is the diagnostic frame; the practice set should make each rung visible.
The takeaway is compact: in mixed AIME number theory, gcd decides legality, order converts the exponent into a congruence, CRT combines complete information, and substitution catches the rest.

Frequently Asked Questions
Should I always use Euler's theorem first when an exponent appears?
No. Euler's theorem requires gcd(base, modulus)=1. If gcd > 1 and the target is 1, there is no positive solution, because a common divisor of the base and modulus would divide both a^n and m but could not divide 1. If the target is not 1, Euler is still unavailable; factor or examine the power cycle.
Can I use CRT before reducing the exponent condition?
You can keep the exponent condition alongside and solve later, but the common error is stopping at a two-remainder class such as n ≡ 17 mod 35 and forgetting that 2^n ≡ 1 mod 9 also forces n ≡ 0 mod 6. The safer order reduces the exponent condition first, then combines all congruences with CRT.
What fast check catches a wrong exponent class?
Substitute the final n into every original condition. For the worked example, n = 192 gives 192 mod 6 = 0, so 2^192 ≡ 1 mod 9; n = 17 gives 2^17 ≡ 5 mod 9, so it fails. The check must include the exponent, not only the two remainder conditions.
