Let p is a prime number.
Prove that: $$ (p-1)! +1 \equiv 0 \: \pmod p$$
Could you give me some advice?
Let p is a prime number.
Prove that: $$ (p-1)! +1 \equiv 0 \: \pmod p$$
Could you give me some advice?
Hint: Consider $x^{p-1}-1=0$ over $\mathbb{Z}_p$. What can you say about roots of the equation? (you can use Fermat's little theorem) Then use Vieta's formulas (the last one).