OFFSET
1,3
COMMENTS
LINKS
Thomas König, Table of n, a(n) for n = 1..19840
EXAMPLE
31939595966 is 11101101111101111111000111010111110_2, 10001102220222120211202_3, 1010403014032331_5, 2210331041405_7, 12600084203_11 and 3020180615_13. In these bases, the sum of digits is 26, so 31939595966 is a term.
PROG
(Python)
def digsum(n, b):
s = 0
while n > 0:
n, d = n//b, n%b
s = s+d
return s
p = [2, 3, 5, 7, 11, 13]
n, a = 0, 0
while n <= 20:
s2, i = digsum(a, 2), 1
while i < len(p) and digsum(a, p[i]) == s2:
i = i+1
if i == len(p):
print(a, end = ", ")
n = n+1
a = a+1 # A.H.M. Smeets, May 16 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Thomas König, Sep 13 2020
STATUS
approved