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!)
A139712 a(1)=1. For n >=2, a(n) = largest positive integer < a(n-1) that is not coprime to n, if such an integer exists. Otherwise, a(n) = smallest integer > a(n-1) that is not coprime to n. 2
1, 2, 3, 2, 5, 4, 7, 6, 3, 2, 11, 10, 13, 12, 10, 8, 17, 16, 19, 18, 15, 14, 23, 22, 20, 18, 15, 14, 29, 28, 31, 30, 27, 26, 25, 24, 37, 36, 33, 32, 41, 40, 43, 42, 40, 38, 47, 46, 42, 40, 39, 38, 53, 52, 50, 49, 48, 46, 59, 58, 61, 60, 57, 56, 55, 54, 67, 66, 63, 62, 71, 70, 73 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
CROSSREFS
Cf. A139713.
Sequence in context: A342694 A212831 A072969 * A175856 A075365 A268466
KEYWORD
nonn
AUTHOR
Leroy Quet, Apr 30 2008
EXTENSIONS
More terms from Diana L. Mecum, Jul 22 2008
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 July 15 17:56 EDT 2024. Contains 374333 sequences. (Running on oeis4.)