Digits Describing Digits

Find a 9-digit number where the first digit is how many zeros in the number, the second digit is how many ones in the number, the third digit is how many twos in the number, and so on, until the ninth digit which is how many eights in the number.


The answer is 521001000.

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.

1 solution

Adrian Peasey
Jun 27, 2015

Since the digits describe how many there are of each digit, they must sum to 9 for a 9 digit number.

This means we can only have at most 1 digit which is 5/6/7/8, and if they are present they have to be the first digit since any other position would result in a sum greater than 9.

If we have none of these, the sum cannot reach 9 without the respective positions being non-zero which is invalid.

So there must be one of these digits present.

This produces a 1 in the respective position, so there must be a non-zero digit in the 1 position.

The 1 position cannot contain a 1 since that would make two of them, so it must be at least 2.

This places a 1 in the respective position (denoted as n n ).

These digits sum to n × 1 + n = 2 n n\times1+n=2n , so the first digit is 9 2 n 5 9-2n\geq5 .

This means n 2 n\leq2 but we already said n 2 n\geq2 so n = 2 n=2 .

So the answer is 521001000 \boxed{521001000}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...