Self-Descriptive Number

Logic Level 4

A self-descriptive number is an integer mm in which each digit dd at position nn (the most significant digit being at position 00 and the least significant at position 99) counts how many instances of digit nn are in mm. The smallest self-descriptive number is 12101210, as it has 1 zero, 2 ones, 1 two and 0 threes. Find the largest self-descriptive number.

×

Problem Loading...

Note Loading...

Set Loading...