STEP-BY-STEP LEARNING

Learn Remainders · Mathematics

Learn Remainders in Mathematics step by step with concepts, examples, quick checks and revision for government exams.

—Due now
—Next revision
—Mastered
—Study streak
Text size
Complete Topic Lesson

Mastering Remainders: From Basics to Exam-Level Shortcuts

This lesson builds a complete understanding of remainders, from the division algorithm to cyclicity and Chinese Remainder Theorem. You will learn why shortcuts work, how to handle reverse problems, and avoid common traps. Eight worked examples and structured visuals make the concepts exam-ready.

On this page
  1. The Division Algorithm: Foundation of Remainders
  2. Basic Properties and Operations on Remainders
  3. Negative Remainders: A Powerful Shortcut
  4. Cyclicity of Remainders for Powers
  5. Euler's Theorem and Fermat's Little Theorem
  6. Chinese Remainder Theorem (CRT) for Systems
  7. Reverse Problems: Finding the Number from Remainders
  8. Common Mistakes and How to Avoid Them
  9. Shortcuts with Proof: Why They Work
  10. Edge Cases: Zero Remainder, Large Divisors, and Non-Coprime Moduli
  11. Revision Checklist for Remainders
  12. Worked examples
  13. Common mistakes
  14. Frequently asked questions

Remainders are a staple of quantitative aptitude. They test your understanding of division, modular arithmetic, and pattern recognition. This lesson starts with the fundamental division algorithm, then moves to powerful tools like cyclicity, negative remainders, and the Chinese Remainder Theorem. You will see derivations, proofs, and shortcuts that save time in exams. By the end, you will confidently solve problems involving large powers, reverse remainders, and systems of congruences.

Key Remainder Formulas
Division AlgorithmN = d × q + r, 0 ≤ r < d
Modular EquivalenceN ≡ r (mod d) ⇔ d | (N - r)
Negative RemainderN ≡ - (d - r) (mod d)
Euler's Theorema^φ(n) ≡ 1 (mod n) if gcd(a,n)=1
Fermat's Little Theorema^(p-1) ≡ 1 (mod p) for prime p, gcd(a,p)=1
CyclicityIf a^p ≡ 1 (mod d), then a^b ≡ a^(b mod p) (mod d)
MethodWhen to UseExample
Direct DivisionSmall numbers17 mod 5 = 2
Negative RemainderRemainder close to divisor98 mod 11 = -1 ≡ 10
CyclicityLarge powers, coprime base2^100 mod 5: cycle 2,4,3,1; 100 mod 4=0 ⇒ 1
Euler/FermatCoprime base and modulus7^85 mod 13: 85 mod 12=1 ⇒ 7
CRTMultiple congruences, coprime moduliN≡2 mod3, N≡3 mod4, N≡4 mod5 ⇒ 59
1Identify the problem type: direct, power, reverse, or system.
2For powers: find cycle or use Euler/Fermat after checking gcd.
3For reverse: express N from one congruence, substitute into next.
4For systems: check coprimality, then use CRT or pattern.
5Always verify by substituting back into original conditions.

The Division Algorithm: Foundation of Remainders

When a positive integer N is divided by a positive integer d, we can write N = d × q + r, where q is the quotient and r is the remainder, with 0 ≤ r < d. This is the division algorithm. The remainder is what is left over after taking out as many full groups of d as possible. For example, 17 divided by 5 gives 17 = 5 × 3 + 2, so remainder is 2. The condition 0 ≤ r < d is crucial: remainders are never negative and never equal to or greater than the divisor. This definition allows us to compare remainders across different divisors. If N leaves remainder r when divided by d, then N ≡ r (mod d). This notation means N and r differ by a multiple of d. The division algorithm is the bedrock for all remainder problems.

  • N = d × q + r, with 0 ≤ r < d.
  • Remainder is always non-negative and less than divisor.
  • N ≡ r (mod d) means d divides (N - r).
N = d × q + r, 0 ≤ r < d

Basic Properties and Operations on Remainders

Remainders behave predictably under addition, subtraction, and multiplication. If a ≡ r1 (mod d) and b ≡ r2 (mod d), then: (a + b) ≡ (r1 + r2) (mod d); (a - b) ≡ (r1 - r2) (mod d); (a × b) ≡ (r1 × r2) (mod d). This means we can replace large numbers by their remainders before computing. For example, to find 123 × 456 mod 7, compute 123 mod 7 = 4, 456 mod 7 = 1, so product ≡ 4 × 1 = 4 mod 7. This property is why we can simplify expressions. However, division is trickier: we cannot simply divide remainders unless the divisor is coprime to the modulus. For powers, we use repeated multiplication or cyclicity. These properties allow us to break complex problems into smaller, manageable parts.

  • Addition: (a + b) mod d = (a mod d + b mod d) mod d.
  • Multiplication: (a × b) mod d = (a mod d × b mod d) mod d.
  • Subtraction: (a - b) mod d = (a mod d - b mod d) mod d, adjust if negative.
