The following proposition proves that the last equality holds.
Proposition 1.1
Let be a square-free integer and let
such that
for each prime . Then
for all
.
Proof.
Since
if and only if
for each prime
divisor of , it suffices to prove that
for
each prime divisor of . If
, then
, so
.
If
, then Fermat's Little
Theorem asserts that
.
Since
, we have
as well. Multiplying both sides
by shows that
.