A Level Math Revision Free diagnostic
Extension & competition maths

Olympiad-style number theory problems (ages 15 to 18)

24 original competition-style problems: divisibility, primes, remainders and digits. Try each one before opening the hints; the second hint gives more away, and the full solution explains why the method works and where the idea leads.

Every question is free to read. The hints, answer checking and full solutions are included with every A Level, IB, IGCSE and CBSE plan. See plans.

Filter by strategy

Answer a problem to track what you have solved.

For teachers: project, add to a worksheet or set as homework

Press Project on any problem to show it full screen with a timer, the hints, the answer and the worked solution one step at a time (arrow keys move between problems; Space reveals the next step; F full screen; Esc closes). Switch on the ‘Add to worksheet’ buttons, pick problems, then print them from the worksheet builder or set them as homework for a class, with the full solutions as the mark scheme. Free problems are free for every class; problems marked ‘With a plan’ can be set by teachers with a plan or school licence. Ready-made sessions: maths club packs.

Your worksheet basket is empty.Open worksheet builderSet as homework

Problem O01

Number theoryShort answerWith a plan

How many positive whole numbers n have the property that n + 1 divides n2 + 1? Prove that you have found them all.

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Proof techniques

Problem O02

Number theoryShort answerWith a plan

For how many positive whole numbers n is 2n + 3n a perfect square?

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Parity and remainders, Proof techniques

Problem O03

Number theoryShort answerWith a plan

Find the sum of all primes p for which 2p + p2 is also prime.

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Parity and remainders, Proof techniques

Problem O04

Number theoryShort answerWith a plan

How many ordered pairs (x, y) of positive whole numbers satisfy x2 − y2 = 210?

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Parity and remainders, Organised cases

Problem O05

Number theoryShort answerWith a plan

What is the smallest whole number n such that n! ends in exactly 100 zeros?

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Working backwards, Extremal principle

Problem O06

Number theoryShort answerWith a plan

What is the remainder when 12026 + 22026 + 32026 + … + 122026 is divided by 13?

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Invariants, Proof techniques

Problem O07

Number theoryShort answerWith a plan

What is the largest whole number that divides n5 − n for every whole number n?

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Proof techniques, Extremal principle

Problem O08

Number theoryShort answerWith a plan

How many triples of whole numbers (x, y, z), positive, negative or zero, satisfy x2 + y2 = 3z2?

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Proof techniques, Extremal principle

Problem O09

Number theoryShort answerWith a plan

How many positive divisors of 1010 are not divisors of 109?

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Count the opposite

Problem O10

Number theoryShort answerWith a plan

How many positive whole numbers n ≤ 1000 have the property that n divides 2n − 1? Prove your answer.

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Extremal principle, Proof techniques

Problem O11

Number theoryShort answerWith a plan

What is the smallest positive whole number whose cube ends in the digits 111?

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Working backwards, Organised cases

Problem O12

Number theoryShort answerWith a plan

How many whole numbers x with 1 ≤ x ≤ 2026 have no common factor with 2026 (other than 1) and satisfy x2 ≡ 1 (mod 2026)? (1013 is prime.)

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Organised cases

Problem O13

Number theoryShort answerWith a plan

How many ordered pairs of whole numbers (x, y), positive, negative or zero, satisfy xy = 2x + 3y + 6?

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Working backwards

Problem O14

Number theoryShort answerWith a plan

What is the highest common factor of all numbers of the form p4 − 1, where p is a prime greater than 5?

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Proof techniques, Extremal principle

Problem O15

Number theoryShort answerWith a plan

How many ordered pairs (a, b) of positive whole numbers have lowest common multiple 23 × 32 × 5 = 360?

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Organised cases, Count the opposite

Problem O16

Number theoryShort answerWith a plan

Find the sum of all positive whole numbers n for which 1! + 2! + 3! + … + n! is a perfect square.

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Parity and remainders, Organised cases

Problem O17

Number theoryShort answerWith a plan

For how many whole numbers n with 1 ≤ n ≤ 2026 is ⌊n/2⌋ + ⌊n/3⌋ + ⌊n/6⌋ = n? (⌊y⌋ is the greatest whole number not more than y.)

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Extremal principle, Proof techniques

Problem O18

Number theoryShort answerWith a plan

Positive whole numbers a < b satisfy ab = ba. Find a + b, and show there is only one such pair.

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Extremal principle, Proof techniques

Problem O19

Number theoryShort answerWith a plan

For how many primes p does the decimal expansion of 1/p repeat with period exactly 6?

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Organised cases, Proof techniques

Problem O20

Number theoryShort answerWith a plan

How many whole numbers x with 0 ≤ x < 1000 satisfy x2 ≡ x (mod 1000)?

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Organised cases

Problem O21

Number theoryShort answerWith a plan

How many whole numbers n with 1 ≤ n ≤ 2026 can be written as a sum of two or more consecutive positive whole numbers?

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Parity and remainders, Proof techniques

Problem O22

Number theoryShort answerWith a plan

Find the sum of all whole numbers n (positive, negative or zero) for which (n2 + 3n + 5)/(n − 1) is a whole number.

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Symmetry, Organised cases

Problem O23

Number theoryShort answerWith a plan

What is the largest whole number k such that 7k divides the binomial coefficient C(2026, 1013)?

Hints, answer check and full worked solution. Included with every A Level, IB, IGCSE and CBSE plan.

See plansSign in

Strategy: Spot the pattern and generalise, Proof techniques

Keep going

More Olympiad-style problems: Combinatorics · Geometry · Algebra · Probability · Logic · Calculus and functions

Number theory at other levels: Junior (ages 11 to 13) · Intermediate (ages 13 to 16) · Senior (ages 16 to 18)

Problem-solving strategies · Where next · Extension & competition maths