Pandigital number


In mathematics, a pandigital number is an integer that in a given base has among its significant digits each digit used in the base at least once. For example, 1234567890 is a pandigital number in base 10.

Smallest pandigital numbers

The first few pandigital base 10 numbers are :
The smallest pandigital number in a given base b is an integer of the form
The following table lists the smallest pandigital numbers of a few selected bases.
BaseSmallest pandigitalValue in base 10
111
2102
310211
4102375
510234694
61023458345
8102345672177399
1010234567891023456789
121023456789AB754777787027
161023456789ABCDEF1162849439785405935
361023456789ABCDEFGHIJKLMNOPQRSTUVWXYZ2959962226643665039859858867133882191922999717199870715
Roman
numerals
1444
Hebrew
numerals
4995

gives the base 10 values for the first 18 bases.
In a trivial sense, all positive integers are pandigital in unary. In binary, all integers are pandigital except for 0 and numbers of the form . The larger the base, the rarer pandigital numbers become, though one can always find runs of consecutive pandigital numbers with redundant digits by writing all the digits of the base together and adding x + 1 zeroes at the end as least significant digits.
Conversely, the smaller the base,, the fewer pandigital numbers without redundant digits there are. 2 is the only such pandigital number in base 2, while there are more of these in base 10. The formula is.

Variants and properties

Sometimes, the term is used to refer only to pandigital numbers with no redundant digits. In some cases, a number might be called pandigital even if it doesn't have a zero as a significant digit, for example, 923456781.
No base 10 pandigital number can be a prime number if it doesn't have redundant digits. The sum of the digits 0 to 9 is 45, passing the divisibility rule for both 3 and 9. The first base 10 pandigital prime is 10123457689; lists more.
For reasons of symmetry, redundant digits are also required for a pandigital number to also be a palindromic number in that base. The smallest pandigital palindromic number in base 10 is 1023456789876543201.
The largest pandigital number without redundant digits to be also a square number is 9814072356 = 990662.
Two of the zeroless pandigital Friedman numbers are: 123456789 = / 34, and 987654321 = / 34.
A pandigital Friedman number without redundant digits is the square: 2170348569 = 465872 +.
The concept of a "pandigital approximation" was introduced by Erich Friedman in 2004. With the digits from 1 to 9 and the mathematical symbols + − × / . and ^, Euler's number can be approximated as, which is correct to decimal places. The variant produces correct digits.
While much of what has been said does not apply to Roman numerals, there are pandigital numbers:,,,,,,,. These, listed in, use each of the characters just once, while has pandigital Roman numerals with repeats.
Pandigital numbers are useful in fiction and in advertising. The Social Security number 987-65-4321 is a zeroless pandigital number reserved for use in advertising. Some credit card companies use pandigital numbers with redundant digits as fictitious credit card numbers.

Examples in base 10

  • 123456789 = The first zeroless pandigital number.
  • 381654729 = The only zeroless pandigital number where the first digits are divisible by.
  • 987654321 = The largest zeroless pandigital number without redundant digits.
  • 1023456789 = The first pandigital number.
  • 1234567890 = The pandigital number with the digits in order.
  • 3816547290 = The polydivisible pandigital number; the only pandigital number where the first digits are divisible by.
  • 9814072356 = The largest pandigital square without redundant digits. It is the square of 99066.
  • 9876543210 = The largest pandigital number without redundant digits.
  • 12345678987654321 = A pandigital number with all the digits except zero in both ascending and descending order. It is the square of 111111111; see Demlo number. It is also a palindromic number.