A135483 a(n) = Sum_{j=1..n} prime(j)*2^(j-2).
1, 4, 14, 42, 130, 338, 882, 2098, 5042, 12466, 28338, 66226, 150194, 326322, 711346, 1579698, 3513010, 7510706, 16292530, 34904754, 73177778, 156015282, 330078898, 703371954, 1517066930, 3211565746, 6667672242, 13848320690, 28478053042, 58811259570
Offset: 1
Links
- G. C. Greubel, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
Table[Sum[2^(i-2) * Prime[i], {i, 1, n}], {n, 1, 10}] (* G. C. Greubel, Oct 15 2016 *) Accumulate[Table[Prime[i]*2^(i-2),{i,30}]] (* Harvey P. Dale, Aug 14 2019 *)
-
PARI
a(n) = sum(k=1, n, prime(k)*2^(k-2)); \\ Michel Marcus, Oct 15 2016