A135232 Sum of the products of the first n prime pairs.
6, 41, 184, 507, 1174, 2321, 4084, 6575, 10174, 14931, 20698, 28085, 37882, 48903, 61220, 77857, 96900, 119399, 144990, 173881, 206280, 243143, 282346, 329399, 381382, 437069, 497560, 565151, 638050, 715887, 798806, 894283, 993504, 1105051
Offset: 1
Keywords
Examples
The sum of the products of the first 3 prime pairs is 2*3+5*7+11*13 = 184, the 3rd entry in the sequence.
Links
- G. C. Greubel, Table of n, a(n) for n = 1..1000
Crossrefs
Cf. A089581.
Programs
-
Mathematica
Table[Sum[Prime[2*k - 1]*Prime[2*k], {k, 1, n}], {n, 1, 50}] (* G. C. Greubel, Oct 04 2016 *)
-
PARI
g(n)=s=0;forstep(x=1,n*2,2,s+=prime(x)*prime(x+1);print1(s,","))
Formula
a(n) = Sum_{i=1..n} A089581(i). - R. J. Mathar, Feb 19 2008