login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

a(1) = 0; for n > 1, a(n) = 1 + a(A285712(n)).
6

%I #6 Apr 25 2017 11:47:22

%S 0,1,2,3,2,4,5,3,6,7,4,8,3,3,9,10,5,4,11,6,12,13,4,14,4,7,15,5,8,16,

%T 17,5,6,18,9,19,20,4,5,21,4,22,7,10,23,6,11,8,24,6,25,26,5,27,28,12,

%U 29,9,7,7,5,13,4,30,14,31,8,5,32,33,15,6,10,5,34,35,8,11,36,16,9,37,6,38,6,9,39,5,17,40,41,18,12,7,6,42,43,7,44,45,19,10,13

%N a(1) = 0; for n > 1, a(n) = 1 + a(A285712(n)).

%H Antti Karttunen, <a href="/A285714/b285714.txt">Table of n, a(n) for n = 1..8192</a>

%F a(1) = 0; for n > 1, a(n) = 1 + a(A285712(n)).

%F a(n) = A029837(1+A245611(n)).

%F a(n) = A285715(n) + A285716(n).

%o (Scheme)

%o ;; First definition uses memoization-macro definec:

%o (definec (A285714 n) (if (<= n 1) 0 (+ 1 (A285714 (A285712 n)))))

%o (define (A285714 n) (A029837 (+ 1 (A245611 n))))

%Y Cf. A029837, A245611, A285712, A285713, A285715, A285716.

%K nonn

%O 1,3

%A _Antti Karttunen_, Apr 25 2017