A230453 Number of terms in the "comma sum" sequence (cf. A230288) starting with n, or 0 if it is infinite.
2, 1, 1, 1, 1, 122, 121, 121, 120, 120, 122, 121, 121, 120, 120, 120, 120, 119, 118, 119, 120, 120, 119, 118, 119, 118, 118, 117, 117, 117, 118, 118, 117, 117, 117, 117, 116, 116, 116, 116, 117, 116, 116, 116, 116, 115, 115, 4, 115, 4, 115, 115, 4, 115, 4, 114, 114, 114, 114, 3, 114, 114, 114, 114, 3, 3, 113, 3, 113, 2, 3, 113, 3, 113
Offset: 0
Programs
-
PARI
for(n=0,196,print1(#A230288_list([n],150),",")) \\ The second argument (nMax) is useful only for n>= 396. If this value (here 150) is printed, this most probably means that the sequence is infinite, a(n)=0.
-
Python
# uses A230288gen() in A230288 def a(n): return len(list(A230288gen(start=[n]))) print([a(n) for n in range(100)]) # Michael S. Branicky, Nov 03 2024
Comments