OFFSET
1,1
COMMENTS
Note that 4 is 2^prime(1).
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..460
FORMULA
From Wesley Ivan Hurt, Mar 27 2015: (Start)
a(n) = A137389(n)/4.
MAPLE
A137781:=n->(2^ithprime(n)+2^ithprime(n+1))/4: seq(A137781(n), n=1..20); # Wesley Ivan Hurt, Mar 27 2015
MATHEMATICA
Table[(2^Prime[n] + 2^Prime[n + 1])/4, {n, 20}] (* Wesley Ivan Hurt, Mar 27 2015 *)
(2^#[[1]]+2^#[[2]])/4&/@Partition[Prime[Range[20]], 2, 1] (* Harvey P. Dale, Dec 21 2019 *)
PROG
(Magma) [(2^NthPrime(n) + 2^NthPrime(n+1)) / 4: n in [1..20]]; // Vincenzo Librandi, Mar 28 2015
(PARI) vector(15, n, (2^prime(n)+2^prime(n+1))/4) \\ Derek Orr, Mar 29 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alexander R. Povolotsky, Apr 28 2008
STATUS
approved