Question
Compute using Fermat’s little theorem.
Solution
is prime and , so Fermat’s little theorem gives The result is immediate: the exponent is exactly the one for which the theorem guarantees the value .
Links
Topics: Probability distributions
Concepts: Modular arithmetic
Methods: Modular arithmetic
Skills: Computing
People: Pierre de Fermat
Exercise type: Expression evaluation