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.

A133524 Sum of squares of four consecutive primes.

Original entry on oeis.org

87, 204, 364, 628, 940, 1348, 2020, 2692, 3700, 4852, 5860, 7108, 8548, 10348, 12220, 14500, 16732, 18580, 21100, 23500, 26380, 30460, 34420, 38140, 41668, 44140, 46708, 52228, 57940, 64828, 71380, 77452, 83092, 88972, 96220, 101908, 109036
Offset: 1

Views

Author

Artur Jasinski, Sep 14 2007

Keywords

Examples

			a(1)=87 because 2^2+3^2+5^2+7^2=87.
		

Crossrefs

Cf. A034963.

Programs

  • Mathematica
    a = 2; Table[Prime[n]^a + Prime[n + 1]^a + Prime[n + 2]^a + Prime[n + 3]^a, {n, 1, 100}]
    Total/@Partition[Prime[Range[40]]^2,4,1] (* Harvey P. Dale, Dec 09 2018 *)
  • PARI
    a(n)=sum(i=n, n+3, prime(i)^2) \\ Charles R Greathouse IV, Apr 29 2015

Formula

a(n) = A133529(n) + A001248(n+3). - Michel Marcus, Nov 08 2013
a(n) ~ 4n^2 log^2 n. - Charles R Greathouse IV, Apr 29 2015