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!)
A102423 Start at x=2n+1, iterate the map x -> A337349(x); sequence gives smallest number in the resulting cycle, or -1 if the trajectory never cycles. 4

%I #33 Aug 29 2020 13:17:33

%S 1,1,1,1,1,1,1,17,17,17,1,1,1,17,1,1,1,1,1,1,1,17,1,1,1,1,1,1,1,1,17,

%T 1,1,1,17,1,1,17,17,1,1,1,1,1,1,1,1,17,17,1,1,1,1,17,17,1,1,1,1,1,17,

%U 17,1,1,1,1,1,17,17,1,1,1,1,1,1,1,17,1,1,1,1,1,1,1,17,17,17,1,1,1,1,1,1,1,1

%N Start at x=2n+1, iterate the map x -> A337349(x); sequence gives smallest number in the resulting cycle, or -1 if the trajectory never cycles.

%C See A102421 and A337349 for further comments.

%H David A. Corneth, <a href="/A102423/b102423.txt">Table of n, a(n) for n = 0..9999</a>

%t nextx[x_Integer] := Block[{a = x}, a = 3a + 1; While[EvenQ@a, a /= 2]; a = 3a - 1; While[EvenQ@a, a /= 2]; a]; f[n_] := NestWhile[nextx, n, FreeQ[{1, 17, 19, 43, 97, 109, 61}, # ] &]; Table[ If[ f[2n + 1] == 1, 1, 17], {n, 0, 94}] (* _Robert G. Wilson v_, Sep 20 2006; added 61 to comparison set used for detecting cycles, _William P. Orrick_, Aug 24 2020; should be "!" prefixing MemberQ, changed to FreeQ, _Ray Chandler_, Aug 28 2020 *)

%Y Cf. A102421, A122563 (iterations to enter cycle), A337349.

%K nonn

%O 0,8

%A _N. J. A. Sloane_, based on email from Dan Asimov (dasimov(AT)earthlink.net), Sep 15 2006

%E More terms from _Robert G. Wilson v_, Sep 20 2006

%E Replaced A102421 by A337349 in NAME. - _R. J. Mathar_, Aug 24 2020

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 20 23:09 EDT 2024. Contains 372720 sequences. (Running on oeis4.)