The number 123456789 is concatenated 1729 times to form a certain number:
A = 1729 ( 1 2 3 4 5 6 7 8 9 ) ’s 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 … 1 2 3 4 5 6 7 8 9
Similarly, the number 987654321 is concatenated 1729 times to form another certain number:
B = 1729 ( 9 8 7 6 5 4 3 2 1 ) ’s 9 8 7 6 5 4 3 2 1 9 8 7 6 5 4 3 2 1 … 9 8 7 6 5 4 3 2 1
If A + B = C , find the sum of digits of C .
Bonus: Generalize this.
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.
Solved it the same way. When you get C, just multiply 1 x 15561, which also happens to be (Number of digits - 1) because of the trailing zero.
For 2 concatenations 123456789123456789 +
1111111111111111110 So you got (18)1's for 2 concatenations same pattern will be followed for 1729 concatenations and you'll get 1729×9 one's and sum of digits will be 1729×9 which 15561
nice logic
Nice that you used the Hardy-Ramanujan number 1729 too - https://simple.wikipedia.org/wiki/Taxicab_number
Ofcourse, we are from India :D
Problem Loading...
Note Loading...
Set Loading...
Since both A , B are 1 7 2 9 × 9 = 1 5 5 6 1 digit number , there is a perfect pairing between their digits in the sum like this:
1 + 9 = 1 0 2 + 8 = 1 0 3 + 7 = 1 0 4 + 6 = 1 0 5 + 5 = 1 0 6 + 4 = 1 0 7 + 3 = 1 0 8 + 2 = 1 0 9 + 1 = 1 0
So there is a bijection between a k t h digit of A and the k t h digit of B such that A k + B k = 1 0 where A i , B i are the i t h digits from left in A , B respectively. We observe that ∀ i 1 ≤ i ≤ 1 5 5 6 1 , A i + B i = 1 0 . So A + B can be written in the form:
A + B = i = 1 ∑ 1 5 5 6 1 1 0 i − 1 ( A 1 5 5 6 2 − i + B 1 5 5 6 2 − i ) = i = 1 ∑ 1 5 5 6 1 1 0 i = 15561 ( 1 1 1 1 1 1 1 1 1 ) ’s , 1 0 ’s 1 1 1 1 1 1 1 1 1 … 1 1 1 1 1 0
Hence sum of digits in A + B = 1 5 5 6 1 × 1 = 1 5 5 6 1 .
Generalization:
If in A , 1 2 3 4 5 6 7 8 9 is concatenated n times , in B , 9 8 7 6 5 4 3 2 1 is concatenated n times , then sum of digits of A + B = 9 n .