Math NT

Fermet’s Little Theorem

If is a prime integer:

Proof

Let be a prime integer. Say a necklace has beads and possible colors per bread. Except for a necklace with only one color, each combination of necklace colors has permutations. Therefore: