OFFSET
1,1
COMMENTS
It is easy to see that all terms > 83 are divisible by 3.
Likewise all terms except 38 are congruent to 3 (mod 8). - Franklin T. Adams-Watters, Jun 17 2015
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(1)=38 because 2^2 + 3^2 + 5^2 = 38.
MATHEMATICA
a = 2; Table[Prime[n]^a + Prime[n + 1]^a + Prime[n + 2]^a, {n, 1, 100}]
Total/@Partition[Prime[Range[50]]^2, 3, 1] (* Vincenzo Librandi, Jun 18 2015 *)
PROG
(PARI) for( n= 1, 100, k= sum(i=n, n+2, prime(i)^2) ; print1(k, ", ")) \\ K. D. Bajpai, Jun 17 2015
(Magma) [&+[ NthPrime(n+i)^2 : i in [0..2]] : n in [1..20]]; // K. D. Bajpai, Jun 17 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, Sep 14 2007
EXTENSIONS
a(38)-a(41) from K. D. Bajpai, Jun 18 2015
STATUS
approved