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!)
A175028 a(n)=n+1 if n is prime, otherwise a(n)=n-1. 2
0, 3, 4, 3, 6, 5, 8, 7, 8, 9, 12, 11, 14, 13, 14, 15, 18, 17, 20, 19, 20, 21, 24, 23, 24, 25, 26, 27, 30, 29, 32, 31, 32, 33, 34, 35, 38, 37, 38, 39, 42, 41, 44, 43, 44, 45, 48, 47, 48, 49, 50, 51, 54, 53, 54, 55, 56, 57, 60, 59, 62, 61, 62, 63, 64, 65, 68, 67, 68, 69, 72, 71, 74 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
Table[If[PrimeQ[n], n+1, n-1], {n, 1, 200}]
CROSSREFS
Sequence in context: A097857 A176058 A110738 * A248006 A197699 A005092
KEYWORD
nonn
AUTHOR
Zak Seidov, Nov 04 2009
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 June 3 12:21 EDT 2024. Contains 373060 sequences. (Running on oeis4.)