OFFSET
1,1
COMMENTS
All terms are even. - Michel Marcus, Apr 02 2017
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
A. Frank & P. Jacqueroux, International Contest, 2001. Item 21
FORMULA
a(n) = A286624(n) - 1. - Antti Karttunen, Jul 06 2017
EXAMPLE
a(1) = 2*(3+1) = 8, a(2) = 3*(5+1) = 18, a(3) = 5*(7+1) = 40, ...
MATHEMATICA
a[n_]:=Prime[n](Prime[n+1]+1); Array[a, 80] (* Giovanni Resta, Apr 02 2017 *)
#[[1]](#[[2]]+1)&/@Partition[Prime[Range[50]], 2, 1] (* Harvey P. Dale, Jan 06 2019 *)
PROG
(PARI) for(n=1, 100, print1(prime(n)*(prime(n+1)+1), ", "))
(Python)
from sympy import prime
def a(n): return prime(n) * (prime(n + 1) + 1) # Indranil Ghosh, Apr 02 2017
(Magma) [NthPrime(n)*(NthPrime(n+1) +1): n in [1..40]]; // G. C. Greubel, Aug 04 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Herman Jamke (hermanjamke(AT)fastmail.fm), Sep 30 2006
STATUS
approved