OFFSET
1,1
LINKS
Michel Marcus, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1) = prime(1)*(prime(3) - prime(2)) = 2*(5-3) = 4.
a(2) = prime(2)*(prime(4) - prime(3)) = 3*(7-5) = 6.
a(3) = prime(3)*(prime(5) - prime(4)) = 5*(11-7) = 20.
MAPLE
A205955:=n->ithprime(n)*(ithprime(n+2)-ithprime(n+1)): seq(A205955(n), n=1..100); # Wesley Ivan Hurt, May 02 2017
MATHEMATICA
#1 (#3 - #2) & @@ # & /@ Partition[Prime@ Range@ 54, 3, 1] (* Michael De Vlieger, May 03 2017 *)
PROG
(PARI) a(n) = prime(n) * (prime(n+2) - prime(n+1)) \\ Michel Marcus, Aug 06 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Umut Uludag, Feb 02 2012
STATUS
approved