Most students can tell a geometry problem from a combinatorics problem at a glance. The confusion is between algebra and number theory, because the number theory problems that cause the most trouble look like algebra. There is an equation, or a fraction, or a polynomial, and the instinct is to rearrange, substitute and solve. Then the rearranging goes nowhere, because the problem was never asking you to solve anything.
The difference is one word. When the unknowns are integers, an equation stops being something you solve and becomes a constraint you squeeze. Algebra asks what is x. Number theory asks which whole numbers survive, and the tools for that are different: factoring into a product, dividing out a remainder, and reducing modulo something small.
So this is a recognition drill: how to see, in the first minute, that an algebra-looking problem is really a number theory problem.
Five signals
- "Integer" sitting next to an equation with more unknowns than equations. Algebra says has infinitely many solutions. Integers say it has four positive ones. Too many unknowns plus the word integer means the answer is a finite list, and you will find it by factoring, not by solving.
- A fraction that has to be a whole number. "Find all such that divides " is a fraction problem in disguise, and the method is to divide the polynomial out until the remainder stops depending on .
- "Prime" or "composite" applied to a polynomial. The question looks like it is about primes. It is usually about an algebraic factorisation that someone hid.
- Digits. Any problem that moves, reverses or sums the digits of a number becomes an equation the moment you write the number in place value. After that it is a divisibility problem.
- A divisibility condition on two variables that are tangled together. A quotient like is a quadratic in disguise, and a quadratic with integer roots hands you a second root for free.
The three moves that follow
Once you have recognised it, there are three moves, and almost every problem of this kind uses one of them.
- Factor into a product equal to a constant. Integers that multiply to 6 can only be a few things. Move everything to one side and add whatever constant makes it factor: becomes . Now is a divisor of 6, and the positive solutions are . Check the negative divisors too; here they all give a non-positive or .
- Divide out and look at the remainder. For dividing , write . Whatever divides and must divide 2, so and is the only positive answer. That is modular thinking in its plainest form: modulo , is .
- Bound, then check a short list. Once the factor is fixed or the remainder is small, the size of the unknowns is capped, and a finite search finishes it. Bounding is what turns "find all" into "check these".
Watching it work
The hidden factorisation. Prove that is composite for every integer . It looks like a question about primes, so people start testing small cases and looking for a prime that always divides it. None does. The problem is algebra wearing number theory's clothes, the reverse of everything above: . Both factors are at least 2 once , and you are done. The restriction matters, since gives 5, which is prime.
The digits problem. Find the smallest number ending in 6 that becomes four times larger when the 6 moves to the front (IMO 1962). Write with having digits. Moving the 6 gives , and setting that equal to gives . Now it is pure number theory: you need . The powers of 10 modulo 13 run , so is the first that works, , and . Check: .
The same move cracks the three-digit multiples of 11 equal to eleven times their digit-square sum (IMO 1960): place value, then the divisibility rule for 11 splits it into two cases, and each case is a small equation with a short list of candidates. The answers are 550 and 803.
The tangled divisibility. If divides , the quotient is a perfect square (IMO 1988). Call the quotient and read as a quadratic in . The other root is , an integer, so a solution with produces a smaller one until that root reaches zero. Follow the chain for : jumps to , then to , then to , where . That descent to the bottom is the whole proof, and it is the reason the method is filed under infinite descent and Vieta jumping.
When it really is algebra
The signals cut both ways. If the problem says real numbers, or asks for an exact value, or the unknowns can be fractions, the integer moves are worthless and you should solve, substitute and simplify. The problem is the useful reminder that some problems need both: an algebraic identity to produce the factors, and a number theory question to make the factors matter.
The quickest practice is to take ten number theory problems from the problem archive and, before solving any, write one line for each: which signal fired and which of the three moves it calls for. Recognition is the skill you are short of, and it trains faster than solving does. The daily problem is a cheap way to keep it warm.
Related guides
- How to revise a topic you understand but keep missingRereading a topic you already understand fixes nothing. Find the one step that keeps breaking, revise that step, and test it cold. Worked on mods and bounds.
- EGMO 2020 Problem 1: solution, and the power of 2 that cannot hideA full solution to EGMO 2020 Problem 1: track the power of 2 in each term, show it climbs by 2 or falls by 1, and count the terms.
- Vieta jumping, explained simply: the jump and when to reach for itVieta jumping is four lines of algebra guarding one idea. The shape that triggers it, the jump itself, and the case that quietly loses marks.
- How to read a hard problem without giving upMost hard problems are abandoned before they are ever attempted. Five things to do to a statement with a pen, and the rule that decides when to stop.
- Chinese remainder theorem in olympiad problemsThe Chinese remainder theorem for coprime moduli, how to solve a system by hand, what changes when moduli share a factor, and where olympiads use it.
Techniques in this guide
- Modular ThinkingWhen the numbers are too big, shrink the universe.
- Infinite Descent & Vieta JumpingNo smallest counterexample can survive.
- Bounding & SqueezingTrap the answer between two walls.
Competitions this guide helps with
- USAJMOsix proof problems, three on each of two days · 4.5 hours on each of two consecutive days
- USAMOsix proof problems, three on each of two days · 4.5 hours on each of two consecutive days
- COMC12 questions in three parts: four short answers, four longer answers and four full solutions · 2.5 hours
- UKMT Senior Challenge25 questions: 22 multiple choice and, as a trial from 2026, three with a three-digit answer from 000 to 999 · 90 minutes
- BMO Round 1six problems needing full written solutions, the first intended to be more accessible than the rest · 3.5 hours
- BMO Round 2four problems needing full written solutions · 3.5 hours
- IOQM30 questions, each answered with a one- or two-digit number on an answer sheet (2025 paper) · 3 hours
- RMOsix problems, each needing a detailed proof · 3 hours
- INMOsix proof problems · 4.5 hours
Train it on Lemma
Every technique here is taught explicitly, in order. 161 lessons, 1735 curated problems and unlimited generated practice at six difficulties. Free to start, no card.
Find your level