cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A135232 Sum of the products of the first n prime pairs.

Original entry on oeis.org

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

Views

Author

Cino Hilliard, Feb 14 2008

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.
		

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