The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A176628 a(n) = prime(n) - n*(-1)^prime(n). 1
 1, 5, 8, 11, 16, 19, 24, 27, 32, 39, 42, 49, 54, 57, 62, 69, 76, 79, 86, 91, 94, 101, 106, 113, 122, 127, 130, 135, 138, 143, 158, 163, 170, 173, 184, 187, 194, 201, 206, 213, 220, 223, 234, 237, 242, 245, 258, 271, 276, 279, 284, 291, 294, 305, 312, 319, 326 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS Unit together with n-th odd prime + n + 1. LINKS Harvey P. Dale, Table of n, a(n) for n = 1..1000 FORMULA a(n+1) = A014688(n+1). EXAMPLE a(1) = prime(1) - 1*(-1)^prime(1) = 2-1 = 1. MATHEMATICA np[n_]:=Module[{npr=Prime[n]}, npr-n (-1)^npr]; Array[np, 60] (* Harvey P. Dale, Oct 08 2011 *) CROSSREFS Sequence in context: A118520 A001954 A006620 * A314390 A314391 A325598 Adjacent sequences:  A176625 A176626 A176627 * A176629 A176630 A176631 KEYWORD nonn AUTHOR Juri-Stepan Gerasimov, Apr 22 2010 EXTENSIONS Entries checked by R. J. Mathar, Apr 27 2010 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified April 14 04:20 EDT 2021. Contains 342941 sequences. (Running on oeis4.)