login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A131591 Sum of the squares of the first 3^n primes. 0
4, 38, 1556, 86606, 4083404, 171658094, 6716224724, 247782290006, 8763080657420, 299863491723614, 9990667099305740, 325847250824377382, 10445562407382412028, 330039152364735149222, 10301457052184951857604, 318211810358946705058382 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

Table of n, a(n) for n=0..15.

EXAMPLE

The sum of the squares of the first 3^1 primes = 4+9+25 = 38, the second entry in the 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", "); ) }

CROSSREFS

Sequence in context: A001187 A093377 A178017 * A030259 A218710 A286877

Adjacent sequences:  A131588 A131589 A131590 * A131592 A131593 A131594

KEYWORD

nonn

AUTHOR

Cino Hilliard, Aug 30 2007

EXTENSIONS

More terms from Harvey P. Dale, Mar 08 2014

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 19 18:49 EDT 2019. Contains 321330 sequences. (Running on oeis4.)