[go: up one dir, main page]

login
A141088
a(n) = prime(2^n) - 2*n.
0
1, 3, 13, 45, 121, 299, 705, 1603, 3653, 8141, 17841, 38849, 83991, 180475, 386063, 821609, 1742503, 3681095, 7754039, 16290007, 34135987, 71378525, 148948093, 310248193, 645155147, 1339484145, 2777105075, 5750078991, 11891268343, 24563311249, 50685770105
OFFSET
1,2
FORMULA
a(n) = A033844(n) - A005843(n).
EXAMPLE
a(1) = prime(2^1) - 2*1 = prime(2) - 2 = 3 - 2 = 1;
a(4) = prime(2^4) - 2*4 = prime(16) - 8 = 53 - 8 = 45.
MAPLE
seq(ithprime(2^n)-2*n, n=1..24); # Emeric Deutsch, Aug 27 2008
MATHEMATICA
Table[Prime[2^n]-2n, {n, 30}] (* Harvey P. Dale, Oct 11 2014 *)
PROG
(PARI) a(n) = prime(2^n) - 2*n; \\ Michel Marcus, Mar 25 2019
CROSSREFS
Sequence in context: A136520 A212416 A058934 * A187915 A115128 A140420
KEYWORD
nonn
AUTHOR
EXTENSIONS
Corrected and extended by Emeric Deutsch, Aug 27 2008
More terms from Harvey P. Dale, Oct 11 2014
STATUS
approved