Wilson's theorem

 



So if p is prime:
then
(p-1)! mod p = -1 mod p
(p-2)! mod p = 1 mod p

Comments

Popular posts from this blog

IOQM 2024 Paper solutions (Done 1-21, 29)

Simon's factoring trick(complete the rectangle)

IOQM 2023 solutions