Remainder: Formulas, Tricks and Solved Questions

Remainder is the value left after one number is divided by another. This page covers the division algorithm, remainder formulas, modular arithmetic, cyclicity of powers, divisibility-based shortcuts and the polynomial remainder theorem. Worked examples show how to solve common remainder questions involving large numbers, powers and algebraic expressions.

On this page

What is a Remainder?

The remainder is the non-negative value left after dividing a dividend by a divisor. For a positive divisor d, it is always less than d.

The division algorithm is written as N = dq + r, where N is the dividend, d is the divisor, q is the quotient and r is the remainder. The conditions are 0 ≤ r < d. For example, 47 divided by 6 gives 47 = 6 × 7 + 5, so the remainder is 5.

Remainder Formula & Tricks

Important Formulas

Division algorithm
N = dq + r, where 0 ≤ r < d

Here, N is the dividend, d is the positive divisor, q is the quotient and r is the remainder.

Remainder of a sum or difference
(a + b) mod m = [(a mod m) + (b mod m)] mod m; (a − b) mod m = [(a mod m) − (b mod m)] mod m

Reduce each term by the divisor first, then add or subtract and take the non-negative remainder.

Remainder of a product
(ab) mod m = [(a mod m)(b mod m)] mod m

Each factor can be replaced by its remainder before multiplication.

Remainder theorem
If P(x) is divided by (x − a), the remainder is P(a).

Substitute x = a directly into the polynomial. For a divisor (x + a), substitute x = −a.

Power cycle method
If a^k ≡ 1 (mod m), then a^n mod m depends on n mod k

For n = qk + r, a^n ≡ a^r (mod m), provided the cycle is valid.

Quick Tricks

Reduce the base before calculating powers

Replace a number by its remainder with respect to the divisor before raising it to a power.

Example: To find 37^4 mod 5, use 37 ≡ 2 (mod 5). Thus 37^4 ≡ 2^4 = 16 ≡ 1 (mod 5).
Use the last digits for powers of 10

For divisors such as 2^k, 5^k or 10^k, only the required last digits affect the remainder.

Example: The remainder when 7,438 is divided by 100 is 38 because only the last two digits are needed.
Use a repeating cycle for powers

Find the smallest repeating pattern of powers modulo the divisor, then reduce the exponent by the cycle length.

Example: Powers of 2 modulo 7 are 2, 4, 1, so the cycle length is 3. Therefore, 2^10 mod 7 = 2^(10 mod 3) = 2^1 mod 7 = 2.
For a divisor near a power of 10, split the number

Express the number in blocks or use the relation between the divisor and a convenient power of 10.

Example: Since 10 ≡ 1 (mod 9), 10^n ≡ 1 (mod 9). Therefore, a number's remainder modulo 9 equals the remainder of the sum of its digits.

Remainder Concepts

Division Algorithm and Range of the Remainder

For a positive divisor d, every integer N can be expressed uniquely as N = dq + r, with 0 ≤ r < d.

The remainder cannot be equal to or greater than the divisor. If division gives a negative intermediate value, add the divisor until the standard non-negative remainder is obtained. For example, 23 = 5 × 4 + 3, so 23 leaves remainder 3 when divided by 5.

Example: For 91 divided by 8, 91 = 8 × 11 + 3. Hence, q = 11 and r = 3.

Modular Arithmetic for Sums, Differences and Products

Congruent numbers have the same remainder when divided by a given modulus: a ≡ b (mod m) means m divides a − b.

Congruences can be added, subtracted and multiplied. Thus, large expressions can be simplified by replacing each term with its remainder modulo m. The result is then reduced to the range 0 to m − 1.

Example: To find the remainder of 38 × 27 + 14 when divided by 5, use 38 ≡ 3, 27 ≡ 2 and 14 ≡ 4. The expression is congruent to 3 × 2 + 4 = 10 ≡ 0 (mod 5).

Remainders of Large Powers

