Files
public-notes/Fermat’s Little Theorem.md
2025-12-25 21:13:43 -08:00

22 lines
418 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#Math #NT
# Fermets Little Theorem
If $p$ is a prime integer:
$$
a^{p - 1} \equiv 1 \mod p \\
a^p \equiv a \mod p
$$
$$
a^{p - 1} \equiv 1 \mod p \\
a^p \equiv a \mod p
$$
# Proof
Let $p$ be a prime integer. Say a necklace has $p$ beads and $a$ possible colors per bread. Except for a necklace with only one color, each combination of necklace colors has $p$ permutations. Therefore:
$$
a^p \equiv a \mod p
$$