Find the reminder when is divided by .
Details and Assumptions:
For a positive integer , .
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.
We first note that 9 7 is a prime and as such, by Wilson's Theorem, we have,
9 6 ! ≡ ( − 1 ) ( m o d 9 7 )
Now, 9 5 ! = 1 × 2 × 3 × ⋯ 9 4 × 9 5 . Applying modulo 9 7 , this can be rewritten as,
9 5 ! ≡ ( − 9 6 ) × ( − 9 5 ) × ⋯ × ( − 2 ) ≡ − ( 9 6 ! ) ( m o d 9 7 )
Using the first result, we can write it as 9 5 ! ≡ − ( − 1 ) ≡ 1 ( m o d 9 7 )
∴ 9 5 ! ≡ 1 ( m o d 9 7 )