OFFSET
1,1
LINKS
Iain Fox, Table of n, a(n) for n = 1..467
EXAMPLE
p=2, 2^(2-1) + (2^2 - 1) = 5;
p=3, 2^(3-1) + (2^3 - 1) = 11.
MATHEMATICA
Table[3*2^(Prime[n] - 1) - 1, {n, 18}] (* Robert G. Wilson v, Sep 24 2004 *)
PROG
(PARI) a(n) = 3*2^(prime(n) - 1) - 1; \\ Michel Marcus, Nov 30 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Parthasarathy Nambi, Sep 21 2004
EXTENSIONS
Edited and extended by Robert G. Wilson v, Sep 24 2004
STATUS
approved