Form 10^10 With The Same Digits

Let D D be a positive integer. Let C C be a positive integer which has exactly the same digits of D D , but arranged in a different order.
If D + C = 1 0 10 D+C=10^{10} , what is the remainder when D D is divided by 10 10 ?


The answer is 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.

6 solutions

Chung Kevin
Apr 3, 2014

Clearly C C and D D must be 10 digit numbers. Let C = c 1 c 2 c 10 C = \overline{c_1 c_2 \ldots c_{10}} and D = d 1 d 2 d 10 D = \overline{d_1 d_2 \ldots d_{10}} . Observe that d 10 + c 10 = 0 d_{10} + c_{10} = 0 or 10.

Suppose that d 10 + c 10 = 10 d_{10} + c_{10} = 10 . Then, this implies that d i + c i = 9 d_i + c_i = 9 for i = 1 i = 1 to 9. This gives

2 d i = ( d i + c i ) = 9 × 9 + 10 = 91. 2\sum d_i = \sum (d_i + c_i) = 9 \times 9 + 10 = 91.

This is a contradiction as the LHS is even, while the RHS is odd. Thus, our original assumption that c 10 + d 10 = 10 c_{10}+d_{10}=10 is wrong.

Hence, we must have d 10 + c 10 = 0 d_{10} + c_{10} = 0 , which gives us c 10 = d 10 = 0 c_{10} = d_{10} = 0 .

Can you just say me what the contradiction is?

Sriram Vudayagiri - 7 years, 2 months ago

Log in to reply

The contradiction is that twice of a number, hence even, is odd. Let me edit it in for clarity

Calvin Lin Staff - 7 years, 1 month ago

Okay, this one is tricky. Consider that the problem is symmetric for C C and D 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 10 ) C == D (mod 10) , 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 0 are either both ending in 0 0 or both ending in 5 5 .

If the numbers end in 0 0 , then everyone divides 10 10 and we can all be happy about it. If the numbers end in 5 5 , however, there's a carry of 1 1 to the tens position while performing the summation. Now, the only way to guarantee that the tens position will be a 0 0 is by having the tens position of C C and D 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 1 from the previous calculation. Therefore, each and every pair on every position must have a sum equal to 9 9 to carry on.

This is where it gets interesting. Let C i C_{i} be the i-th digit of C C , and D i D_{i} be the i-th digit of D D . If there's a pair of digits ( C i , D i ) (C_{i}, D_{i}) satisfies the condition set on the last paragraph that C i + D i = 9 C_{i} + D_{i} = 9 , then there must be another pair of numbers ( C j , D j ) , i j (C_{j}, D_{j}), i \not= j in the sum such that they satisfy C i = D j C_{i} = D_{j} and C j = D i C_{j} = D_{i} . This is true because C C is a permutation of D D , and thus each digit of C C is locked to 9 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 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 ) (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 ) (C_{i}, D_{i}) that is equal to, let's say, ( 2 , 7 ) (2, 7) , there must then be another pair ( C j , D j ) (C_{j}, D_{j}) which is the pair ( 7 , 2 ) (7, 2) .

Finally, notice that 1 0 10 10^{10} 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 C and D D as being equal to 5, there will only be 9 pairs of ( C i , D i ) (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 10 10^{10} . Thus, the remainder of the division must be 0.

The simplest example of solution I could find was D = 5450000000 D = 5450000000 and C = 4550000000 C = 4550000000 , 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 C and D 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 10 ) C \equiv D \pmod{10} ? Their digits are rearranged, and they do not need to have the same last digit.

We do have C D ( m o d 9 ) C \equiv D \pmod{9} , which may be what you are thinking about.

Calvin Lin Staff - 7 years, 2 months ago

Log in to reply

The problem asks for the remainder of D D when it is divided by 10 (Hence, modulo 10). The problem is symmetric with respect to C C and D 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.

Alexandre Miquilino - 7 years, 2 months ago

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 C \equiv D is not valid (nor needed). You can continue your proof by comparing the parity of c i + d i \sum c_i + d_i , which is similar to what you did.

Calvin Lin Staff - 7 years, 2 months ago

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 C ends with, let's say, 7. Then D must end with a 3, since C + D 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 C_{i} = 3 and then a corresponding D i = 6 D_{i} = 6 ; this in turn implies that there is a C j = 6 C_{j} = 6 and also a D i = 3 D_{i} = 3 . This 3, however, doesn't have a counterpart in C, and so there must be a C k = 3 C_{k} = 3 and then D k = 6 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 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?

Alexandre Miquilino - 7 years, 2 months ago

Log in to reply

@Alexandre Miquilino I do not understand your phrase of "(Here I'm stating that C = = D ( m o d 10 ) C == D (mod 10) , 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.

Calvin Lin Staff - 7 years, 2 months ago
Vikram Kumar
Apr 9, 2014

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

Calvin Lin Staff - 7 years, 1 month ago

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 .

Vikram Kumar - 7 years, 1 month ago

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

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...