A368782 Comma transform of A366487.
12, 35, 94, 15, 16, 28, 31, 34, 37, 41, 45, 55, 55, 55, 55, 61, 67, 74, 71, 89, 98, 97, 18, 19, 11, 11, 12, 13, 14, 15, 16, 17, 18, 19, 11, 11, 12, 13, 14, 15, 16, 17, 18, 22, 22, 24, 26, 28, 22, 22, 24, 26, 28, 22, 22, 24, 26, 28, 22, 22, 24, 26, 28, 22, 22
Offset: 1
Links
- Michael S. Branicky, Table of n, a(n) for n = 1..20000
- Michael S. Branicky, Comma Comma Proof
Programs
-
Python
from itertools import islice, pairwise def S(): # generator of comma sequence an = 1 while True: yield an an += 10*(an%10) children = [an+y for y in range(1, 10) if str(an+y)[0] == str(y)] if not children: break an = children[0] def C(g): # generator of comma transform of sequence passed as a generator yield from (10*(t%10) + int(str(u)[0]) for t, u in pairwise(g)) def agen(): return C(C(S())) print(list(islice(agen(), 70))) # Michael S. Branicky, Jan 05 2024
Comments