Assumptions:
TeX:
{a}^{\varphi(n)} \equiv 1 \pmod {n}
a \in \mathbb{Z} \;\mathbin{\operatorname{and}}\; n \in \mathbb{Z}_{\ge 1} \;\mathbin{\operatorname{and}}\; \gcd\!\left(a, n\right) = 1Definitions:
| Fungrim symbol | Notation | Short description |
|---|---|---|
| Pow | Power | |
| Totient | Euler totient function | |
| ZZ | Integers | |
| ZZGreaterEqual | Integers greater than or equal to n | |
| GCD | Greatest common divisor |
Source code for this entry:
Entry(ID("a68214"),
Formula(CongruentMod(Pow(a, Totient(n)), 1, n)),
Variables(a, n),
Assumptions(And(Element(a, ZZ), Element(n, ZZGreaterEqual(1)), Equal(GCD(a, n), 1))))