Are There Divisibility Rules For Primes?

Let p 7 p\geq7 be a prime number .

111111 1 ( p 1 ) 1’s \Large \underbrace{111111\ldots 1}_{(p-1) \text{ 1's}} Is the above number divisible by p p ?

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.

1 solution

Chung Kevin
Mar 14, 2016

This problem can be solved by directly applying Fermat's little theorem .

The given number can be written as

1 9 ( 999999 9 ( p 1 ) 9’s ) = 1 9 ( 1 0 p 1 1 ) \dfrac19 \left( \underbrace{999999\ldots 9}_{(p-1) \text{ 9's}} \right) = \dfrac19 \left(10^{p-1} - 1 \right)

Because p 7 p\geq 7 and gcd ( 10 , p ) = 1 \gcd(10,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 ) 1 9 ( 1 0 p 1 1 ) 0 ( m o d p ) 111111 1 ( p 1 ) 1’s 0 ( m o d p ) \begin{aligned} && 10^{p-1} \equiv 1 \pmod p \\ &\Rightarrow& 10^{p-1} - 1 \equiv 0 \pmod p \\ &\Rightarrow& \dfrac19 \left( 10^{p-1} - 1 \right) \equiv 0 \pmod p \\ &\Rightarrow& \underbrace{111111\ldots 1}_{(p-1) \text{ 1's}} \equiv 0 \pmod p \\ \end{aligned}

From the last congruence above, we know that 111111 1 ( p 1 ) 1’s \underbrace{111111\ldots 1}_{(p-1) \text{ 1's}} gives a remainder of 0 when divided by p p , thus the expression in question is divisible by p p .


Food for thought : What primes number(s) smaller than 7 satisfy this condition as well? And which one doesn't? Why?

It does not work for 2 and 5 since Fermat's little theorem does not apply, and it does not work for 3 since we cannot divide by 9 modulo 3.

Otto Bretscher - 5 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...