login
A378104
Positive integers that are digitally balanced in more than one integer base b >= 2.
5
135, 141, 147, 156, 177, 180, 198, 201, 210, 216, 225, 228, 572, 678, 684, 714, 722, 738, 2110, 2170, 2230, 2382, 2410, 2638, 2702, 2710, 2758, 2830, 2886, 8287, 8351, 8367, 8375, 8399, 8415, 8429, 8435, 8479, 8527, 8539, 8551, 8563, 8569, 8591, 8605, 8615, 8619, 8630
OFFSET
1,1
COMMENTS
A digitally balanced number in base b contains every digit from 0 to b-1 in equal amount.
LINKS
Giovanni Resta, Digitally balanced numbers, Numbers Aplenty, 2013.
EXAMPLE
135 is a term because it's a digitally balanced number in two bases (135 = 10000111_2 = 2013_4).
The first term that is digitally balanced in three bases is 13575 = 11010100000111_2 = 200121210_3 = 142503_6.
MATHEMATICA
A378104Q[n_] := Module[{b = 1, c = 0, len}, While[(len = IntegerLength[n, ++b]) >= b, If[Divisible[len, b] && SameQ @@ DigitCount[n, b], c++]]; c > 1];
Select[Range[10000], A378104Q]
CROSSREFS
Subsequence of A378073.
Sequence in context: A371307 A335950 A355002 * A038369 A066282 A235809
KEYWORD
nonn,base,new
AUTHOR
Paolo Xausa, Nov 16 2024
STATUS
approved