The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A364803 Smallest number that reaches a fixed point after n iterations of the map x -> A022290(x). 1

%I #10 Aug 25 2023 12:44:53

%S 0,4,5,6,7,10,14,23,46,117,442,3006,47983,2839934,918486751,

%T 3769839124330

%N Smallest number that reaches a fixed point after n iterations of the map x -> A022290(x).

%C a(n) is the smallest number k such that A364801(k) = n.

%t f[n_] := f[n] = Module[{d = IntegerDigits[n, 2], nd}, nd = Length[d]; Total[d * Fibonacci[Range[nd + 1, 2, -1]]]]; (* A022290 *)

%t iternum[n_] := -2 + Length@ FixedPointList[f, n]; (* A364801 *)

%t seq[kmax_] := Module[{s = {}, imax = -1, i}, Do[i = iternum[k]; If[i > imax, imax = i; AppendTo[s, k]], {k, 0, kmax}]; s]

%t seq[10^6]

%o (PARI) f(n) = {my(b = binary(n), nb = #b); sum(i = 1, nb, b[i] * fibonacci(nb - i + 2)); } \\ A022290

%o iternum(n) = if(n < 4, 0, iternum(f(n)) + 1); \\ A364801

%o lista(kmax) = {my(imax = -1, i1); for(k = 0, kmax, i = iternum(k); if(i > imax, imax = i; print1(k, ", ")));}

%Y Cf. A022290, A364801.

%Y Similar sequences: A007755, A364802.

%K nonn,base,more

%O 0,2

%A _Amiram Eldar_, Aug 08 2023

%E a(15) from _Martin Ehrenstein_, Aug 25 2023

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 25 14:05 EDT 2024. Contains 372788 sequences. (Running on oeis4.)