OFFSET
1,1
COMMENTS
A digitally balanced number in base b contains every digit from 0 to b-1 in equal amount.
This is the set of all of the distinct terms in A378000.
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
Giovanni Resta, Digitally balanced numbers, Numbers Aplenty, 2013.
EXAMPLE
99 is a term because it's a digitally balanced number in base 5 (99 = 12034_5).
135 is a term because it's a digitally balanced number in two bases (135 = 10000111_2 = 2013_4).
MATHEMATICA
A378073Q[n_] := Module[{b = 1, len}, While[(len = IntegerLength[n, ++b]) >= b && !(Divisible[len, b] && SameQ @@ DigitCount[n, b])]; len >= b];
Select[Range[500], A378073Q]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo Xausa, Nov 16 2024
STATUS
approved