ExamShortcut
high importance~2 Q in Tier 135 formulas⚡ 18 shortcuts6 subtopics
All subtopics·Subtopic 3 of 6

Remainders & remainder theorem

🔒 Log in to track
⏱ 5 min read🧩 7 question types🎯 17 practice Q
The idea in one minute

Every division obeys one formula: dividend = divisor x quotient + remainder, with the remainder smaller than the divisor. Remainders of sums and products can be found from the individual remainders, and big powers repeat in cycles.

01

Overview

When 47 sweets are shared among 5 children, each gets 9 and 2 are left over. Here 47 is the dividend, 5 the divisor, 9 the quotient and 2 the remainder. The remainder is always smaller than the divisor. Every question in this lesson is built on that one idea.

02

The division formula

dividend=divisor×quotient+remainder\text{dividend} = \text{divisor} \times \text{quotient} + \text{remainder}

With divisor 24, quotient 13 and remainder 17, the dividend is 24×13+17=32924 \times 13 + 17 = 329. Questions that give two of the four quantities in words are asking for this formula.

Rule: Write the formula first, fill in what is given, and solve for the missing piece. Check that the remainder stays below the divisor.

03

Remainders add and multiply

The remainder of a sum or a product equals the remainder of the sum or product of the individual remainders. Replace each big number by its remainder first, then multiply small numbers.

For (1021×1023×1025)÷17(1021 \times 1023 \times 1025) \div 17: the remainders are 11, 33 and 55, and 1×3×5=151 \times 3 \times 5 = 15, so the remainder is 1515.

04

Negative remainders keep numbers small

A remainder may be written as a negative number. 9898 leaves −1-1 with 9999, and 9797 leaves −2-2. So 98×97×9698 \times 97 \times 96 leaves (−1)(−2)(−3)=−6(-1)(-2)(-3) = -6, and adding the divisor gives 9393.

Tip: If your final remainder is negative, add the divisor once. If it is still negative, add again.

05

Big powers cycle

Powers repeat their remainders. Find a small power that leaves 11 or −1-1, then split the exponent.

  • 23=82^3 = 8 leaves 11 with 77, so 2100=(23)33×22^{100} = (2^3)^{33} \times 2 leaves 22.
  • A base one more than the divisor always leaves 11.
  • A base one less than the divisor leaves 11 for even powers and d−1d - 1 for odd powers.
  • Fermat: for a prime pp that does not divide the base, ap−1a^{p-1} leaves 11 with pp.
06

When the new divisor divides the old

If NN leaves rr with divisor DD, and the new divisor dd is a factor of DD, then NN leaves r mod dr \bmod d with dd. Since 342=18×19342 = 18 \times 19, a remainder of 4747 with 342342 means remainders 1111 with 1818 and 99 with 1919.

Watch: This works one way only. Knowing the remainder with dd tells you nothing about the remainder with DD.

07

Dividing successively

'Divided successively by 4 and 5 leaving remainders 1 and 2' means: divide NN by 44, then divide that quotient by 55. Rebuild from the last step: the smallest final quotient is 00, so the middle value is 0×5+2=20 \times 5 + 2 = 2 and N=4×2+1=9N = 4 \times 2 + 1 = 9.

08

Factorial sums collapse early

From 5!=1205! = 120 onwards every factorial is a multiple of 1515. So for 1!+2!+⋯+50!1! + 2! + \cdots + 50! divided by 1515, only 1+2+6+24=331 + 2 + 6 + 24 = 33 matters, and the remainder is 33.

Example: A number leaves remainder 5 with 9. Then 4N4N leaves 4×5=204 \times 5 = 20, and 20 mod 9=220 \bmod 9 = 2.

09

Question types you will see

Each type: how to recognise it, the method step by step, and one question to try.

Type 1very common3 practice Q

Remainder with a factor of the old divisor

How to spot it:

A number leaves a remainder with a big divisor, and the question asks for the remainder with a smaller number that divides that divisor.

N=Dq+r, d∣D ⇒ N mod d=r mod dN = Dq + r,\ d \mid D \ \Rightarrow\ N \bmod d = r \bmod d
Method
  1. Check that the new divisor dd truly divides the old divisor DD.

  2. Divide the old remainder rr by dd.

  3. The new remainder is r mod dr \bmod d.

Why it works:

The term Dq is a multiple of d, so only r decides the remainder.

Try this

A number leaves remainder 47 when divided by 342. What is the remainder when it is divided by 19?

Show solution
  1. 342=18×19342 = 18 \times 19, so 1919 is a factor of 342342.

  2. Reduce the old remainder: 47 mod 1947 \bmod 19.

  3. 47=2×19+947 = 2 \times 19 + 9, so the remainder is 99.

Answer

9

Type 2very common2 practice Q

Remainder of a product or sum

How to spot it:

Several large numbers are multiplied or added and the remainder with a modest divisor is asked.

