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

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 56th year, we are closing in on 350,000 sequences, and we’ve crossed 9,700 citations (which often say “discovered thanks to the OEIS”).

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

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 *)

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

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 3 15:06 EST 2021. Contains 349463 sequences. (Running on oeis4.)