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!)
A176628 a(n) = prime(n) - n*(-1)^prime(n). 2
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
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 *)
PROG
(Magma) [1]cat[NthPrime(n) +n: n in [2..60]]; // G. C. Greubel, Jul 01 2021
(Sage) [1]+[nth_prime(n) +n for n in (2..60)] # G. C. Greubel, Jul 01 2021
CROSSREFS
Sequence in context: A118520 A001954 A006620 * A314390 A314391 A325598
KEYWORD
nonn
AUTHOR
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 13:55 EDT 2024. Contains 371958 sequences. (Running on oeis4.)