(a×b) mod d=[(a mod d)×(b mod d)] mod d(a \times b) \bmod d = [(a \bmod d) \times (b \bmod d)] \bmod d
Method
  1. Replace every number by its remainder; negative remainders are allowed.

  2. Multiply or add the small remainders.

  3. Reduce again by dd, and add dd to any negative result.

Why it works:

Each number is a multiple of d plus a remainder, and multiples of d never change the remainder.

Try this

Find the remainder when 98 x 97 x 96 is divided by 99.

Show solution
  1. Remainders with 9999: 98→−198 \to -1, 97→−297 \to -2, 96→−396 \to -3.

  2. (−1)(−2)(−3)=−6(-1)(-2)(-3) = -6.

  3. Add the divisor: 99−6=9399 - 6 = 93.

Answer

93

Type 3very common3 practice Q

Remainder of a large power

How to spot it:

A power like 2 to the 95 or 5 to the 70 is divided by a small number, usually 7, 9, 13 or a number near the base.

ap−1≡1(modp),(d−1)n≡(−1)n(modd)a^{p-1} \equiv 1 \pmod p, \qquad (d - 1)^n \equiv (-1)^n \pmod d
Method
  1. Reduce the base with respect to the divisor.

  2. Find the smallest power that leaves 11 or −1-1.

  3. Split the exponent using that power and keep the leftover part.

  4. Multiply the leftover remainder by the cycle answer and reduce.

Why it works:

Once some power leaves remainder 1, the remainders repeat in a fixed cycle.

Try this

Find the remainder when 2 to the power 95 is divided by 7.

Show solution
  1. 23=82^3 = 8 leaves 11 with 77.

  2. 95=3×31+295 = 3 \times 31 + 2, so 295=(23)31×222^{95} = (2^3)^{31} \times 2^2.

  3. Remainder: 1×4=41 \times 4 = 4.

Answer

4

Type 4common2 practice Q

Division formula: find the dividend

How to spot it:

The divisor and quotient are described in terms of the remainder, and the dividend is asked.

dividend=divisor×quotient+remainder\text{dividend} = \text{divisor} \times \text{quotient} + \text{remainder}
Method
  1. Write every unknown in terms of the one given value, usually the remainder.

  2. Compute the divisor and the quotient.

  3. Substitute into the division formula.

  4. Check the remainder is smaller than the divisor.

Why it works:

The formula is the definition of division; everything else is substitution.

Try this

In a division, the quotient is three times the remainder and the divisor is four times the quotient. If the remainder is 5, find the dividend.

Show solution
  1. Quotient =3×5=15= 3 \times 5 = 15.

  2. Divisor =4×15=60= 4 \times 15 = 60.

  3. Dividend =60×15+5=905= 60 \times 15 + 5 = 905.

Answer

905

Type 5common2 practice Q

Remainder of an expression built from N

How to spot it:

The remainder of N with a divisor is given, and the question asks for the remainder of a multiple, square or cube of N.

N≡r ⇒ kN≡kr, N2≡r2, N3≡r3(modd)N \equiv r \ \Rightarrow\ kN \equiv kr,\ N^2 \equiv r^2, \ N^3 \equiv r^3 \pmod d
Method
  1. Replace NN by its remainder rr everywhere in the expression.

  2. Compute the small expression.

  3. Reduce by dd; add dd if the result is negative.

  4. Check with the smallest such NN, which is rr itself.

Why it works:

N equals dq + r, and every term containing dq is a multiple of d.

Try this

When N is divided by 11 the remainder is 4. Find the remainder when N cubed plus N is divided by 11.

Show solution
  1. Replace NN by 44: 43+4=64+4=684^3 + 4 = 64 + 4 = 68.

  2. 68 mod 1168 \bmod 11: 68=6×11+268 = 6 \times 11 + 2.

  3. Remainder 22. Check with N=15N = 15: 3390 mod 11=23390 \bmod 11 = 2.

Answer

2

Type 6occasional2 practice Q

Successive division

How to spot it:

A number is divided successively by two or three divisors, each acting on the previous quotient, and remainders are given.

x=d1y+r1,y=d2z+r2x = d_1 y + r_1, \quad y = d_2 z + r_2
Method
  1. Start from the last division and take its smallest quotient as 00.

  2. Rebuild one step left: value == divisor ×\times next value ++ remainder.

  3. Repeat until you reach the original number.

  4. Verify by dividing forward again.

Why it works:

Successive division is the division formula applied along a chain, so rebuilding runs backwards.

Try this

Find the smallest number which leaves remainders 1 and 2 when divided successively by 4 and 5.

Show solution
  1. Second step: quotient 00, so the middle value is 0×5+2=20 \times 5 + 2 = 2.

  2. First step: 4×2+1=94 \times 2 + 1 = 9.

  3. Check: 9÷4=29 \div 4 = 2 remainder 11, and 2÷5=02 \div 5 = 0 remainder 22.

Answer

9

Type 7occasional

