OFFSET
2,2
EXAMPLE
47 = 101111 (base 2), 1202 (base 3), 233 (base 4), 142 (base 5), 115 (base 6), 65 (base 7), 57 (base 8). Base 2 representation contains digit 1, base 3 representation contains digit 2, base 4 representation contains digit 3, etc., so a(8)=47.
PROG
(Python)
from sympy.ntheory.factor_ import digits
def A051640(n):
m = 0
while True:
for b in range(2, n+1):
if b-1 not in digits(m, b)[1:]:
break
else:
return m
m += 1 # Chai Wah Wu, May 18 2020
CROSSREFS
KEYWORD
base,nonn,nice
AUTHOR
Jeff Burch, Jun 04 2000
EXTENSIONS
More terms from Ulrich Schimke (ulrschimke(AT)aol.com), Jun 12 2000
Definition corrected by Franklin T. Adams-Watters, Apr 10 2006
a(34)-a(36) from Chai Wah Wu, May 18 2020
STATUS
approved