OFFSET
1,2
EXAMPLE
For n = 3; prime(3) = 5, a(3) = 2^(5-1) - 1 = 15.
MATHEMATICA
Table[2^(Prime[n] - 1) - 1, {n, 20}]
PROG
(Magma)[2^(NthPrime(n)-1) - 1: n in [1..18]] // Jaroslav Krizek, Jan 02 2015
(PARI) a(n) = 2^(prime(n)-1) - 1; \\ Michel Marcus, Jan 13 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Parthasarathy Nambi, Sep 22 2004
EXTENSIONS
Edited and extended by Robert G. Wilson v, Sep 23 2004
Definition and example corrected by Jaroslav Krizek, Jan 02 2015
Name edited by Michel Marcus, Jan 13 2023
STATUS
approved