Problem

Source: Kosovo National Olympiad 2025, Grade 7, Problem 3

Tags: combinatorics



A number is said to be regular if when a digit $k$ appears in that number, the digit appears exactly $k$ times. For example, the number $3133$ is a regular number because the digit $1$ appears exactly once and the digit $3$ appears exactly three times. How many regular six-digit numbers are there?