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”).

A254111
One-based column index of n in A254105: If A234017(n) = 0, then a(n) = 1, otherwise a(n) = 1 + a(A234017(n)).
8
1, 2, 1, 1, 3, 2, 1, 1, 2, 1, 1, 4, 3, 2, 1, 1, 2, 1, 1, 3, 2, 1, 1, 2, 1, 1, 5, 4, 3, 2, 1, 1, 2, 1, 1, 3, 2, 1, 1, 2, 1, 1, 4, 3, 2, 1, 1, 2, 1, 1, 3, 2, 1, 1, 2, 1, 1, 6, 5, 4, 3, 2, 1, 1, 2, 1, 1, 3, 2, 1, 1, 2, 1, 1, 4, 3, 2, 1, 1, 2, 1, 1, 3, 2, 1, 1, 2, 1, 1, 5, 4, 3, 2, 1, 1, 2, 1, 1, 3, 2, 1, 1, 2, 1, 1, 4, 3, 2, 1, 1, 2, 1, 1, 3, 2, 1, 1, 2, 1, 1, 7, 6, 5, 4, 3, 2, 1, 1
OFFSET
1,2
LINKS
FORMULA
If A234017(n) = 0, then a(n) = 1, otherwise a(n) = 1 + a(A234017(n)).
PROG
(Scheme, with memoizing macro definec)
(definec (A254111 n) (if (zero? (A234017 n)) 1 (+ 1 (A254111 (A234017 n)))))
CROSSREFS
One more than A254110.
Column index of n in A254105, Row index for A254107.
Sequence in context: A337243 A296774 A066099 * A234246 A006375 A327520
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 27 2015
STATUS
approved