Remainder of a factorial sum

How to spot it:

A sum like 1! + 2! + ... + n! is divided by a number such as 15, 12 or 10, and the remainder is asked.

Method
  1. Note the divisor: from 5!=1205! = 120 on, every factorial is a multiple of 1515, 1010 and 120120.

  2. Keep only the factorials that are not multiples of the divisor.

  3. Add them, reduce by the divisor, and done.

Why it works:

A factorial accumulates every smaller factor, so large factorials contain the divisor as a factor.

Try this

Find the remainder when 1! + 2! + 3! + ... + 50! is divided by 15.

Show solution
  1. Every term from 5!=1205! = 120 on is a multiple of 1515.

  2. Add the first four: 1+2+6+24=331 + 2 + 6 + 24 = 33.

  3. 33 mod 15=333 \bmod 15 = 3.

Answer

3

10

Formula sheet

Division algorithm
N=d×q+r,0≤r<dN = d \times q + r, \quad 0 \le r < d
Product rule
rem(a×bd)=rem(Ra×Rbd)\mathrm{rem}\left(\dfrac{a \times b}{d}\right) = \mathrm{rem}\left(\dfrac{R_a \times R_b}{d}\right)

same for sums

Fermat's little theorem
ap−1≡1(modp),p prime, gcd⁡(a,p)=1a^{p-1} \equiv 1 \pmod{p}, \quad p \text{ prime}, \ \gcd(a, p) = 1
Divisor-multiple rule
N≡r(modD), d∣D ⇒ N≡r(modd)N \equiv r \pmod{D},\ d \mid D \ \Rightarrow\ N \equiv r \pmod{d}

one-way rule

Base one more than divisor
(ad+1)n≡1(modd)(ad + 1)^n \equiv 1 \pmod{d}
Base one less than divisor
(ad−1)n≡(−1)n(modd)(ad - 1)^n \equiv (-1)^n \pmod{d}

1 if n even, d - 1 if n odd

11

Shortcuts that save time

⚡ Make the base plus or minus one

Write the base as (multiple of divisor) plus or minus 1. The whole power then collapses to plus or minus 1.

Example

Find the remainder when 15 to the power 47 is divided by 16.

Show solution
  1. 15=16−115 = 16 - 1, so 15≡−1(mod16)15 \equiv -1 \pmod{16}.

  2. 1547≡(−1)47=−115^{47} \equiv (-1)^{47} = -1.

  3. Add the divisor: 16−1=1516 - 1 = 15.

Answer

15

⚡ Negative remainders for products

When factors sit just below the divisor, replace each by a small negative remainder and multiply those.

Example

Find the remainder when 98 x 97 x 96 is divided by 99.

Show solution
  1. Remainders: −1-1, −2-2, −3-3.

  2. Product: (−1)(−2)(−3)=−6(-1)(-2)(-3) = -6.

  3. Add the divisor: 99−6=9399 - 6 = 93.

Answer

93

⚡ Divisor is a factor, just reduce

If the new divisor divides the old one, reduce the old remainder by the new divisor. If it does not divide it, this shortcut is not available.

Example

A number leaves remainder 29 when divided by 56. What is the remainder when it is divided by 8?

Show solution
  1. 56=8×756 = 8 \times 7, so 88 is a factor of 5656.

  2. 29 mod 8=529 \bmod 8 = 5.

  3. Remainder 55.

Answer

5

12

Mistakes to avoid

Where most students lose marks on this subtopic.

Mistake 01

Leaving a negative remainder as the final answer.

Add the divisor once (or twice) until the remainder is between 0 and d - 1.

Mistake 02

Using the divisor-multiple rule backwards, from a small divisor to a bigger one.

The rule only shrinks: from divisor D to its factor d, never the other way.

Mistake 03

Applying Fermat when the divisor is not prime or shares a factor with the base.

Fermat needs a prime divisor that does not divide the base.

Mistake 04

Multiplying the full big numbers before reducing.

Reduce every number to its remainder first, then multiply the small values.

Mistake 05

Reading successive division as two separate divisions of the same number.

The second division acts on the quotient of the first, so rebuild backwards from the end.

13

Quick revision

Read this the night before the exam.

  • Dividend == divisor ×\times quotient ++ remainder, and r<dr < d.

  • Reduce each number first, then add or multiply the remainders.

  • Negative remainders keep arithmetic small; add the divisor to a negative result.

  • (d+1)n→1(d+1)^n \to 1; (d−1)n→1(d-1)^n \to 1 for even nn, d−1d-1 for odd nn.

  • New divisor divides the old: answer is old remainder mod new divisor.

  • Successive division: rebuild from the last divisor backwards.

  • Factorials from 5!5! on are multiples of 1515, so early terms alone decide.

14

Practice: 17 questions

Sets of 10, mixed across the question types above. Every answer has a step-by-step explanation.

Topic test · 10 questions

Suggested time 6 min · wrong answers go to your mistake notebook automatically.