2

Let p is a prime number.

Prove that: $$ (p-1)! +1 \equiv 0 \: \pmod p$$

Could you give me some advice?

quid
  • 42,835

1 Answers1

1

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).

user35603
  • 3,022
  • 4
  • 24
  • 32