Here is a question from my number theory class.
Prove $$(p-k)!(k-1)!\equiv (-1)^k \text{ mod p} $$ Help please!
Here is a question from my number theory class.
Prove $$(p-k)!(k-1)!\equiv (-1)^k \text{ mod p} $$ Help please!
$(p-k)!\ (k-1)! =$
$= (p-k)!\ (1\cdot 2\cdots (k-1))$
$\equiv (p-k)!\ ((p-1)\cdot (p-2)\cdots (p-(k-1))(-1)^{k-1}\ $ (because $p-t\equiv -t$)
$ = (p-1)! \ (-1)^{k-1} \equiv (-1)^k\bmod p$
Wilson's theorem is used in the last step.
So, this result is actually equivalent to Wilson's theorem, which is the case $k=1$.