Wilson’s theorem for prime powers
For every natural number , let denote the product
of numbers with .
For prime and
Proof: We pair up all factors of the product into thosenumbers where and those where this is notthe case. So is congruent (modulo ) to the product of thosenumbers where .
Let be an odd prime and . Since , implies either or . Thisleads to
for odd prime and any .
Now let and . Then
Since
we have
For , but for