OFFSET
1,1
COMMENTS
This sequence is finite, with last term a(19706) = 999945.
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 1..19706
PROG
(Python)
from itertools import islice
def agen(start=5): # generator of terms
an, y = start, 1
while y < 10:
yield an
an, y = an + 10*(an%10), 1
while y < 10:
if str(an+y)[0] == str(y):
an += y
break
y += 1
print(list(agen())) # Michael S. Branicky, Nov 18 2023
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
N. J. A. Sloane, Nov 14 2023
STATUS
approved