OFFSET
1,2
LINKS
Dominic McCarty, Table of n, a(n) for n = 1..10000
EXAMPLE
The product of the first 6 terms is 720. "7" is a substring of "720", so a(7) cannot be 7. So, a(7) is the next available value, 8.
PROG
(Python)
from itertools import count
from math import prod
a = [1]
while len(a) < 40: a.append(next(k for k in count(a[-1]+1) if str(k) not in str(prod(a))))
print(a)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Dominic McCarty, Apr 19 2025
STATUS
approved
