-3

By Wilson's theorem, I have that $(p-1)!\equiv-1\pmod p$ for any odd prime $p$ which means that $p\mid (p-1)!+1$

But how does it reduce to that the remainder when $(p-1)!$ is divided by $p$ is equal to $p-1$?

Thomas Andrews
  • 177,126
Gitika
  • 669

1 Answers1

-2

hint

$$p-1\equiv -1 \mod p$$

So, the remainder after a division by $ p $, won't be $ -1 $ but $ p-1$.