Let $p$ be any prime. Show that the remainder when $(p-1)!$ is divided by $p(p-1)$ is $p-1$
I have attached my solution below. Can someone please confirm it, and if you find any mistake in it, please do tell.
Thanks in advance
From wilson's theorem, we know :
$$(p-1)! ≡ -1 ≡ p-1 (mod\ p)$$
$$(p-2)! ≡ 1 (mod\ p)$$
so, we get,
$$ (p-2)! = pk +1 $$ $$ (p-1)! = p(p-1)k + (p-1)$$
and clearly, the remainder is $p-1$,
Hence proved