TOPICS
Search

Integers with Restricted Digits


Integers with restricted digits are nonnegative integers whose expansions in a fixed integer base b>=2 use only digits from a prescribed nonempty set D subset= {0,1,...,b-1}. The usual expansion without leading zeros is intended. The expansion of 0 is the single digit 0, so it qualifies exactly when 0 in D. Such restrictions are studied in analytic number theory (Banks and Shparlinski 2004).

For a positive integer m, the number of qualifying positive integers with exactly m digits is

 |D\{0}||D|^(m-1).

The first digit can be any nonzero member of D, and each remaining digit can be any member.

Write B_b for the set of nonnegative integers using only the digits 0 and 1 in base b. This condition is automatic in base 2 but restrictive in larger bases. For example, 82000=(11011111001)_3=(110001100)_4=(10111000)_5 (Numberphile 2015). It is conjectured that B_3 intersection B_4 intersection B_5={0,1,82000} (OEIS A146025; Burrell and Yu 2021). Completeness of this list has not been proved.

Burrell and Yu (2021) proved that, for every epsilon>0, there is a constant C_epsilon>0 such that, for every positive integer N,

 #{n in B_4 intersection B_5:1<=n<=N}<=C_epsilonN^epsilon.

Known members of B_4 intersection B_5 include 0, 1, 5, 16400, 16401, 16405, 82000, 82001, and 82005 (OEIS A263684). The same bound holds after imposing the additional base 3 restriction. The estimate does not prove that either intersection is finite or that the conjectured list is complete.


See also

Primes with Restricted Digits

Explore with Wolfram|Alpha

References

Banks, W. D. and Shparlinski, I. E. "Arithmetic Properties of Numbers with Restricted Digits." Acta Arith. 112, 313-332, 2004. https://doi.org/10.4064/aa112-4-1.Burrell, S. A. and Yu, H. "Digit Expansions of Numbers in Different Bases." J. Number Th. 226, 284-306, 2021. https://doi.org/10.1016/j.jnt.2021.01.003.Numberphile. "Why 82,000 Is an Extraordinary Number." Jun. 12, 2015. https://www.youtube.com/watch?v=LNS1fabDkeA.Sloane, N. J. A. Sequences A146025 and A263684 in "The On-Line Encyclopedia of Integer Sequences."

Cite this as:

Weisstein, Eric W. "Integers with Restricted Digits." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/IntegerswithRestrictedDigits.html

Subject classifications