OFFSET
1,1
COMMENTS
EXAMPLE
For n=3; a(3) = (prime(3)-1)^(prime(3)+1) + 1 = 4^6 + 1 = 4097.
MATHEMATICA
Table[(# - 1)^(# + 1) + 1 &[Prime@ n], {n, 11}] (* Michael De Vlieger, Dec 23 2016 *)
PROG
(Magma) [(NthPrime(n)-1)^(NthPrime(n)+1)+1: n in[1..50]]
(PARI) a(n) = (prime(n)-1)^(prime(n)+1)+1 \\ Felix Fröhlich, Dec 23 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Dec 23 2016
STATUS
approved