Find a 10-digit number where the first digit is how many zeros in the number, the second digit is how many 1s in the number etc. until the tenth digit which is how many 9s in the number.
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.
In order to proceed we need to look at the digit sum of the number and create restraints at each stage of the "trial-and-improvement" method. Here's how it goes....
Let the number be n(0)n(1)n(2)..n(9) such that: n ( 0 ) + n ( 1 ) + n ( 2 ) + n ( 3 ) + . . . + n ( 7 ) + n ( 8 ) + n ( 9 ) = n ( 1 ) + 2 n ( 2 ) + 3 n ( 3 ) + . . . + 7 n ( 7 ) + 8 n ( 8 ) + 9 n ( 9 ) ( 1 ) The changing coefficients can be explained with an example. If n(5) = 3 then there are digits equal to 5 giving a "sub-sum" of 5(3) = 15. Note that n ( k ) = k otherwise we get a contradiction and n ( k ) = 0 ⟹ n ( 0 ) = k . Equation (1) gives: n ( 2 ) + 2 n ( 3 ) + 3 n ( 4 ) + . . . + 7 n ( 8 ) + 8 n ( 9 ) = n ( 0 ) ≤ 9 . n ( 6 ) + n ( 7 ) + n ( 8 ) + n ( 9 ) ≤ 1 ∣ n ( 5 ) + n ( 6 ) + n ( 7 ) + n ( 8 ) + n ( 9 ) ≤ 2 . . . n ( 3 ) + n ( 4 ) + n ( 5 ) + n ( 6 ) + n ( 7 ) + n ( 8 ) + n ( 9 ) ≤ 4 C a s e n ( 9 ) = 1 : If n(0) = 9, then n(9) = 0 or 1 -> No solution. If n(0) = 8, then n(2) = 1 -> No solution. Therefore, n(9) = 0. C a s e n ( 9 ) = 0 , n ( 8 ) = 1 : For n(0) = 8 (n(0) = 9 is an immediate contradiction) , so n(2) = 1 -> No solution. If n(0) = 7.
Continuing this method we find that: n ( 9 ) = n ( 8 ) = n ( 7 ) = 0 , n ( 6 ) = 1 : Equation (1) implies that n(2) = 1, leaving 6n(2)10001000, so b= 2. ∴ a n s w e r = 6 2 1 0 0 0 1 0 0 0
Going further shows that this solution is unique.