Find the remainder when the number below 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.
Note first that for n ≥ 6 we have that 6 ! ∣ n ! , and that 6 ! = 1 6 × 4 5 . Now as 1 7 is prime, for 6 ≤ n ≤ 1 6 we know that 1 7 does not divide n nor any (integral) power of n . Thus by Fermat's Little Theorem , for 6 ≤ n ≤ 1 6 we have that
n n ! = ( n n ∗ ( n − 1 ) ∗ . . . ∗ 7 ) 6 ! = ( n n ∗ ( n − 1 ) ∗ . . . ∗ 7 ∗ 4 5 ) 1 6 ≡ 1 ( m o d 1 7 ) .
Then as 1 7 ∣ 1 7 1 7 ! we see that n = 6 ∑ 1 7 ( n n ! ( m o d 1 7 ) ) = n = 6 ∑ 1 6 1 = 1 1 .
So now we need to evaluate n n ! ( m o d 1 7 ) for 1 ≤ n ≤ 5 :
1 1 ! = 1 ≡ 1 ( m o d 1 7 )
2 2 ! = 4 ≡ 4 ( m o d 1 7 )
3 3 ! = ( 3 3 ) 2 = 2 7 2 ≡ 1 0 2 ( m o d 1 7 ) ≡ 1 0 0 ( m o d 1 7 ) ≡ 1 5 ( m o d 1 7 )
4 4 ! = ( 4 2 ) 3 ∗ 4 ≡ ( − 1 ) 1 2 ( m o d 1 7 ) ≡ 1 ( m o d 1 7 )
5 5 ! = 5 1 2 0 = 5 7 ∗ 1 6 + 8 ≡ 5 8 ( m o d 1 7 ) ≡ ( 5 2 ) 4 ( m o d 1 7 )
≡ 8 4 ( m o d 1 7 ) ≡ 6 4 2 ( m o d 1 7 ) ≡ ( − 4 ) 2 ( m o d 1 7 ) ≡ 1 6 ( m o d 1 7 ) ,
where another application of FLT was used in the third step of this last calculation. Thus
n = 1 ∑ 1 7 ( n n ! ( m o d 1 7 ) ) = 1 + 4 + 1 5 + 1 + 1 6 + 1 1 = 4 8 ≡ 1 4 ( m o d 1 7 ) .