OFFSET
1,2
EXAMPLE
If n=1, then p=2 and a(1)=2*1^2 - 1 = 1.
If n=2, then p=3 and a(2)=3*2^3 - 1 = 23.
If n=3, then p=5 and a(3)=5*3^5 - 1 = 1214.
MAPLE
a:=n->ithprime(n)*n^ithprime(n)-1: seq(a(n), n=1..13); # Emeric Deutsch, Aug 01 2005
MATHEMATICA
Table[Prime[n]*n^Prime[n]-1, {n, 12}] (* Harvey P. Dale, Jul 18 2018 *)
PROG
(PARI) a(n) = my(p=prime(n)); p*(n^p) - 1; \\ Michel Marcus, Aug 16 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, Jan 03 2005
EXTENSIONS
More terms from Emeric Deutsch, Aug 01 2005
STATUS
approved