number of 1’s = 124 1 1 1 1 1 1 1 … 1 ( m o d 2 7 1 ) = ?
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.
did it the same way. somehow i feel modulo arithmetic is the best blessing to number theory
You should write 124 instead of 214
the second last line should conclude as ".... a n − 1 is 27" and not as ".... a n − 1 is 271".
Did the same way.
Same aaproach.but ithink no special modular aritm. Operation is needed to solve it.Just a bit of observation is enough
*pair of eagle eyes
If we divide 1111 by 271 the reminder is 27.
So when we divide 11111by 271 the reminder is 0
So it is clear that in every repeatation of 5 digits (1) the reminder obtained by dividing he no by 27 is 0.
The no. where 1is repeated 124 times when divided by 271 ,the digit till 120th place is divided by 271 such that no reminder is obtained . When last four digits are divided by 271 the reminder obtained is 27.
So ,27 is the reminder.
Another way to solve it is without using the "1111" pattern.
Notice, that 1 1 1 1 1 1 1 . . . 1 = 1 0 0 + 1 0 1 + 1 0 2 + 1 0 3 + . . . + 1 0 1 2 3 .
Find another pattern in the different powers of 10:
1 0 1 ≡ 1 0 ( m o d 2 7 1 )
1 0 2 ≡ 1 0 0 ( m o d 2 7 1 )
1 0 3 ≡ 1 8 7 ( m o d 2 7 1 )
1 0 4 ≡ 2 4 4 ( m o d 2 7 1 )
1 0 5 ≡ 1 ( m o d 2 7 1 )
1 0 6 ≡ 1 0 ( m o d 2 7 1 )
The pattern repeats after every 5 powers. Thus, there are 1 2 0 / 5 = 2 4 cycles. Now, simplify the expression above:
1 1 1 1 1 1 1 . . . 1 ( m o d 2 7 1 )
≡ 1 0 0 + 1 0 1 + 1 0 2 + 1 0 3 + . . . + 1 0 1 2 3 ( m o d 2 7 1 )
≡ 1 0 0 + 2 4 × ( 1 0 + 1 0 0 + 1 8 7 + 2 4 4 + 1 ) + 1 0 1 2 1 + 1 0 1 2 2 + 1 0 1 2 3 ( m o d 2 7 1 )
≡ 1 + 2 4 × ( 2 7 1 ) + 1 0 + 1 0 0 + 1 8 7 ( m o d 2 7 1 )
≡ 2 4 × ( 0 ) + 2 9 8 ( m o d 2 7 1 )
≡ 2 7 ( m o d 2 7 1 )
So, even if you didn't see the pattern with 1s, you can solve the problem anyway.
just curious, it there a way to confirm if the pattern repeats without actually checking for alot of terms? Here, you assume that the pattern repeats (which it does in this case) because 10^6 was congruent to 10^1 (mod 271) but mathematically is there a way to confirm?
Log in to reply
Yes, it does repeat. 10^5 is congruent to 1 and after that 10^6 can be written as (10^5) * (10). Replace 10^5 with 1 and the proof is done.
Notice that numbers having any multiple of 5 1's are divisible by 271 So we can write
124 1’s 1 1 1 … 1 1 ( m o d 2 7 1 ) = 120 1’s 1 1 1 … 1 1 × 1 0 0 0 0 + 1 1 1 1
120 1’s 1 1 1 … 1 1 is divisible by 271
So,
120 1’s 1 1 1 … 1 1 × 1 0 0 0 0 + 1 1 1 1 ≡ 0 + 1 1 1 1 ( m o d 2 7 1 ) ≡ 2 7
First, I tried to find an integer x such that 2 7 1 x has the one at the digit place. Now for this to have a one at the digit place, x must have a one at the digit place as well. By trial and error, 2 7 1 × 4 1 = 1 1 1 1 1
Observe that 1 2 4 ≡ 4 ( m o d 5 ) , all-in-all we need to compute 1 1 1 1 ( m o d 2 7 1 ) = 2 7
For simplicity, let n = 1 2 4 . We use the geometric sum to simplify our number x : = k = 0 ∑ n − 1 1 0 k = 1 0 − 1 1 0 n − 1 = 9 − 1 ( 1 0 n − 1 )
We define r k : = 1 0 k m o d 2 7 1 . With a small table we find r 5 = 1 0 5 ≡ 1 m o d 2 7 1 . Via Euclid's Extended Algorithm we obtain 9 − 1 ≡ − 3 0 m o d 2 7 1 and get x ≡ ( − 3 0 ) ⋅ ( r n − 1 ) ≡ ( − 3 0 ) ⋅ ( 1 2 4 ⋅ r 4 − 1 ) = 8 4 0 ≡ 2 7 m o d 2 7 1 ∣ ∣ ∣ ∣ k r k 0 1 1 1 0 2 1 0 0 3 − 8 4 4 − 2 7 5 1 ⋯ ⋯
I had a lot of fun with trying to figure this out, here is what I thought to do:
Let's find such value of 11...1 that mod (271) would be congruent to 0.
It is 11111 (five 1).
Now we can subtract LHS from the original number and take modulus of that, then add it back. Surely, we subtract 5 ones and 119 zeros to get 0 from mod (271).
Since adding 0 doesn't actually do anything, we can do that for 23 more times (or just arrive at conclusion that 124 - 120 = 4 ones) to get a number 1111 in mod (271) and that is congruent to 27!
An article that explains this very well: http://www.devx.com/tips/Tip/39012 (you will have to ignore the fact that it's originally written for programming).
firstly rewrite a n as 1+10+100+1000.....271 times use GP formula next use binomial expansion
Problem Loading...
Note Loading...
Set Loading...
the easiest way to find the remainder is find the pattern.
a 1 mod 271 is 1,
a 2 mod 271 is 11,
a 3 mod 271 is 111,
a 4 mod 271 is 27,
a 5 mod 271 is 0,
a 6 mod 271 is 1,
a 7 mod 271 is 11,
a 8 mod 271 is 111,
a 9 mod 271 is 27,
a 1 0 mod 271 is 0
if you have a couple of eagle eyes, you will find that if n = 5, than a n mod 271 is 0, and a n − 1 is 271.
The question is what is a 2 1 4 mod 271. Since 214 = 215 - 1, and from the pattern above, we find that a 2 1 5 mod 271 is 0, and a 2 1 4 mod 271 is 27. Thus the answer is so.