OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
a(n) ~ 4n^2 log^2 n. - Charles R Greathouse IV, Apr 29 2015
EXAMPLE
a(1)=87 because 2^2+3^2+5^2+7^2=87.
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 *)
PROG
(PARI) a(n)=sum(i=n, n+3, prime(i)^2) \\ Charles R Greathouse IV, Apr 29 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, Sep 14 2007
STATUS
approved