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!)
A087258 a(n) = gcd(n, A025586(n)), greatest common divisor of n and largest value in 3x+1 iteration list started at n. 1
1, 2, 1, 4, 1, 2, 1, 8, 1, 2, 1, 4, 1, 2, 5, 16, 1, 2, 1, 20, 1, 2, 1, 24, 1, 2, 1, 4, 1, 10, 1, 32, 1, 2, 5, 4, 1, 2, 1, 40, 1, 2, 1, 4, 1, 2, 1, 48, 1, 2, 1, 52, 1, 2, 1, 56, 1, 2, 1, 20, 1, 2, 1, 64, 1, 2, 1, 68, 1, 10, 1, 72, 1, 2, 5, 4, 1, 2, 1, 80, 1, 2, 1, 84, 1, 2, 1, 88, 1, 2, 1, 4, 1, 2, 1, 96, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
c[x_] := (1-Mod[x, 2])*(x/2)+Mod[x, 2]*(3*x+1)c[1]=1; fpl[x_] := Delete[FixedPointList[c, x], -1] Table[GCD[w, Max[fpl[w]]], {w, 1, 256}]
PROG
(PARI)
A025586(n) = { my(r=n); while(n>2, if(n%2, n=3*n+1; if(n>r, r=n), n/=2)); (r); }; \\ From A025586
A087258(n) = gcd(n, A025586(n)); \\ Antti Karttunen, Dec 05 2018
CROSSREFS
Sequence in context: A356166 A327405 A322362 * A333763 A076775 A357689
KEYWORD
nonn
AUTHOR
Labos Elemer, Sep 09 2003
STATUS
approved

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 17 12:26 EDT 2024. Contains 372600 sequences. (Running on oeis4.)