What is the remainder when is divided by 17?
Notation : denotes the factorial notation. For example, .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
This is straight Wilson's Theorem, which states that ( p − 1 ) ! ≡ − 1 m o d p , for prime p . Since 1 7 is prime, we have that ( 1 7 − 1 ) ! ≡ − 1 m o d 1 7 ⟹ 1 6 ! ≡ 1 6 m o d 1 7 . The proof of Wilson's Theorem is fairly elementary, only requiring some knowledge of multiplicative inverses. Basically, we can show that every number k has a unique multiplicative inverse k ′ if and only if k is relatively prime to the modulus. We note that 1 and p − 1 are multiplicative inverses of itself, and the rest pair up, so we have ( p − 1 ) ! ≡ ( p − 1 ) ⋅ ( p − 2 ) ⋯ 3 ⋅ 2 ⋅ 1 ≡ ( p − 1 ) ⋅ 1 ⋅ 1 ≡ − 1 ⋅ 1 ⋅ 1 ≡ − 1 m o d p