OFFSET
1,3
COMMENTS
2*a(n) < a(n+1) because 2*prime(n) > prime(n+1) (see A062234). We have a(n) - a(1) < a(n+1) - a(n) so this is a B_2 sequence. - Thomas Ordowski, Sep 23 2014
FORMULA
a(n) = 2^n - prime(n).
MAPLE
MATHEMATICA
Table[2^n - Prime[n], {n, 25}]
PROG
(PARI) vector(50, n, 2^n - prime(n)) \\ Michel Marcus, Sep 23 2014
(Magma) [2^n-NthPrime(n) : n in [1..30]]; // Wesley Ivan Hurt, Sep 23 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Oct 25 2005
EXTENSIONS
More terms from Michel Marcus, Sep 23 2014
STATUS
approved