Repunits are the numbers that contain only the digit 1 in their writing, namely numbers of the form 1111......1.
The 123-digit repunit when divided by 271, leaves a remainder of?
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.
Good observation. What made you think that one of these repunits is divisible by 271?
It can be proved by the Pigeon Hole principle that some repunit is divisible by each odd integer which is not a multiple of 5 .
If the odd integer not divisible by 5 is n , consider the first n repunits, namely, R 1 = 1 , R 2 = 1 1 , R 3 = 1 1 1 , . . . . , R n = 1 1 . . . 1 1 1 1 ( n times).
If one of these repunits leave a remainder 0 when divided by n , we are done.
Else, let us assume that none of these repunits leave a remainder of 0 when divided by n . So they can leave n − 1 possible remainders leaving out 0 , that is { 1 , 2 , ⋯ , n − 1 } . But there are n remainders here, so by Pigeon Hole principle, two of the repunits must leave the same remainder when divided by n. So there exists 1 ≤ i , j ≤ n such that R i = R j ( m o d n ) .
So n ∣ ( R i − R j ) .
Let us assume without loss of generality that i > j .
Then we have R i − R j = R i − j . 1 0 i − j − 1 .
So we have that,
n ∣ R i − j . 1 0 i − j − 1 ,
but gcd ( n , 2 ) = 1 as n is odd, and g c d ( n , 5 ) = 1 as n is not divisible by 5, so g c d ( n , 2 ∗ 5 ) = 1 as \2) are 5 both primes. So g c d ( n , 1 0 ) = 1 .
So, n ∣ R i − j , as it does not divide 1 0 i − j − 1 , since g c d ( n , 1 0 ) = 1 .
Problem Loading...
Note Loading...
Set Loading...
Note that when 1 1 1 1 1 is divided by 2 7 1 we get a remainder of 0
We write the repunit of 1 1 1 1 . . . . . . 1 2 3 times= 1 1 1 1 1 ( 5 t i m e s ) 1 1 1 1 1 ( 5 t i m e s ) . . . . . 1 1 1 1 1 ( 5 t i m e s ) 1 1 1
So the remainder is 1 1 1