Fermat's Little Theorem (Visualization)

Art Of The Problem
Mar 8, 2013
10 notes
10 Notes in this Video

Bead Necklace Problem: Rotational Equivalence Classes

NecklaceProblem RotationalSymmetry Combinatorics EquivalenceClasses

Bob makes multicolored bead earrings and discovers that forming strings into rings creates unexpected equivalences—six distinct strings collapse into only two distinguishable necklaces.

Combinatorial Proof: Counting Objects Proves Divisibility

CombinatorialProof CountingArgument DivisibilityProof MathematicalTechniques

The necklace visualization exemplifies combinatorial proof—establishing algebraic results through counting arguments rather than algebraic manipulation.

Cryptographic Foundation: Fermat's Theorem in RSA and Primality

RSACryptography CryptographicFoundations PublicKeyCrypto SecurityBasis

Fermat’s Little Theorem underlies modern public-key cryptography—particularly RSA encryption—enabling secure internet communication, digital signatures, and cryptocurrency.

Cyclic Rotations: Grouping Strings by Ring Equivalence

CyclicRotation EquivalenceClasses GroupTheory SymmetryGroups

Understanding necklace counting requires recognizing that cyclic rotations group multiple distinct strings into single equivalence classes.

From Conjecture to Proof: Fermat's Statement and Euler's Verification

MathematicalProof FermatEuler TheoremEvolution ProofHistory

Fermat stated his “little theorem” in 1640 without proof; Euler provided the first published proof nearly a century later in 1736, validating Fermat’s insight and extending it.

Fermat's Little Theorem: a^p ≡ a (mod p) for Prime p

FermatsLittleTheorem ModularArithmetic PrimeProperty NumberTheory

Pierre de Fermat stated his “little” theorem in 1640: for any integer a and prime p, a^p ≡ a (mod p), or equivalently (if a not divisible by p), a^(p-1) ≡ 1 (mod p).

Group Theory Foundation: Multiplicative Group Modulo Prime

GroupTheory MultiplicativeGroup CyclicGroups AbstractAlgebra

Fermat’s Little Theorem follows from Lagrange’s theorem in group theory applied to the multiplicative group of integers modulo prime p.

Modular Exponentiation: Computing Large Powers Efficiently

ModularExponentiation EfficientComputation CryptographicPrimitives FastAlgorithms

Fermat’s Little Theorem enables efficient modular exponentiation—computing a^k mod p for enormous k without calculating a^k directly.

Fermat Primality Test: Probabilistic Prime Detection

PrimalityTesting FermatTest ProbabilisticAlgorithm NumberTheory

Fermat’s Little Theorem provides a probabilistic primality test: if a^(n-1) ≢ 1 (mod n) for some a, then n is definitely composite; if a^(n-1) ≡ 1 (mod n), n is probably prime.

Prime Number Property: Uniform Equivalence Class Sizes

PrimeNumbers EquivalenceClassSize UniformPartition NumberTheory

When necklace size is prime, multicolored strings partition into equivalence classes of uniform size—each containing exactly p strings (where p is the prime).