Digits can be built from sticks like a digital clock. The number of sticks for each digit:
| Digit | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|---|
| Sticks | 6 | 2 | 5 | 5 | 4 | 5 | 6 | 3 | 7 | 6 |
5108 needs 5 + 2 + 6 + 7 = 20 sticks. 42,019 needs 4 + 5 + 6 + 2 + 6 = 23 sticks.
Adding 2 sticks to 42,019: one way is 42,078 (1 → 7 adds 1 stick, 9 → 8 adds 1 stick).
Biggest with 24 sticks. More digits beat bigger digits, and 1 is the cheapest digit (2 sticks). 24 ÷ 2 = 12, so 111111111111 (twelve 1s) is the biggest.
Smallest with 24 sticks. Fewest digits wins. Three digits use at most 7 + 7 + 7 = 21 sticks, so we need 4 digits. A first digit 1 leaves 22 sticks for 3 digits (too many), so start with 2 (5 sticks). Then 0, 0 (6 + 6) leaves 7 sticks: an 8. The smallest is 2008 (5 + 6 + 6 + 7 = 24).
Inserting a 1 among 4, 2, 0, 1, 9: the choices are 1,42,019, 4,12,019, 4,21,019, 4,20,119 and 4,20,191. The biggest is 4,21,019.
Tap the diagram to enlarge it
- 1 uses 2 sticks, 8 uses 7
- More digits beat bigger digits
- 24 sticks: twelve 1s is biggest