OFFSET
1,2
COMMENTS
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
Eric Angelini, Michael S. Branicky, Giovanni Resta, N. J. A. Sloane, and David W. Wilson, The Comma Sequence: A Simple Sequence With Bizarre Properties, arXiv:2401.14346, Youtube
EXAMPLE
PROG
(Python)
def comma_parent(n): # A367616(n)
y = int(str(n)[0])
x = (n-y)%10
k = n - y - 10*x
return k if k > 0 else -1
def a(n):
an = n
while (cp:=comma_parent(an)) > 0: an = cp
return an
print([a(n) for n in range(1, 76)]) # Michael S. Branicky, Dec 18 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michael S. Branicky and N. J. A. Sloane, Dec 18 2023
STATUS
approved