The remainder of a large power is found by reducing the base and identifying a repeating cycle of powers modulo the divisor.

If a^k ≡ 1 (mod m), divide the exponent by k and use the remainder of that division. If the exponent is a multiple of k, the result is 1 modulo m. A shorter cycle may exist, so use the smallest valid cycle when possible.

Example: For 3^100 modulo 8, powers of 3 repeat as 3, 1. Since the cycle length is 2 and 100 is even, 3^100 ≡ 1 (mod 8).

Polynomial Remainder Theorem

When a polynomial P(x) is divided by x − a, its remainder is P(a).

This follows from P(x) = (x − a)Q(x) + P(a). For a linear divisor x + a, substitute −a. For a divisor of higher degree, ordinary polynomial division or factor-based methods are generally required.

Example: For P(x) = x^3 + 2x^2 − x + 4, the remainder on division by x − 2 is P(2) = 8 + 8 − 2 + 4 = 18.

Divisibility Rules as Remainder Tests

A number is divisible by m exactly when its remainder on division by m is zero.

Useful tests include: divisibility by 3 or 9 depends on the digit sum; by 4 on the last two digits; by 8 on the last three digits; by 11 on the difference between sums of alternate digits; and by 2, 5 or 10 on the last digit.

Example: The digit sum of 72,936 is 27, which is divisible by 9. Therefore, 72,936 leaves remainder 0 when divided by 9.

Remainder Video Lessons

Watch short topic-wise lessons for quick revision.

14 Lessons
Lesson 1 of 14 Quick Revision

Remainder Tricks: Fermat and Euler

Learn how Fermat’s pattern and Euler’s approach simplify remainder calculations for powers, including the key conditions and steps needed to apply these methods accurately.

Continue with more lessons and practice in PrepShots.Watch More in App - Start ₹1 Trial →
More Remainder Lessons Scroll to explore →

Practice Remainder Questions

Practise published questions related to this topic.

Remainder Quick Quiz

Attempt 5 questions and check your score instantly.

Quick Revision Notes

Remainder Revision Points

Use these rules to revise the main remainder methods and formulas.

  • Write division as N = dq + r with 0 ≤ r < d.
  • Reduce numbers modulo the divisor before adding, subtracting or multiplying.
  • For powers, identify a repeating cycle and reduce the exponent using the cycle length.
  • The remainder on division of P(x) by x − a is P(a).
  • For divisor x + a, use P(−a) in the remainder theorem.
  • A number is divisible by d when its remainder modulo d is zero.
  • For divisors 10, 100 and 1000, use the last 1, 2 and 3 digits respectively.
  • The standard remainder is non-negative and smaller than the positive divisor.

Remainder FAQs

What is the formula for finding a remainder?

Use N = dq + r, where N is the dividend, d is the divisor, q is the quotient and 0 ≤ r < d. Therefore, r = N − dq.

What is the remainder when 125 is divided by 7?

Since 125 = 7 × 17 + 6, the remainder is 6.

How is the remainder of a large power calculated?

Reduce the base modulo the divisor, find the repeating cycle of powers, and reduce the exponent using the cycle length. For example, 2^10 mod 7 = 2 because powers of 2 modulo 7 repeat every 3 terms and 10 mod 3 = 1.

What is the remainder theorem for a polynomial?

If P(x) is divided by x − a, the remainder is P(a). For example, the remainder of x^2 + 3x + 1 divided by x − 2 is P(2) = 4 + 6 + 1 = 11.

What is the remainder when a number is divided by 9?

The remainder equals the remainder obtained by dividing the sum of its digits by 9. For 4,738, the digit sum is 22, and 22 divided by 9 leaves remainder 4.

Can remainders be added or multiplied separately?

Yes. For modulus m, (a + b) mod m equals the sum of the individual remainders reduced modulo m, and (ab) mod m equals the product of the individual remainders reduced modulo m.

Continue learning Remainder on PrepShots

Continue on PrepShots