OFFSET
1,1
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..2047
EXAMPLE
a(3) = 47 since 47, 94 and 141 all contain a 4.
PROG
(Python)
def aupton(terms):
k, n, alst = 1, 1, []
while len(alst) < terms:
while not all(str(i*k).count('4') > 0 for i in range(1, n+1)): k += 1
while str(n*k).count('4') > 0: alst.append(k); n += 1
k += 1
return alst[:terms]
print(aupton(39)) # Michael S. Branicky, Apr 24 2021
CROSSREFS
KEYWORD
base,nonn
AUTHOR
EXTENSIONS
More terms from Patrick De Geest, Oct 15 1999
STATUS
approved