login
A100768
a(n) = p * (n^p) - 1 where p = prime(n).
0
1, 23, 1214, 114687, 537109374, 169789022207, 3954718737782518, 2738188573441261567, 203847576752007525206366, 2899999999999999999999999999999, 5950246173690264895628552080046140
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
Sequence in context: A321569 A061063 A372207 * A353143 A201309 A049003
KEYWORD
nonn,easy
AUTHOR
Parthasarathy Nambi, Jan 03 2005
EXTENSIONS
More terms from Emeric Deutsch, Aug 01 2005
STATUS
approved