# Seven Digit Self-Describing Number

Logic Level 2

Find the seven-digit number with the property that the $$n$$th digit is the number of times the digit $$(n - 1)$$ appears in the number.

For example, the five-digit number with this property is 21200, because there are 2 zeros, 1 one, 2 twos, 0 threes, and 0 fours.

×