Never Ends in 2015

There are some 3-digit integers for which its multiples, never ends in 2015. We call these 3-digit numbers as N 3 N_{3} - numbers .

How many N 3 N_{3} - numbers are there?

For example :

100 × n 100\times n , where n n is an integer, never ends in 2015; while for 131, we have 131 × 8565 = 1122015 131 \times 8565 = 1122015 , which ends in 2015.


This question is from the set starts, ends, never ends in 2015 .


The answer is 468.

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.

2 solutions

Zk Lin
Feb 12, 2016

We can write n x = 10000 c + 2015 nx=10000c+2015 , where c 0 c \geq 0 and 100 n 999 100 \leq n \leq 999 .

Writing this in the language of congruence, we have n x 2015 ( m o d 10000 ) nx \equiv 2015 \pmod{10000} . If n n is a N 3 N_{3} -number, we will never be able to find a x x which satisfies the congruence.

We invoke the following well known result from elementary number theory:

The congruence a x b ( m o d c ) ax \equiv b \pmod{c} has a solution in x x if gcd ( a , c ) = 1 \gcd(a,c)=1 .

Take a look at the congruence n x 2015 ( m o d 10000 ) nx \equiv 2015 \pmod{10000} . If n n does not share a common factor with 10000 10000 , then we will always be able to find a x x which satisfies the congruence, hence such n n cannot be N 3 N_{3} -numbers.

We focus now on cases where n n shares common factors larger than 1 1 with 10000 10000 . We know that such common factors must take the form of d = 2 a 1 5 a 2 d=2^{a_{1}}5^{a_{2}} , where 0 a 1 , a 2 4 0 \leq a_{1},a_{2} \leq4 , with a 1 a_{1} and a 2 a_{2} not both 0 0 .

We now argue that for a 1 0 a_{1} \neq 0 , n n is a N 3 N_{3} number. To prove this, write n = 2 k n=2k and substitute it into the original equation. We have 2 k x 10000 c = 2015 2kx-10000c=2015 , but this is absurd since the L.H.S is divisible by 2 2 while the R.H.S. isn't. We therefore conclude that no such x x exists.

Now, we focus on cases where a 1 = 0 a_{1} =0 . In other words, the only common factors shared between n n and 10000 10000 are powers of 5 5 .

We now prove that for a 2 2 a_{2} \geq 2 , n n is a N 3 N_{3} number. To prove this, write n = 25 k n=25k and substitute it into the original equation. We have 25 k x 10000 c = 2015 25kx-10000c=2015 , which simplifies to 5 k x 2000 c = 403 5kx-2000c=403 , which is absurd since the L.H.S. is divisible by 5 5 while the R.H.S. isn't. We therefore conclude that no such x x exists.

All that is left for us to consider are cases where a 1 = 0 , a 2 = 1 a_{1}=0, a_{2}=1 , or in other words, gcd ( n , 10000 ) = 5 \gcd(n,10000)=5 . Write n = 5 k n=5k and substitute it into our original equation. We get 5 k x 10000 c = 2015 5kx-10000c=2015 , which simplifies to k x 2000 c = 403 kx-2000c=403 . In the language of congruence, this is k x 403 ( m o d 2000 ) kx \equiv 403 \pmod{2000} . However, since gcd ( k , 2000 ) = 1 \gcd(k,2000)=1 , invoking the result from above, we can find a x x which satisfies the congruence. Therefore, such n n are not N 3 N_{3} numbers.

To recap, all N 3 N_{3} numbers must either be divisible by 2 2 or/and divisible by 25 25 . A quick computation reveals that there are 468 468 such numbers.

Moderator note:

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 2015 ( m o d 10000 ) n x \equiv 2015 \pmod{10000} if and only if there exists solutions to both of the equations n x 2015 ( m o d 16 ) nx \equiv 2015 \pmod { 16 } and n x 2015 ( m o d 625 ) nx \equiv 2015 \pmod{ 625} . The first has solutions if and only if n n is not a multiple of 2, and the second has solutions if and only if n 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 2015 ( m o d 10000 ) n x \equiv 2015 \pmod{10000} if and only if there exists solutions to both of the equations n x 2015 ( m o d 16 ) nx \equiv 2015 \pmod { 16 } and n x 2015 ( m o d 625 ) nx \equiv 2015 \pmod{ 625 } . The first has solutions if and only if n n is not a multiple of 2, and the second has solutions if and only if n n is not a multiple of 25.

While this is exactly what you expressed, the above is much clearer / easier to follow.

Calvin Lin Staff - 5 years, 3 months ago

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!

ZK LIn - 5 years, 3 months ago
Chan Lye Lee
Oct 18, 2015

Since 2015 is an odd number, hence all even 3-digit numbers are N 3 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 25 \overline{X25} or Y 75 \overline{Y75} are N 3 N_3 - numbers . There are 18 of them.

So far, we have 468 N 3 N_3 - numbers . We claim that there are no other N 3 N_3 - numbers . The proof is as follows.

Suppose it is an odd 3-digit number not end in 5, says n n . Then there exist a unique 1-digit number m m such that the last digit of m n { 0 , 1 , 2 , , 9 } mn \in \{0,1,2, \ldots,9\} . If n k = A 2015 nk=\overline{A2015} , working backward from the last digit of k k (which obviously is 5), after obtain the value of 5 n 5n , check what is the second last digit of k k using the idea of getting the value of the 1-digit m m , repeat it again until we obtain A 2015 \overline{A2015} (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 N_3 - numbers .

Suppose it is an 3-digit number of the form n = P Q 5 n=\overline{PQ5} , where P , Q P,Q are single digit and Q 2 , 7 Q \neq 2,7 . Then finding k k such that n k = A 2015 nk=\overline{A2015} is equivalent to finding k k such that 2 n k = A 4030 2nk= \overline{A4030} . Note that the last two digit of 2 n 2n is C D \overline{CD} , where D = 0 D=0 and C { 1 , 3 , 7 , 9 } C \in \{1,3,7,9\} . This means that it is similar to find the value of k k where n k = A 403 n'k= \overline{A403} with last digit of n n' is either 1, 3, 7 or 9. Using the previous argument, we see that such k k exists. So these 3-digit numbers are not N 3 N_3 - numbers .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...