≡

Modular Arithmetic

Congruences, Fermat's little theorem, Chinese remainder theorem, and number bases

Key Concepts

  • Congruence a ≡ b (mod m) means m divides (a − b)
  • You can add and multiply congruences term by term
  • Fermat's little theorem simplifies large powers modulo a prime
  • The Chinese Remainder Theorem combines congruences with coprime moduli

Important Formulae

Fermat's little theorem a^(p−1) ≡ 1 (mod p), p prime, gcd(a,p)=1
Wilson's theorem (p−1)! ≡ −1 (mod p)
Euler's theorem a^φ(n) ≡ 1 (mod n), gcd(a,n)=1

Quick Tips

  • For last-digit problems, work modulo 10.
  • Reduce large exponents using Fermat's or Euler's theorem before computing.

Sample Practice Questions

  1. What is the remainder when 2^100 is divided by 3?

    • 0
    • 1
    • 2
    • 3
    Show answer

    Answer: 1

  2. What is the last digit of 7^2024?

    • 1
    • 3
    • 7
    • 9
    Show answer

    Answer: 1

  3. The sum 1 + 2 + 4 + 8 + ... + 2^n mod 3 cycles as:

    • Always 0
    • Always 1
    • 1, 0, 1, 0, ...
    • 1, 2, 0, 1, 2, 0, ...
    Show answer

    Answer: 1, 0, 1, 0, ...

  4. If gcd(a, m) = 1, a has a multiplicative inverse mod m. This inverse is:

    • Always a itself
    • Unique mod m
    • Always m - a
    • Not always unique
    Show answer

    Answer: Unique mod m

Practise more questions →

Practice Questions

Practise PRMO questions on Modular Arithmetic. Answers are revealed after each question.

Start Practice →

Frequently Asked Questions

What are the key concepts in Modular Arithmetic for PRMO?

Congruence a ≡ b (mod m) means m divides (a − b); You can add and multiply congruences term by term; Fermat's little theorem simplifies large powers modulo a prime; The Chinese Remainder Theorem combines congruences with coprime moduli.

Which formulae are important for Modular Arithmetic in PRMO?

Fermat's little theorem: a^(p−1) ≡ 1 (mod p), p prime, gcd(a,p)=1; Wilson's theorem: (p−1)! ≡ −1 (mod p); Euler's theorem: a^φ(n) ≡ 1 (mod n), gcd(a,n)=1.

How can I practise PRMO Modular Arithmetic questions for free?

Practise free PRMO Modular Arithmetic questions with instant answers and explanations on Safe Learning for Kids — no sign-up required.