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 (one billion two hundred thirty-four million five hundred sixty-seven thousand eight hundred ninety) is a pandigital number in base 10.
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:
As well as some other numeral systems:
gives the base 10 values for the first 18 bases.
In a trivial sense, all positive integers are pandigital in unary (or tallying). In binary, all integers are pandigital except for 0 and numbers of the form (the Mersenne numbers). 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 (but not putting the zero first as the most significant digit) 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 .
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 (these are also referred to as "penholodigital" or "zeroless pandigital numbers").
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 (in any base except unary) 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 = 99066<sup>2</sup>.
Two of the zeroless pandigital Friedman numbers are: 123456789 = ((86 + 2 à7)<sup>5</sup> â 91) / 3<sup>4</sup>, and 987654321 = (8 à(97 + 6/2)<sup>5</sup> + 1) / 3<sup>4</sup>.
A pandigital Friedman number without redundant digits is the square: 2170348569 = 46587<sup>2</sup> + (0 ÃÂ 139).
The concept of a "pandigital approximation" was introduced by Erich Friedman in 2004. With the digits from 1 to 9 (each used exactly once) 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 (while others use strings of zeroes).
Several arithmetic properties of pandigital numbers have been studied, in particular regarding divisibility and prime factorization.
There are 244,423 cases in which a pandigital number is an integer multiple of another pandigital number. These frequently form multiplication chains consisting of several successive steps, with identical or different factors. Among these, 6,760 pandigital numbers initiate a chain with at least two steps, and 68 initiate a chain with three steps.
The smallest prime number that is not a divisor of any pandigital number is 111,119. However, some larger prime numbers do occur as divisors of pandigital numbers.
The largest prime divisor of a pandigital number is 1,097,393,447; multiplied by 9, it yields the pandigital number 9,876,541,023.
In total, there are 87 pandigital square numbers. No pandigital cube and no pandigital number with an integer root of higher degree are known.
Only three pandigital numbers have prime factorizations consisting exclusively of powers of one-digit primes (2, 3, 5, and 7):
For each natural number n, there exists a maximum exponent k such that nk divides at least one pandigital number, while nk+1 does not divide any.
For example, three pandigital numbers are divisible by 2<sup>21</sup>, but none by 2<sup>22</sup>:
With respect to 3, only one pandigital number is divisible by 3<sup>15</sup>, and none by 3<sup>16</sup>:
Analogously, only one pandigital number is divisible by 5<sup>9</sup>, while 5<sup>10</sup> does not occur:
This behavior extends to other integers. For example, 13 pandigital numbers are divisible by 6<sup>8</sup>, whereas 6<sup>9</sup> does not occur as a divisor of any pandigital number.