2.5.11 · HinglishNumber Theory (Intermediate)

Fermat's little theorem (statement)

1,966 words9 min readRead in English

2.5.11 · Maths › Number Theory (Intermediate)

Statement of the Theorem

Har Part Ka Matlab

  • is prime: Yeh theorem sirf primes ke liye kaam karta hai. (composite) aur try karo: hum paate hain , 1 nahi.
  • : Number , ke saath coprime hona chahiye. Agar , ka multiple hai, toh hoga, 1 nahi.
  • : Jab tum compute karte ho aur se divide karte ho, remainder exactly 1 aata hai.

Intuition Build Karna: Yeh Sach Kyun Hoga?

Worked Examples

Common Mistakes aur Unhe Kaise Bachein

Key Formulas aur Kab Use Karein

Applications Preview

  1. Modular Inverses: nikalne ke liye, compute karo (kyunki ).

  2. Fast Exponentiation: compute karna efficient ban jaata hai: pehle reduce karo.

  3. Primality Testing: Agar coprime ke liye hai, toh definitely composite hai (lekin converse hamesha sach nahi hota—yeh Fermat pseudoprimes ki taraf le jaata hai).

  4. RSA Encryption: RSA ki security FLT ke ek generalization (Euler's theorem) par rely karti hai.

Recall Ek 12-Saal Ke Bacche Ko Explain Karo

Socho tumhare paas ek special clock hai jo sirf prime number of hours tak jaati hai—maano 5 ghante. Ab koi bhi number lo jo divide karne par exactly ghante ke nishaan par nahi padta (jaise 3).

Fermat ne kuch magical discover kiya: agar tum apne number ko khud se exactly baar multiply karo, aur phir dekho ki clock par kahan pahunche, tum hamesha 1 baje par wapas aoge!

Toh . Agar hum apni 5-ghante wali clock par jayein, 81 ghante baad 1 baje jaisa hi hoga (kyunki ).

Yeh sirf tab kaam karta hai jab tumhari clock mein prime number of hours hon. Agar 4 ghante hon (prime nahi), toh magic toot jaata hai. Isliye primes special hain—unmein ek hidden pattern hota hai jo regular numbers mein nahi hota.

Connections

  • Modular Arithmetic Basics - samajhne ke liye prerequisite
  • Properties of Prime Numbers - kyun yeh theorem sirf primes ke liye hai
  • Euler's Totient Function - FLT ko composite moduli tak generalize karta hai Euler's theorem ke through
  • Wilson's Theorem - primes ki ek aur special property jo se related hai
  • Carmichael Numbers - composites jo saare bases ke liye Fermat's theorem "fake" karte hain
  • Multiplicative Group Modulo Prime - group theory foundation ( ka order hai)
  • Modular Exponentiation Algorithms - computations speed up karne ke liye FLT use karna
  • RSA Cryptosystem - security ke liye FLT ko generalize karne par rely karta hai

#flashcards/maths

What does Fermat's Little Theorem state for a prime p and integer a where gcd(a,p)=1? ::

What are the two conditions required for the classical form of Fermat's Little Theorem?
(1) must be prime, (2) (a is coprime to p)
What is the alternative form of Fermat's Little Theorem that works for all integers a?
when is prime
Why does Fermat's Little Theorem fail for composite moduli?
Because theorem relies on the multiplicative group modulo p having exactly p-1 elements, which only happens when p is prime; composite moduli don't have this structure
How can you use FLT to find the modular inverse of a modulo prime p?
, since
If you need to compute using FLT, what is the first step?
Express 222 as where 10 = p-1, then use to simplify to
What mistake do students make when applying FLT to a=6, p=3?
They forget to check , so the condition fails and FLT doesn't apply; , not 1

Concept Map

required for

required for

main form

alternative form

holds when coprime

holds for any a

reorders set

multiply all, cancel factorial

rigorous proof

simplifies

foundation for

p is prime

Fermat's Little Theorem

gcd a,p = 1

a^p-1 = 1 mod p

a^p = a mod p

Any integer a

Multiplication by a is bijection

1..p-1 mod p

Lagrange's theorem

Modular exponentiation

RSA and primality testing