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
(SageMath) [1]+[nth_prime(n) +n for n in (2..60)] # G. C. Greubel, Jul 01 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Apr 22 2010
EXTENSIONS
Entries checked by R. J. Mathar, Apr 27 2010
STATUS
approved
