login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A140524 a(1)=2. For n >=2, a(n) = the least integer >= n that is not coprime to both n and a(n-1). 0
2, 2, 6, 4, 10, 6, 14, 8, 12, 10, 22, 12, 26, 14, 18, 16, 34, 18, 38, 20, 24, 22, 46, 24, 30, 26, 30, 28, 58, 30, 62, 32, 36, 34, 40, 36, 74, 38, 42, 40, 82, 42, 86, 44, 48, 46, 94, 48, 56, 50, 54, 52, 106, 54, 60, 56, 60, 58, 118, 60, 122, 62, 66, 64, 70, 66, 134, 68, 72, 70 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

MATHEMATICA

a = {2}; Do[ i = n; While[ Min[ GCD[ a[ [ -1 ] ], i ], GCD[ n, i ] ] == 1, i++ ]; AppendTo[ a, i ], {n, 2, 60} ]; a [ From Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Aug 04 2008 ]

CROSSREFS

Sequence in context: A071059 A061108 A053213 * A204904 A109043 A054585

Adjacent sequences:  A140521 A140522 A140523 * A140525 A140526 A140527

KEYWORD

nonn

AUTHOR

Leroy Quet Jul 02 2008

EXTENSIONS

More terms from Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Aug 04 2008

a(61)-a(70) from Ray Chandler (rayjchandler(AT)sbcglobal.net), Jun 25 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 22:48 EST 2012. Contains 206085 sequences.