Let be a prime number .
Is the above number divisible by ?
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 problem can be solved by directly applying Fermat's little theorem .
The given number can be written as
9 1 ⎝ ⎛ ( p − 1 ) 9’s 9 9 9 9 9 9 … 9 ⎠ ⎞ = 9 1 ( 1 0 p − 1 − 1 )
Because p ≥ 7 and g cd ( 1 0 , p ) = 1 , we can apply Fermat's little theorem:
⇒ ⇒ ⇒ 1 0 p − 1 ≡ 1 ( m o d p ) 1 0 p − 1 − 1 ≡ 0 ( m o d p ) 9 1 ( 1 0 p − 1 − 1 ) ≡ 0 ( m o d p ) ( p − 1 ) 1’s 1 1 1 1 1 1 … 1 ≡ 0 ( m o d p )
From the last congruence above, we know that ( p − 1 ) 1’s 1 1 1 1 1 1 … 1 gives a remainder of 0 when divided by p , thus the expression in question is divisible by p .
Food for thought : What primes number(s) smaller than 7 satisfy this condition as well? And which one doesn't? Why?