There are some 3-digit integers for which its multiples, never ends in 2015. We call these 3-digit numbers as N 3 - numbers .
How many N 3 - numbers are there?
For example :
1 0 0 × n , where n is an integer, never ends in 2015; while for 131, we have 1 3 1 × 8 5 6 5 = 1 1 2 2 0 1 5 , which ends in 2015.
This question is from the set starts, ends, never ends in 2015 .
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.
Great solution that shows us how it can be generalized.
The way to phrase this solution clearly, is to use the Chinese Remainder Theorem. Specifically, there exists a solution to n x ≡ 2 0 1 5 ( m o d 1 0 0 0 0 ) if and only if there exists solutions to both of the equations n x ≡ 2 0 1 5 ( m o d 1 6 ) and n x ≡ 2 0 1 5 ( m o d 6 2 5 ) . The first has solutions if and only if n is not a multiple of 2, and the second has solutions if and only if n is not a multiple of 25.
While this is exactly what you expressed, the above is much clearer / easier to follow.
Great solution that shows us how it can be generalized.
The way to phrase this solution clearly, is to use the Chinese Remainder Theorem. Specifically, there exists a solution to n x ≡ 2 0 1 5 ( m o d 1 0 0 0 0 ) if and only if there exists solutions to both of the equations n x ≡ 2 0 1 5 ( m o d 1 6 ) and n x ≡ 2 0 1 5 ( m o d 6 2 5 ) . The first has solutions if and only if n is not a multiple of 2, and the second has solutions if and only if n is not a multiple of 25.
While this is exactly what you expressed, the above is much clearer / easier to follow.
Log in to reply
Indeed, using the Chinese Remainder Theorem to split the original congruence into two makes it a lot easier to deal with in a case-by-case basis. Thanks for the useful advice. Your reviews have been very helpful. Looking forward to more of them in my future solutions!
Since 2015 is an odd number, hence all even 3-digit numbers are N 3 - numbers . There are 450 of them.
Next, it is clear that if the 3-digit numbers end in 25 or 75, then its multiples end in 25 or 75. Thus X 2 5 or Y 7 5 are N 3 - numbers . There are 18 of them.
So far, we have 468 N 3 - numbers . We claim that there are no other N 3 - numbers . The proof is as follows.
Suppose it is an odd 3-digit number not end in 5, says n . Then there exist a unique 1-digit number m such that the last digit of m n ∈ { 0 , 1 , 2 , … , 9 } . If n k = A 2 0 1 5 , working backward from the last digit of k (which obviously is 5), after obtain the value of 5 n , check what is the second last digit of k using the idea of getting the value of the 1-digit m , repeat it again until we obtain A 2 0 1 5 (you may see the solution of the End in 2015 to understand more). This shows that all odd 3-digit numbers not end in 5 are not N 3 - numbers .
Suppose it is an 3-digit number of the form n = P Q 5 , where P , Q are single digit and Q = 2 , 7 . Then finding k such that n k = A 2 0 1 5 is equivalent to finding k such that 2 n k = A 4 0 3 0 . Note that the last two digit of 2 n is C D , where D = 0 and C ∈ { 1 , 3 , 7 , 9 } . This means that it is similar to find the value of k where n ′ k = A 4 0 3 with last digit of n ′ is either 1, 3, 7 or 9. Using the previous argument, we see that such k exists. So these 3-digit numbers are not N 3 - numbers .
Problem Loading...
Note Loading...
Set Loading...
We can write n x = 1 0 0 0 0 c + 2 0 1 5 , where c ≥ 0 and 1 0 0 ≤ n ≤ 9 9 9 .
Writing this in the language of congruence, we have n x ≡ 2 0 1 5 ( m o d 1 0 0 0 0 ) . If n is a N 3 -number, we will never be able to find a x which satisfies the congruence.
We invoke the following well known result from elementary number theory:
Take a look at the congruence n x ≡ 2 0 1 5 ( m o d 1 0 0 0 0 ) . If n does not share a common factor with 1 0 0 0 0 , then we will always be able to find a x which satisfies the congruence, hence such n cannot be N 3 -numbers.
We focus now on cases where n shares common factors larger than 1 with 1 0 0 0 0 . We know that such common factors must take the form of d = 2 a 1 5 a 2 , where 0 ≤ a 1 , a 2 ≤ 4 , with a 1 and a 2 not both 0 .
We now argue that for a 1 = 0 , n is a N 3 number. To prove this, write n = 2 k and substitute it into the original equation. We have 2 k x − 1 0 0 0 0 c = 2 0 1 5 , but this is absurd since the L.H.S is divisible by 2 while the R.H.S. isn't. We therefore conclude that no such x exists.
Now, we focus on cases where a 1 = 0 . In other words, the only common factors shared between n and 1 0 0 0 0 are powers of 5 .
We now prove that for a 2 ≥ 2 , n is a N 3 number. To prove this, write n = 2 5 k and substitute it into the original equation. We have 2 5 k x − 1 0 0 0 0 c = 2 0 1 5 , which simplifies to 5 k x − 2 0 0 0 c = 4 0 3 , which is absurd since the L.H.S. is divisible by 5 while the R.H.S. isn't. We therefore conclude that no such x exists.
All that is left for us to consider are cases where a 1 = 0 , a 2 = 1 , or in other words, g cd ( n , 1 0 0 0 0 ) = 5 . Write n = 5 k and substitute it into our original equation. We get 5 k x − 1 0 0 0 0 c = 2 0 1 5 , which simplifies to k x − 2 0 0 0 c = 4 0 3 . In the language of congruence, this is k x ≡ 4 0 3 ( m o d 2 0 0 0 ) . However, since g cd ( k , 2 0 0 0 ) = 1 , invoking the result from above, we can find a x which satisfies the congruence. Therefore, such n are not N 3 numbers.
To recap, all N 3 numbers must either be divisible by 2 or/and divisible by 2 5 . A quick computation reveals that there are 4 6 8 such numbers.