CBSE Math Revision Start revising
IOQM-level practice

IOQM number theory practice set

8 original problems at the level of the first olympiad stage: divisibility, remainders, divisor counting and equations in whole numbers. Each answer is a whole number. Try each one before opening the hints; the full solution explains why the method works and where the idea leads.

The first 3 are free with full solutions. Hints, answer checking and full solutions for problems marked ‘With a plan’ are included with every A Level, IB, IGCSE and CBSE plan. See plans. These are our own problems, written for this site; none is a past IOQM or RMO question or a reworded one.

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 S151

Number theoryShort answer

For how many integers n with 1 ≤ n ≤ 500 is n2 + 3n + 2 divisible by 12?

Hint

Factorise n2 + 3n + 2. Divisibility by 12 means divisibility by 4 and by 3.

Second hint

(n + 1)(n + 2) is a product of two consecutive integers. Work out which remainders of n modulo 3 and modulo 4 make it divisible by 3 and by 4.

Full worked solution

Answer: 166

  1. n2 + 3n + 2 = (n + 1)(n + 2), two consecutive integers.
  2. By 3: one of n, n + 1, n + 2 is a multiple of 3, and the product misses out only n. So 3 divides it unless n ≡ 0 (mod 3): n ≡ 1 or 2 (mod 3).
  3. By 4: exactly one factor is even, so that factor must be a multiple of 4: n + 1 ≡ 0 or n + 2 ≡ 0 (mod 4), that is n ≡ 3 or 2 (mod 4).
  4. So 2 × 2 = 4 of every 12 consecutive values of n work. 500 = 41 × 12 + 8 gives 41 × 4 = 164 from the full blocks.
  5. In the last 8 values (remainders 1 to 8 mod 12) only remainders 2 and 7 satisfy both conditions: 2 more.
  6. Total: 164 + 2 = 166.

Why this works: Splitting 12 into the coprime parts 3 and 4 turns one condition into two independent ones, and the Chinese remainder idea lets you simply multiply the counts of good remainders.

Where it leads: Counting n with a polynomial condition modulo m by working prime power by prime power is the start of the theory of congruences and the Chinese remainder theorem.

Strategy: Organised cases, Spot the pattern and generalise

Problem S152

Number theoryShort answer

Positive integers a and b with a < b have highest common factor 12 and lowest common multiple 720. How many such pairs (a, b) are there?

Hint

Write a = 12x and b = 12y. What must be true of x and y?

Second hint

x and y have no common factor and xy = 720 ÷ 12 = 60. Split the prime powers of 60 between x and y.

Full worked solution

Answer: 4

  1. Write a = 12x and b = 12y. Then HCF(x, y) = 1 and LCM(a, b) = 12xy = 720, so xy = 60.
  2. 60 = 22 × 3 × 5. Because x and y share no prime, each whole prime power goes entirely to x or entirely to y.
  3. Three prime powers, each with 2 choices: 23 = 8 ordered pairs (x, y).
  4. x = y is impossible (60 is not a square), so exactly half have x < y: 4 pairs, giving (12, 720), (36, 240), (48, 180), (60, 144).

Why this works: HCF × LCM = ab always; dividing out the HCF leaves two coprime numbers, and coprime factor pairs are counted by sharing out whole prime powers.

Where it leads: The number of ways to write n as a product of two coprime factors is 2k, where k is the number of distinct primes of n: a fact used again in counting solutions of equations like 1/x + 1/y = 1/n.

Strategy: Organised cases

Problem S153

Number theoryShort answer

How many positive integers up to 200 have exactly 6 positive divisors?

Hint

If n = paqb…, the number of divisors is (a + 1)(b + 1)…. Which exponent patterns give 6?

Second hint

6 = 6 or 2 × 3, so n = p5 or n = p2q with different primes p and q. Count each type up to 200.

Full worked solution

Answer: 27

  1. The number of divisors of paqb… is (a + 1)(b + 1)…, so 6 divisors means n = p5 or n = p2q (p ≠ q primes).
  2. p5 ≤ 200: only 25 = 32. That is 1 number.
  3. p = 2: 4q ≤ 200, q ≤ 50, q odd prime: 14 numbers. p = 3: 9q ≤ 200, q ≤ 22, q ≠ 3: q = 2, 5, 7, 11, 13, 17, 19, so 7 numbers.
  4. p = 5: 25q ≤ 200, q ≤ 8, q ≠ 5: q = 2, 3, 7, so 3 numbers. p = 7: 49q ≤ 200, q = 2 or 3, so 2 numbers. p = 11: 121q > 200.
  5. Total: 1 + 14 + 7 + 3 + 2 = 27.

Why this works: The divisor-count formula turns ‘exactly 6 divisors’ into a short list of shapes; after that it is careful casework on the size of the smallest prime.

Where it leads: Asking which n have a given number of divisors leads to highly composite numbers and to the study of how the divisor function grows.

Strategy: Organised cases

Problem O121

Number theoryShort answerWith a plan

How many ordered pairs (x, y) of positive integers satisfy 1/x − 1/y = 1/20?

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

See plansSign in

Strategy: Proof techniques

Problem O122

Number theoryShort answerWith a plan

How many positive integers less than 1000 can be written as a2 − b2 where a and b are positive integers?

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 O123

Number theoryShort answerWith a plan

For how many positive integers n ≤ 2026 is 2n − 1 a multiple of 7 while 2n + 1 is not a multiple of 3?

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, Parity and remainders

Problem O124

Number theoryShort answerWith a plan

Find the remainder when 15 + 25 + 35 + … + 1005 is divided by 7.

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

Problem O125

Number theoryShort answerWith a plan

How many positive divisors of 10! = 1 × 2 × … × 10 are perfect squares?

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, Organised cases

Keep going

Other sets: Geometry · Algebra · Combinatorics

The IOQM to IMO pathway · Olympiad calendar 2026-27 · More Olympiad-style number theory · Strategies