61.3k views
5 votes
Prove that if r!= (-1) (mod p), then (p-r-1)!= -1 (mod p). lint: Observe that p-i-i (mod p) and write out Wilson's theorem.)

User Amarnath
by
8.0k points

1 Answer

1 vote

Final answer:

To prove the statement, we can use Wilson's theorem.

Step-by-step explanation:

In order to prove the given statement, we can use Wilson's theorem. Wilson's theorem states that if p is a prime number, then (p-1)! ≡ -1 (mod p).

Given that r! ≠ -1 (mod p), we know that r! is not congruent to -1 modulo p. Since p is prime, we can use Wilson's theorem to conclude that (p-r-1)! is congruent to -1 modulo p.

Therefore, if r! ≠ -1 (mod p), then (p-r-1)! is congruent to -1 modulo p.

User Sakthi Kumar
by
6.9k points