Let
D
be a positive integer. Let
C
be a positive integer which has exactly the same digits of
D
, but arranged in a different order.
If
D
+
C
=
1
0
1
0
, what is the remainder when
D
is divided by
1
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.
Can you just say me what the contradiction is?
Log in to reply
The contradiction is that twice of a number, hence even, is odd. Let me edit it in for clarity
Okay, this one is tricky. Consider that the problem is symmetric for C and D ; that is, one of the numbers can be rearranged to form the other. So the last digit of them both has to be the same, since we're working with modulo 10 here (Here I'm stating that C = = D ( m o d 1 0 ) , otherwise we'd have more than one solution.). Now, the only way that two numbers which have the same last digit can be summed and end with a 0 are either both ending in 0 or both ending in 5 .
If the numbers end in 0 , then everyone divides 1 0 and we can all be happy about it. If the numbers end in 5 , however, there's a carry of 1 to the tens position while performing the summation. Now, the only way to guarantee that the tens position will be a 0 is by having the tens position of C and D having a sum of 9 (without taking the carry into factor). Notice that this will cause a ripple effect throughout the sum; every position will have a carry of 1 from the previous calculation. Therefore, each and every pair on every position must have a sum equal to 9 to carry on.
This is where it gets interesting. Let C i be the i-th digit of C , and D i be the i-th digit of D . If there's a pair of digits ( C i , D i ) satisfies the condition set on the last paragraph that C i + D i = 9 , then there must be another pair of numbers ( C j , D j ) , i = j in the sum such that they satisfy C i = D j and C j = D i . This is true because C is a permutation of D , and thus each digit of C is locked to 9 minus itself, which by the pigeonhole principle can make us reach this conclusion automatically.
Now, keep in mind that the only ordered pairs of numbers that satisfy C i + D i = 9 are: ( 0 , 9 ) , ( 1 , 8 ) , ( 2 , 7 ) , ( 3 , 6 ) , ( 4 , 5 ) , ( 5 , 4 ) , ( 6 , 3 ) , ( 7 , 2 ) , ( 8 , 1 ) , ( 9 , 0 ) . (As mentioned in the end of the last paragraph.) So, if we have a pair ( C i , D i ) that is equal to, let's say, ( 2 , 7 ) , there must then be another pair ( C j , D j ) which is the pair ( 7 , 2 ) .
Finally, notice that 1 0 1 0 is a 11-digit number, so it can only be the sum of two numbers with at most 10 digits. If we chose the ones place of C and D as being equal to 5, there will only be 9 pairs of ( C i , D i ) left to distribute along the number. Problem: For each pair, its "opposite" must also be contained in both numbers. But since we only have 9 pairs left, there will be a pair left out, since each pair is unique and cannot be replaced with itself. Thus, there is no number ending in 5 which can be rearranged and summed with itself to form 1 0 1 0 . Thus, the remainder of the division must be 0.
The simplest example of solution I could find was D = 5 4 5 0 0 0 0 0 0 0 and C = 4 5 5 0 0 0 0 0 0 0 , which illustrates the result. Of course, there are others.
(Note: The argument of the "carry ripple" can be used to give a stronger proof that both C and D must end with the same digit, but for simplicity's sake I decided to not write it down because it would be a waste of time.)
Why must we have C ≡ D ( m o d 1 0 ) ? Their digits are rearranged, and they do not need to have the same last digit.
We do have C ≡ D ( m o d 9 ) , which may be what you are thinking about.
Log in to reply
The problem asks for the remainder of D when it is divided by 10 (Hence, modulo 10). The problem is symmetric with respect to C and D ; if their last digits were to be different, we'd have more than one answer to the problem. I've stated this in my solution, give it a good read again. If it still looks confusing, remember that modulo 10 always produces the last digit of the number.
Log in to reply
I don't see why "we can't have more than one answer to the problem." Uniqueness of C and D (or even uniqueness of the way that we obtain C) is not stated in the problem.
Edit: The key step here (which you have) is to show that the sum of only the last digits must be 0, and not 10, which thus implies that the last digits are both 0. However, the initial assumption that C ≡ D is not valid (nor needed). You can continue your proof by comparing the parity of ∑ c i + d i , which is similar to what you did.
Log in to reply
@Calvin Lin – As far as I have understood the problem, C is not unique and I never stated it was. What I'm stating is that, for the family of solutions of this problem, all numbers are equal to zero modulo 10.
For example, suppose that C ends with, let's say, 7. Then D must end with a 3, since C + D ends with 0. Then, there must be a 3 in another digit place in C and a 7 in another digit place in D. If you refer to my carry ripple argument on the original solution, you'll see that every number that is not in the ones position is locked to 9 minus itself; i.e. 7 requires a 2 to be in the same position on the rearranged number, 3 requires a 6 to be on the same position on the rearranged number, and so on. The thing is, in my example where C ends in 7, D must end in 3; then there is a C i = 3 and then a corresponding D i = 6 ; this in turn implies that there is a C j = 6 and also a D i = 3 . This 3, however, doesn't have a counterpart in C, and so there must be a C k = 3 and then D k = 6 ; now we're stuck in an infinite loop in which a 3 in C creates a 6 in D, then there is a 6 in C which creates a 3 in D, and goes on until all digits have been established and giving us a wrong solution. This argument works for C ending in any number between 0 and 9 with the exception of 0 and 5.
Is my point clear now, Mr. Lin, or do you require further explanation?
Log in to reply
@Alexandre Miquilino – I do not understand your phrase of "(Here I'm stating that C = = D ( m o d 1 0 ) , otherwise we'd have more than one solution.)". This seems to be fixed by your above comment.
Your explanation is essentially correct, but the way that it is presented could be cleared up.
We can get a sum of 9 by (1+8,2+7,3+6,4+5) and for each combination among the four there should be reverse of it so that the all the digits are same in C and D . So, the first 8/6/4/2 digits of C and D can be any combination from the four combinations along with reverse of it (8+1,2+7,3+6,5+4) as number of combinations should always be even.
Now the last 2/4/6/8 digits will have to make a sum of 100/10000/100000/100000000 respectively in such a way that the digits are same in C and D leaving a carry of 1 . This can happen only when the last 2/4/6/8 digits are 50/5000/500000/50000000 respectively .
Why must the last few digits of C and D be the same?
Why must the pairing of 9's be 1-1? By doing so, you disallow for the units digit to add up to 10, which is the crux that you need to show
Log in to reply
The last even number of digits of C and D must be same as that is the only way the digits of C and D remains same and the pairing is important for the same reason. Yes , the unit digit can never add up to 10 as it will unbalance the digits of C and D. The last digit for C and D must be 0 and so the answer comes as 0 .
I used a method that was not very mathematical.
If two numbers have same digits and add up to a power of 10, they can be fractions of 7, to a power of 10 (For example: 4285710000 + 5714280000 = 10000000000, or (3/7) 10^10 + (4/7) 10^10 = 10^10)
Thus, the first 6 digits are non-zero and belong to both D and C. So, the last 4 digits of D and C will be 0. Thus, the remainder when divided by 10 is 0.
If sum of two numbers having same digit is in order of 100 then then they are 50\500\5000 so when we divide remainder is always 0.
Check this instinct ..... since both the numbers sum up to 10^10 so the units digits must have (1,9), 2,8) and so on but as their number of digits are same so so clearly all other digits except 0,0 are eliminated or else (as I do not knew the trick I found it mechanically ) the two numbers will have separate digits so the answer follows
Problem Loading...
Note Loading...
Set Loading...
Clearly C and D must be 10 digit numbers. Let C = c 1 c 2 … c 1 0 and D = d 1 d 2 … d 1 0 . Observe that d 1 0 + c 1 0 = 0 or 10.
Suppose that d 1 0 + c 1 0 = 1 0 . Then, this implies that d i + c i = 9 for i = 1 to 9. This gives
2 ∑ d i = ∑ ( d i + c i ) = 9 × 9 + 1 0 = 9 1 .
This is a contradiction as the LHS is even, while the RHS is odd. Thus, our original assumption that c 1 0 + d 1 0 = 1 0 is wrong.
Hence, we must have d 1 0 + c 1 0 = 0 , which gives us c 1 0 = d 1 0 = 0 .