login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

a(n) = sum of squares of first n odd primes.
6

%I #7 Sep 24 2024 02:10:59

%S 9,34,83,204,373,662,1023,1552,2393,3354,4723,6404,8253,10462,13271,

%T 16752,20473,24962,30003,35332,41573,48462,56383,65792,75993,86602,

%U 98051,109932,122701,138830,155991,174760,194081,216282,239083,263732

%N a(n) = sum of squares of first n odd primes.

%F a(n) = A024450(n+1)-4. - _Jason Yuen_, Sep 23 2024

%e a(3)=83 because 3^2+5^2+7^2=83.

%t c = 2; a = {}; b = 0; Do[b = b + Prime[n]^c; AppendTo[a, b], {n, 2, 1000}]; a

%Y Cf. A007148, A007504, A024450.

%K nonn,easy

%O 1,1

%A _Artur Jasinski_, Sep 16 2007