OFFSET
0,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..21
FORMULA
a(n) = A024450(3^n). - Amiram Eldar, Jul 06 2024
EXAMPLE
The sum of the squares of the first 3^1 primes is 4 + 9 + 25 = 38, the second term of this sequence.
MATHEMATICA
nn=15; With[{prsq=Prime[Range[3^nn]]^2}, Table[Total[Take[prsq, 3^n]], {n, 0, nn}]] (* Harvey P. Dale, Mar 08 2014 *)
PROG
(PARI) sumprimesq(n, b) = { local(x, y, s, a); for(y=0, n, s=0; for(x=1, b^y, s+=prime(x)^2; ); print1(s", "); ) }
(PARI) lista(pmax) = {my(sm = 0, c = 0, pow = 1); forprime(p = 1, pmax, sm += p^2; c++; if(c == pow, print1(sm, ", "); pow *= 3)); } \\ Amiram Eldar, Jul 06 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, Aug 30 2007
EXTENSIONS
More terms from Harvey P. Dale, Mar 08 2014
STATUS
approved