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.

A126249 p*(p+1)*(p+2)/6 where (p,p+2) are twin primes.

Original entry on oeis.org

10, 35, 286, 969, 4495, 12341, 35990, 62196, 176851, 209934, 437989, 562475, 971970, 1179616, 1293699, 1975354, 2303960, 3280455, 3737581, 5061836, 7023974, 12347930, 13436856, 16435111, 23706021, 30865405, 35999900, 39338069
Offset: 1

Views

Author

Lekraj Beedassy, Dec 21 2006

Keywords

Crossrefs

Cf. A126248.

Programs

  • Maple
    ZL:=[]:for p from 1 to 617 do if (isprime(p) and isprime(p+2) ) then ZL:=[op(ZL),(binomial((p+2),p-1))]; fi; od; print(ZL); # Zerinvary Lajos, Mar 08 2007
  • Mathematica
    Times@@# Mean[#]/6&/@Select[Partition[Prime[Range[250]],2,1],#[[2]]- #[[1]] == 2&] (* Harvey P. Dale, Sep 20 2014 *)

Formula

a(n) = A001359(n)*A014574(n)*A006512(n)/6;
a(n) = A037074(n)*A014574(n)/6;
a(n) = A007531(A006512(n))/6.
a(n) = A037074(n)*A002822(n-1), for n > 1.
a(n) = A126248(n)/6.