Modular Inverses:a−1modp nikalne ke liye, ap−2modp compute karo (kyunki a⋅ap−2=ap−1≡1).
Fast Exponentiation:anmodp compute karna efficient ban jaata hai: pehle nmod(p−1) reduce karo.
Primality Testing: Agar coprime a ke liye ap−1≡1(modp) hai, toh pdefinitely composite hai (lekin converse hamesha sach nahi hota—yeh Fermat pseudoprimes ki taraf le jaata hai).
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 (5−1)=4 baar multiply karo, aur phir dekho ki clock par kahan pahunche, tum hamesha 1 baje par wapas aoge!
Toh 3×3×3×3=81. Agar hum apni 5-ghante wali clock par jayein, 81 ghante baad 1 baje jaisa hi hoga (kyunki 81=16×5+1).
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.
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 (p−1)! se related hai
Carmichael Numbers - composites jo saare bases ke liye Fermat's theorem "fake" karte hain
Multiplicative Group Modulo Prime - group theory foundation ((Z/pZ)∗ ka order p−1 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? :: ap−1≡1(modp)
What are the two conditions required for the classical form of Fermat's Little Theorem?
(1) p must be prime, (2) gcd(a,p)=1 (a is coprime to p)
What is the alternative form of Fermat's Little Theorem that works for all integers a?
ap≡a(modp) when p 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?
a−1≡ap−2(modp), since a⋅ap−2=ap−1≡1(modp)
If you need to compute 7222mod11 using FLT, what is the first step?
Express 222 as 222=10⋅22+2 where 10 = p-1, then use 710≡1(mod11) to simplify to 72mod11
What mistake do students make when applying FLT to a=6, p=3?
They forget to check gcd(6,3)=3=1, so the condition gcd(a,p)=1 fails and FLT doesn't apply; 62≡0(mod3), not 1