login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A254110
Zero-based column index of n in A254105: if A234017(n) = 0, then a(n) = 0, otherwise a(n) = 1 + a(A234017(n)).
4
0, 1, 0, 0, 2, 1, 0, 0, 1, 0, 0, 3, 2, 1, 0, 0, 1, 0, 0, 2, 1, 0, 0, 1, 0, 0, 4, 3, 2, 1, 0, 0, 1, 0, 0, 2, 1, 0, 0, 1, 0, 0, 3, 2, 1, 0, 0, 1, 0, 0, 2, 1, 0, 0, 1, 0, 0, 5, 4, 3, 2, 1, 0, 0, 1, 0, 0, 2, 1, 0, 0, 1, 0, 0, 3, 2, 1, 0, 0, 1, 0, 0, 2, 1, 0, 0, 1, 0, 0, 4, 3, 2, 1, 0, 0, 1, 0, 0, 2, 1, 0, 0, 1, 0, 0, 3, 2, 1, 0, 0, 1, 0, 0, 2, 1, 0, 0, 1, 0, 0, 6, 5, 4, 3, 2, 1, 0, 0
OFFSET
1,5
LINKS
FORMULA
If A234017(n) = 0, then a(n) = 0, otherwise a(n) = 1 + a(A234017(n)).
PROG
(Scheme, with memoizing macro definec)
(definec (A254110 n) (if (zero? (A234017 n)) 0 (+ 1 (A254110 (A234017 n)))))
CROSSREFS
One less than A254111.
Sequence in context: A122855 A140727 A140728 * A331289 A329619 A298426
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 27 2015
STATUS
approved