Find a Seven-Digit Number That Describes Itself
At a glance
- 1. Set the convention
Each position gives the number of occurrences of one digit, in order from zero through six.
- 2. Read the candidate
Use 3, 2, 1, 1, 0, 0, 0 as the counts for digits zero through six.
- 3. Check the digits
Count each digit in 3211000 and compare those totals with its seven entries.
A self-describing number encodes the counts of its own digits. For a seven-digit number, the usual convention is that the first digit gives the number of zeros, the second gives the number of ones, and so on through the seventh digit, which gives the number of sixes.
With that convention, 3211000 is a seven-digit number that describes itself. The verification is a direct count of its digits.
What “describes itself” means
Write the number’s digits as . The entry is supposed to equal the number of times digit appears in the whole number. In symbols,
For example, the first digit is the claimed count of zeros; it is not itself a count of all digits or a position label. This convention makes the sequence of seven entries a list of seven counts, one for each digit from zero through six.
Check the number 3211000
Read the entries of 3211000 in order:
| Digit being counted | Entry in the number | Actual count in 3211000 |
|---|---|---|
| 0 | 3 | 3 |
| 1 | 2 | 2 |
| 2 | 1 | 1 |
| 3 | 1 | 1 |
| 4 | 0 | 0 |
| 5 | 0 | 0 |
| 6 | 0 | 0 |
The number contains three zeros, two ones, one two, and one three. These account for all seven places: . There are no fours, fives, or sixes, matching the final three zero entries. Each entry therefore gives the correct count, so 3211000 is self-describing.
How to build one
A useful way to search is to treat the number as a list of counts rather than guess its digits randomly. For a seven-digit self-describing number, the entries must add up to seven because they count all seven positions:
Try a count pattern with three zeros, two ones, one two, and one three. The count list is , which, when written as digits, gives 3211000. Then check that the list really does produce those counts when it is treated as a number. That final check matters: a list that sums to seven is necessary, but the counts it claims must also match the digits it contains.
The first digit here is 3, so the result is indeed a seven-digit number rather than a number with a leading zero. In general, any proposed count list for a seven-digit number must also produce a nonzero first entry.
Common mistakes
- Starting the count with ones: The first entry counts zeros, not ones. The entries are ordered .
- Counting the entries instead of their values: There are seven digits in the number, but the first entry says there are three zeros—not that there are three digits in total.
- Stopping when the counts add to seven: A valid count list must also be consistent with the digits it writes down. Check every digit category.
- Assuming the number must include every digit: It need not. The final three entries are zero because the number contains no fours, fives, or sixes.
The standard seven-digit convention counts digits 0 through 6 because there are seven entries. A different puzzle might ask for counts of 0 through 9 or use a different base; that would be a different definition and would need to be stated separately.
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.