Let O n = number of 1’s = n 1 1 1 1 1 1 … 1 .
Find the smallest positive integer n such that 2 0 1 7 ∣ O n .
If there is no such n , enter 0.
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.
"We have to (tediously) check the values."
How did you do it? I can't think of an easy way to do so TT.TT
Log in to reply
I did it tediously. It is direct to do, but it just requires a lot of calculations in mod. I would recommend repeated squaring as a fast way to get the answer.
If you understand how to do this, and do not need the practice, then yes wolfram could calculate it immediately.
I would use a Modular Exponentiation Calculator; there are plenty of them online.
Pretty neat, I must say! Thanks!
O n = 1 1 1 ⋯ ⋯ ⋯ 1 1 = 9 1 0 n − 1
Using Euler's Totient Function ϕ ( 2 0 1 7 ) = 2 0 1 6 as 2 0 1 7 is a prime number.
So, 1 0 2 0 1 6 ≡ 1 ( m o d 2 0 1 7 ) as g c d ( 1 0 , 2 0 1 7 ) = 1
Again 1 0 2 0 1 6 ≡ 1 ( m o d 9 )
It can be written as 1 0 n − 1 is both divisible by 2 0 1 7 and 9
Therefore , 1 0 2 0 1 6 − 1 = 9 × 2 0 1 7 l where l ∈ Z +
9 1 0 2 0 1 6 − 1 = 2 0 1 7 l ⟹ 2 0 1 7 ∣ 9 1 0 2 0 1 6 − 1
So, the smallest n = 2 0 1 6
This solution is incomplete.
Remember that if a number is a minimum, it has to satisfy 2 conditions.
1. It is a lower bound.
2. It can be achieved.
You have shown that 2) It can be achieved. However, how do we know that there is no smaller number that would work?
As an explicit counter example, if we replaced 2017 by 11, then the answer isn't 1 1 − 1 , even though 1 1 ∣ 9 1 0 1 0 − 1 (can be achieved). Instead, the answer is 2, with N n = 1 1 (so 10 isn't a lower bound).
Log in to reply
But how I will show that 2016 is the lower bound ???
Log in to reply
It would take work. Essentially, you are asked for the Order of 10 mod 2017.
Log in to reply
@Calvin Lin – Any hint u can provide ?
Log in to reply
Log in to reply
@Calvin Lin – Ok I will try
Log in to reply
@Kushal Bose – A simple way to fix this is to recall the Carmichael's Lambda function .
Log in to reply
@Pi Han Goh – Can you elaborate further? I'm not sure that approach would work.
The Carmichael Lambda function is a global property (about all a where g cd ( a , 2 0 1 7 ) = 1 ), whereas we're looking for a local property (where a = 1 0 ).
E.g. If we wanted to find the smallest n such that 1 n ≡ 1 ( m o d 2 0 1 7 ) , I don't see how knowing λ ( 2 0 1 7 ) would affect the answer.
Log in to reply
@Calvin Lin – Sorry, I misinterpreted the function again. I'm back to square one again... = (
Having a look at other solutions and comments, I got to know about a counter example of 11. Indeed, 11 divides (10^2 - 1) / 9 but it is as much fault of the power of 10 as it is of 11 itself. You see, 11 = 10 + 1 and that opens a whole new chain of divisibility taking advantage of the relationship between the terms (a^n - 1) and (a + 1).
It is safe to assume that 11 is an exception rather than the rule. Further examination required.
Problem Loading...
Note Loading...
Set Loading...
Observe that O n = 9 1 0 n − 1 . Since g cd ( 9 , 2 0 1 7 ) = 1 , hence we are looking for the smallest n such that 1 0 n ≡ 1 ( m o d 2 0 1 7 ) . Denote this number by N . This is also known as the order of 10 mod 2017.
From Fermat's little theorem , since 2017 is a prime, hence we know that 1 0 2 0 1 6 ≡ 1 ( m o d 2 0 1 7 ) . This establishes that N ≤ 2 0 1 6 (IE 2016 can be achieved). We will show that N = 2 0 1 6 by proving that no smaller number will work (IE 2016 is a lower bound).
Claim: N ∣ 2 0 1 6 .
Proof: Let 2 0 1 6 = N q + r , where 0 ≤ r < N .
Then 1 ≡ 1 0 2 0 1 6 ≡ 1 0 N q × 1 0 r ≡ 1 0 r ( m o d 2 0 1 7 ) . Since N is the smallest positive integer such that 1 0 N ≡ 1 ( m o d 2 0 1 7 ) , this shows that r is not a positive integer so r = 0 . Hence 2 0 1 6 = N q as desired. □
Claim: 2 0 1 6 = 2 5 × 3 2 × 7 . If for M = 2 2 0 1 6 , 3 2 0 1 6 , 7 2 0 1 6 , we have 1 0 M ≡ 1 ( m o d 2 0 1 7 ) , then N = 2 0 1 6 .
Proof: Since N ∣ 2 0 1 6 , suppose that N = 2 0 1 6 . Then N must divide (at least) one of the values of M . For that chosen value, let M = N q . Then, 1 ≡ 1 0 N q ≡ 1 0 m ≡ 1 ( m o d 2 0 1 7 ) which is a contradiction. □
Claim: For M = 2 2 0 1 6 , 3 2 0 1 6 , 7 2 0 1 6 , then 1 0 M ≡ 1 ( m o d 2 0 1 7 ) .
Proof: We have to (tediously) check the values. We obtain:
1 0 1 0 0 8 ≡ 2 0 1 6 ( m o d 2 0 1 7 ) ,
1 0 6 7 2 ≡ 2 9 4 ( m o d 2 0 1 7 ) ,
1 0 2 8 8 ≡ 7 9 ( m o d 2 0 1 7 ) . □
Note: The above shows that 10 is a primitive root of 2017. Unfortunately, there isn't an easy general way to show that a number is a primitive root, other than checking in the manner that we did.
(Calvin's rant about minimum)
Remember that when we say N is a minimum, it must satisfy both of the following conditions:
1. It is a lower bound.
2. It can be achieved.
In this case, condition 2 is easy to check, and condition 1 requires work.