(a + b) mod d = ((a mod d) + (b mod d)) mod d; (a - b) mod d = ((a mod d) - (b mod d)) mod d, then add d if the result is negative; (a × b) mod d = ((a mod d) × (b mod d)) mod d

Negative Remainders: A Powerful Shortcut

Sometimes it is easier to use a negative remainder. If N = d × q + r, we can also write N = d × (q+1) - (d - r). So the remainder can be thought of as - (d - r) mod d. For example, 17 mod 5 = 2, but also 17 = 5 × 4 - 3, so remainder -3 mod 5, which is equivalent to 2. Using negative remainders simplifies calculations when the positive remainder is close to the divisor. For instance, 98 mod 11: 98 = 11 × 9 - 1, so remainder -1 ≡ 10 mod 11. This is faster than computing 98 - 88 = 10. Negative remainders are especially useful in power cycles and when numbers are just below a multiple of the divisor.

  • If N = dq + r, then N = d(q+1) - (d - r).
  • Negative remainder -k is equivalent to d - k.
  • Use when positive remainder is large (close to d).
N ≡ - (d - r) (mod d)

Cyclicity of Remainders for Powers

When a number is raised to a power, its remainder modulo d often follows a repeating cycle. For example, powers of 2 modulo 5: 2^1=2, 2^2=4, 2^3=8≡3, 2^4=16≡1, 2^5=32≡2, and the cycle 2,4,3,1 repeats every 4. The cycle length is called the period. To find a^b mod d, compute the cycle of a mod d, find the period p, then reduce b modulo p. If b mod p = k with k ≠ 0, then a^b ≡ a^k mod d. If k = 0, then a^b ≡ a^p ≡ 1 mod d. This works because a^p ≡ 1 mod d when gcd(a,d)=1 (Euler's theorem). For non-coprime cases, the cycle may start after some initial terms. Cyclicity turns huge exponents into simple lookups.

  • Find cycle of a mod d by computing successive powers.
  • Period p is the smallest positive integer with a^p ≡ 1 mod d.
  • Reduce exponent b modulo p; if remainder 0, use a^p ≡ 1.
If a^p ≡ 1 (mod d), then a^b ≡ a^(b mod p) (mod d)

Euler's Theorem and Fermat's Little Theorem

Euler's theorem states that if gcd(a, n) = 1, then a^φ(n) ≡ 1 (mod n), where φ(n) is Euler's totient function. For a prime p, φ(p) = p - 1, giving Fermat's little theorem: a^(p-1) ≡ 1 (mod p) for gcd(a,p)=1. These theorems provide the theoretical basis for cyclicity. For example, to find 7^85 mod 13: since 13 is prime and gcd(7,13)=1, 7^12 ≡ 1 mod 13. Then 85 mod 12 = 1, so 7^85 ≡ 7^1 = 7 mod 13. This is much faster than computing powers. Euler's theorem also helps when modulus is composite, e.g., φ(15)=8, so 2^8 ≡ 1 mod 15? Actually gcd(2,15)=1, so 2^8 ≡ 1 mod 15. Then 2^75: 75 mod 8 = 3, so 2^75 ≡ 2^3 = 8 mod 15. These theorems are powerful but require checking coprimality.

  • Euler: a^φ(n) ≡ 1 mod n if gcd(a,n)=1.
  • Fermat: a^(p-1) ≡ 1 mod p for prime p, gcd(a,p)=1.
  • Reduce exponent modulo φ(n) or p-1.
a^φ(n) ≡ 1 (mod n) when gcd(a,n)=1; a^(p-1) ≡ 1 (mod p) for prime p

Chinese Remainder Theorem (CRT) for Systems

When a number leaves different remainders modulo several divisors, the Chinese Remainder Theorem gives a unique solution modulo the product of the divisors, provided the divisors are pairwise coprime. For two congruences: N ≡ r1 (mod m1) and N ≡ r2 (mod m2), with gcd(m1,m2)=1, the solution is N = r1 + m1 × k, where k satisfies r1 + m1 k ≡ r2 (mod m2). Solve for k, then N is unique modulo m1 m2. For example, N ≡ 2 mod 3, N ≡ 3 mod 4, N ≡ 4 mod 5. Notice each remainder is one less than the divisor: N ≡ -1 mod 3,4,5. So N+1 is divisible by 3,4,5. LCM(3,4,5)=60, so N+1=60, N=59. This shortcut works when remainders are consistent (all -1). Otherwise, use step-by-step substitution.

  • CRT applies when moduli are pairwise coprime.
  • Solution unique modulo product of moduli.
  • Look for pattern: if remainders are all d-1, then N+1 is LCM multiple.
N ≡ r1 (mod m1), N ≡ r2 (mod m2) ⇒ N = r1 + m1 k, solve for k

Reverse Problems: Finding the Number from Remainders

Reverse problems give remainders and ask for the smallest number. The key is to express the number in terms of one divisor and substitute into the other. For example, a number leaves remainder 5 when divided by 7, and remainder 3 when divided by 11. Let N = 7k + 5. Then 7k + 5 ≡ 3 mod 11 ⇒ 7k ≡ -2 ≡ 9 mod 11. Multiply both sides by the inverse of 7 mod 11. Since 7×8=56≡1 mod 11, inverse is 8. So k ≡ 9×8=72≡6 mod 11. Smallest k=6 gives N=7×6+5=47. Check: 47 mod 11 = 3. This method works for any number of congruences by repeated substitution. Always verify the solution satisfies all conditions.

  • Express N from one congruence, substitute into next.
  • Solve linear congruence using modular inverse.
  • Verify final answer against all remainders.
N = m1 k + r1; substitute into N ≡ r2 (mod m2) to find k

Common Mistakes and How to Avoid Them

Students often make predictable errors. One is forgetting that remainders must be non-negative and less than the divisor. For example, saying 17 mod 5 = -3 is incorrect unless converted to 2. Another mistake is applying cyclicity without checking coprimality; if gcd(a,d) ≠ 1, the cycle may not start at the first power. Also, when using negative remainders, ensure you convert back to positive if the question expects a positive remainder. In CRT, assuming a solution exists without checking pairwise coprimality can lead to wrong answers. Finally, in reverse problems, arithmetic errors in modular inverse are common. Always double-check by substituting back.

  • Remainder must be 0 ≤ r < d; convert negative remainders.
  • Check gcd(a,d)=1 before using Euler/Fermat.
  • Verify CRT moduli are pairwise coprime.
  • Always substitute back to verify.

Shortcuts with Proof: Why They Work

Edge cases test your understanding. If remainder is zero, the number is divisible by the divisor. For large divisors, the remainder is just the number itself if the number is smaller than the divisor. For non-coprime moduli, CRT does not directly apply; you must check consistency. For example, N ≡ 1 mod 4 and N ≡ 3 mod 6. Here gcd(4,6)=2. The remainders 1 and 3 are both odd, so 1 ≡ 3 (mod 2); the consistency condition is satisfied, so a solution exists. Solving: N ≡ 1 mod 4 gives N = 1,5,9,13,...; N ≡ 3 mod 6 gives N = 3,9,15,...; the intersection is N = 9,21,33,... So the smallest positive solution is 9, and all solutions are N ≡ 9 (mod 12). The condition for CRT with non-coprime moduli is that remainders must be congruent modulo gcd of moduli. Always check this condition.

  • N ≡ r ⇒ N^k ≡ r^k (mod d).
  • a^p ≡ 1 ⇒ a^(p+k) ≡ a^k.
  • N ≡ -1 mod m_i ⇒ N+1 divisible by LCM.
N ≡ r (mod d) ⇒ N^k ≡ r^k (mod d)

Edge Cases: Zero Remainder, Large Divisors, and Non-Coprime Moduli

Before an exam, quickly review these key points. Ensure you can state the division algorithm and its constraints. Practice converting between positive and negative remainders. Memorize common cycles: powers of 2 mod 5 (2,4,3,1), powers of 3 mod 5 (3,4,2,1), and powers of 7 mod 13 (7,10,5,9,11,12,6,3,8,4,2,1), which has full period 12. Know Euler's theorem and Fermat's little theorem, and when to apply them. Be comfortable with CRT for two or three congruences. Practice reverse problems by substitution. Always verify your answer. With these tools, you can tackle any remainder problem efficiently.

  • Zero remainder means exact division.
  • If N < d, remainder is N.
  • For non-coprime moduli, check r1 ≡ r2 mod gcd(m1,m2).

Revision Checklist for Remainders

Before an exam, quickly review these key points. Ensure you can state the division algorithm and its constraints. Practice converting between positive and negative remainders. Memorize common cycles: powers of 2 mod 5 (2,4,3,1), powers of 3 mod 5 (3,4,2,1), powers of 7 mod 13 (7,10,5,9,11,12,6,3,8,4,2,1). Know Euler's theorem and Fermat's little theorem, and when to apply them. Be comfortable with CRT for two or three congruences. Practice reverse problems by substitution. Always verify your answer. With these tools, you can tackle any remainder problem efficiently.

  • Division algorithm: N = dq + r, 0 ≤ r < d.
  • Negative remainder: -k ≡ d-k.
  • Cyclicity: reduce exponent modulo period.
  • Euler/Fermat: for coprime base and modulus.
  • CRT: for pairwise coprime moduli.
  • Verify by substitution.

Worked examples

A number when divided by 12 leaves a remainder of 5. What is the remainder when the number is divided by 4?
Show solution

Let N = 12q + 5.

Since 12 is a multiple of 4, 12q is divisible by 4. So N mod 4 = 5 mod 4 = 1.

1
A number when divided by 5 leaves remainder 3. What is the remainder when the square of that number is divided by 5?
Show solution

Let N ≡ 3 (mod 5). Then N^2 ≡ 3^2 = 9 ≡ 4 (mod 5).

4
What is the remainder when 3^91 is divided by 5?
Show solution

Powers of 3 mod 5: 3^1=3, 3^2=9≡4, 3^3=27≡2, 3^4=81≡1. The cycle is 3,4,2,1 with period 4. Reduce the exponent: 91 mod 4 = 3. So 3^91 ≡ 3^3 ≡ 27 ≡ 2 (mod 5).

2
What is the remainder when 2^75 is divided by 15?
Show solution

gcd(2,15)=1. φ(15)=8. So 2^8 ≡ 1 mod 15. 75 mod 8 = 3. So 2^75 ≡ 2^3 = 8 mod 15.

8
What is the remainder when 7^85 is divided by 13?
Show solution

13 is prime, gcd(7,13)=1. By Fermat, 7^12 ≡ 1 mod 13. 85 mod 12 = 1. So 7^85 ≡ 7^1 = 7 mod 13.

7
A number when divided by 3, 4, and 5 leaves remainders 2, 3, and 4 respectively. Find the least such number.
Show solution

Notice remainders are one less than divisors: N ≡ -1 mod 3,4,5. So N+1 is divisible by 3,4,5. LCM(3,4,5)=60. So N+1=60, N=59.

59
A number when divided by 7 leaves remainder 5, and when divided by 11 leaves remainder 3. What is the smallest such number?
Show solution

Let N = 7k + 5. Then 7k + 5 ≡ 3 mod 11 ⇒ 7k ≡ -2 ≡ 9 mod 11. Inverse of 7 mod 11 is 8 (since 7×8=56≡1). So k ≡ 9×8=72≡6 mod 11. Smallest k=6 gives N=7×6+5=47.

Check: 47 mod 11 = 3.

47
Find the remainder when 1234 × 5678 is divided by 7.
Show solution

1234 mod 7: 7×176=1232, remainder 2. 5678 mod 7: 7×811=5677, remainder 1. Product ≡ 2×1=2 mod 7.

2

Common mistakes

  • Forgetting that remainder must be non-negative and less than divisor; e.g., writing -3 instead of 2 for 17 mod 5.
  • Applying Euler's theorem without checking gcd(a,n)=1.
  • Assuming cyclicity starts at first power when gcd(a,d)≠1; cycle may have a pre-period.
  • In CRT, not checking pairwise coprimality or consistency condition for non-coprime moduli.
  • Arithmetic errors in modular inverse; always verify by multiplication.
  • Not converting negative remainders back to positive when required.

Frequently asked questions

What is a remainder?

A remainder is the amount left over after dividing one number by another. In the division algorithm, N = d × q + r, where r is the remainder and 0 ≤ r < d.

Can a remainder be negative?

By definition, remainders are non-negative. However, we sometimes use negative remainders as a shortcut, e.g., -1 mod 5 is equivalent to 4. Always convert to positive if the question expects a positive remainder.

How do I find remainders of large powers?

Use cyclicity: find the repeating cycle of the base modulo the divisor, then reduce the exponent modulo the cycle length. If the base and divisor are coprime, Euler's theorem or Fermat's little theorem can also be used.

What is the Chinese Remainder Theorem?

CRT states that if you have a system of congruences with pairwise coprime moduli, there is a unique solution modulo the product of the moduli. It helps find a number that leaves specified remainders when divided by several divisors.

How do I solve reverse remainder problems?

Express the number from one congruence, substitute into the next, and solve for the unknown. Use modular inverses when needed. Always verify the final answer against all given remainders.

What is Euler's totient function?

φ(n) counts the positive integers up to n that are coprime to n. For a prime p, φ(p)=p-1. Euler's theorem states that a^φ(n) ≡ 1 mod n if gcd(a,n)=1.

When can I use Fermat's Little Theorem?

Fermat's Little Theorem applies when the modulus is prime and the base is not divisible by that prime. It states a^(p-1) ≡ 1 mod p. It is a special case of Euler's theorem.

What is a common mistake in remainder problems?

A common mistake is forgetting to check coprimality before applying Euler's theorem or cyclicity. Another is not converting negative remainders to positive when required. Always verify by substitution.

Practice this lesson ↓

Loading…