Upgrade to access all content for this subject

Wilson's theorem will be very helpful with this problem.

Wilson's Theorem: Let $p > 1$ be a prime number. Then, $(p - 1)! \equiv -1(\text{mod}~p)$.

Which of the following statements are true? Select ALL that apply.

$6! \equiv 0(\text{mod}~7)$

$18! \equiv -1(\text{mod}~19)$

$16! \equiv -1(\text{mod}~17)$

$16! \equiv 1(\text{mod}~17)$