distinctdigit
Distinctdigit refers to integers whose decimal representation uses no repeated digits. In base 10, a number is distinct-digit if each digit from 0 to 9 appears at most once. The digit 0 may appear, but it cannot be the leading digit.
Examples include 7, 28, 1023456789, and 9876543210. Numbers such as 110 or 122345 are not distinct-digit because
Counting distinct-digit numbers in base 10: for an n-digit number with distinct digits (1 ≤ n ≤ 10),
In programming and puzzles, a common task is to test whether a given integer has distinct digits.
Generalizations extend the idea to other bases. In base b, an n-digit distinct-digit number (n ≤ b)