login
a(n) = number of steps needed to reach zero when starting with k = n, and repeatedly replacing k with A262904(k).
3

%I #7 Oct 11 2015 10:54:53

%S 0,1,2,1,1,1,3,1,1,3,3,3,2,3,3,3,3,3,2,3,3,3,2,3,3,2,2,3,2,3,4,3,2,3,

%T 2,3,3,3,2,3,2,3,2,3,2,3,4,3,2,4,2,3,4,3,4,3,2,3,4,3,2,3,3,3,3,3,4,3,

%U 3,3,4,3,2,3,4,3,4,3,4,3,4,4,4,4,2,4,4,4,4,4,4,4,4,4,4,4,2,4,4,4,4,4,4,4,2,4,3,4,2,4,4,4,4,4,4,4,4,4,4,4,2,4

%N a(n) = number of steps needed to reach zero when starting with k = n, and repeatedly replacing k with A262904(k).

%H Antti Karttunen, <a href="/A262905/b262905.txt">Table of n, a(n) for n = 0..65538</a>

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

%o (Scheme, with memoization-macro definec)

%o (definec (A262905 n) (if (zero? n) n (+ 1 (A262905 (A262904 n)))))

%Y Cf. A262904, A262907.

%K nonn

%O 0,3

%A _Antti Karttunen_, Oct 07 2015