The Fermat's Little Theorem Calculator uses a^(p-1) mod p = 1 to compute fundamental number theory and arithmetic relationships.