Core IOQM topic hub

IOQM Number Theory: Learn Divisibility, Remainders and Integer Problems

Build Number Theory in a deliberate order—from divisibility and gcd to congruence and Diophantine equations—while learning the problem habits that turn facts into solutions.

Reviewed 28 July 2026Academic mentor: Ajeet DubeyIndependent IOQM guidance
What does IOQM Number Theory test?

It tests how well a student sees structure in integers: factors, gcd, primes, remainders, parity, digit patterns and equations restricted to whole numbers. The main difficulty is usually choosing the right representation—not performing long calculation.

Learning sequence

Study Number Theory in six connected layers

LayerIdeasProblem habit
1 · Integer languageFactors, multiples, parity, divisibility and prime factorisationRewrite conditions using divisibility notation
2 · gcd and lcmEuclidean algorithm, Bézout identity and factor exponentsReduce large numbers before expanding
3 · RemaindersModular arithmetic, residue classes and cyclesChoose a modulus suggested by the question
4 · Linear Diophantine equationsInteger solutions to ax + by = cCheck gcd divisibility before searching
5 · Prime structureValuations, divisor counts and perfect powersCompare prime exponents
6 · Deeper toolsFermat, Euler, Wilson, CRT and quadratic-residue ideasUse a theorem only after checking its conditions

Students should not jump to named theorems while divisibility and gcd reasoning is unstable. Advanced tools become shorter and safer when the earlier layers are automatic.

Foundation

Divisibility, gcd and prime factorisation

Divisibility turns verbal conditions into exact statements. If a number is divisible by 6, for example, ask what that implies about factors 2 and 3 and whether the converse needs coprimality. For gcd problems, the Euclidean algorithm is often more useful than full factorisation.

Worked example: gcd(252, 198) = gcd(198, 54) = gcd(54, 36) = gcd(36, 18) = 18. Each remainder step preserves the gcd.

Prime factorisation is especially useful for divisor counts, lcm, perfect squares/cubes and valuations. Compare exponents prime by prime instead of treating a large integer as one object.

Remainder thinking

Modular arithmetic and cycles

Congruence records that two integers have the same remainder under a chosen modulus. It can compress powers, digit conditions and divisibility into a small finite set of cases.

Choose the modulus

Use 2 for parity, 4 or 8 for powers of 2, 3 or 9 for digit sums, 10 or 100 for last digits, or a divisor suggested by the equation.

Respect operations

Addition and multiplication behave cleanly modulo m. Division requires care: cancellation may fail unless the divisor is invertible modulo m.

Worked example: The last digit of 72026 follows the cycle 7, 9, 3, 1 of length 4. Since 2026 leaves remainder 2 on division by 4, the last digit is 9.

Integer equations

Diophantine equations begin with existence

For ax + by = c, integer solutions exist exactly when gcd(a,b) divides c. This check should come before trial-and-error searching.

Worked example: 12x + 18y = 30 has solutions because gcd(12,18)=6 divides 30. One solution is x=1, y=1. All integer solutions are x=1+3t and y=1−2t for integer t.

Olympiad problems often add positivity, bounds or divisibility conditions after the general solution. Apply those restrictions only after describing the integer family correctly.

Solution habits

Five questions to ask on an integer problem

  1. What are the parity and smallest possible residues?
  2. Can a gcd or prime-exponent comparison simplify the condition?
  3. Which modulus turns the expression into a short list?
  4. Does an integer solution exist before I try to find one?
  5. Can I factor a difference, sum or polynomial expression?

When a method fails, record why. A modulus may be too weak, factorisation may introduce impossible sign cases, or an argument may prove necessity without sufficiency.

Common errors

Number Theory mistakes that cost solutions

  • Cancelling in modular arithmetic without checking invertibility.
  • Assuming a number divisible by ab is automatically divisible by a and b in the needed direction without conditions.
  • Using Fermat’s theorem when the base is not coprime to the modulus.
  • Finding one Diophantine solution but not the full family.
  • Ignoring negative or zero integer cases when the problem allows them.
  • Treating a pattern from a few examples as a proof.

Practice progression

From topic sets to mixed IOQM questions

Stage 1

Short focused problems on divisibility, gcd and remainders with complete explanations.

Stage 2

Mixed Number Theory sets where the needed tool is not named.

Stage 3

Previous IOQM questions mixed with algebra or combinatorics so the domain boundary is less obvious.

Open official IOQM previous papers →

References

Books and resources for the next level

The official HBCSE list includes Elementary Number Theory by David M. Burton and An Introduction to the Theory of Numbers by Niven, Zuckerman and Montgomery, along with broader Olympiad problem books. These are references for the wider pathway; select chapters by present level.

See the class-wise and level-wise books guide →

Questions answered

Frequently asked questions

Is Number Theory important for IOQM?

Yes. Divisibility, primes, remainders and integer equations are core parts of Mathematics Olympiad preparation and frequently connect with other domains.

Where should a beginner start?

Start with factors, multiples, parity, divisibility, prime factorisation and gcd before modular arithmetic and Diophantine equations.

Do I need Fermat and Euler theorems for IOQM?

They can be useful, but only after basic congruence and coprimality conditions are understood. Many IOQM problems can be solved with elementary remainder cycles.

What is a Diophantine equation?

It is an equation where integer solutions are required. For linear equations ax+by=c, gcd(a,b) must divide c.

How can I improve at remainder problems?

Practise choosing useful moduli, listing residue possibilities and checking whether cancellation or theorem conditions are valid.

Should I memorise divisibility tricks?

Use basic tests, but learn why they work and how to translate new digit conditions into modular arithmetic.

Which book is good for Number Theory?

The HBCSE list includes Burton and Niven–Zuckerman–Montgomery; choose by level and use a broad Olympiad problem book alongside.

How do I use previous papers for Number Theory?

Classify relevant questions, attempt them without topic labels, then identify the clue that should have suggested a Number Theory tool.

Next step

Learn the structure, then remove the topic label.

Study one layer, solve a focused set and then test recognition inside a mixed IOQM paper.

Source and review policy: Topic outline checked against the official HBCSE Mathematical Olympiad syllabus. Examples and study guidance are independent Mathiit educational content.
Ajeet Dubey, IOQM mentor and Mathematics Olympiad teacher

MENTOR PERSPECTIVE

“Number theory begins when ordinary integers start revealing unexpected structure.”
Meet your IOQM mentor →