login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A262905 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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 1 13:44 EDT 2024. Contains 372173 sequences. (Running on oeis4.)