OFFSET
1,1
COMMENTS
Sum of reciprocals = 0.3721161884983118696170302604..
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..77
FORMULA
a(n) = A051674(n) - 1. - R. J. Mathar, Jul 15 2007
EXAMPLE
a(1) = 3 because the first prime is 2 and 2^2 - 1 = 3.
a(2) = 26 because the second prime is 3 and 3^3 - 1 = 26.
a(3) = 3124 because the fifth prime is 5 and 5^5 - 1 = 3124.
MATHEMATICA
Table[Prime[n]^Prime[n] - 1, {n, 10}] (* Alonso del Arte, May 22 2013 *)
#^#-1&/@Prime[Range[10]] (* Harvey P. Dale, Jun 10 2013 *)
PROG
(PARI) a(n)={my(p=prime(n)); p^p-1; } \\ Joerg Arndt, May 27 2013
(Magma) [p^p-1: p in PrimesUpTo(20)]; // Vincenzo Librandi, Mar 27 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, Nov 23 2003
EXTENSIONS
More terms from Ray Chandler, Feb 21 2004
STATUS
approved