Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A133391
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A133391 Sum of the squares of primes < 10^n. +0
1
0, 87, 65796, 49345379, 37546387960, 29822760083883, 24693298341834533, 21113978675102768574, 18433608754948081174274, 16352255694497179054764665, 14692485666215945973239505690 (list; graph; listen)
OFFSET

1,2

COMMENT

All primes != 3 squared are of the form 3h+1 for some h. This follows from the fact that all primes != 3 are of the form 3j+1 or 3k+2 and squaring either of these leaves a number of the form 3h+1. So for primes < 10^n, squaring and summing gives a number equivelant to 9 + (3h+1)*(Pi(10^n)-1) = 9+3h*Pi(10^n)-3h + Pi(10^n)-1.

This implies that the sum of the squares of primes < 10^n mod 3 = Pi(10^n)-1 mod 3. While not foolproof, this is a way of checking the accuracy of the arithmetic performed by the generating program. For example Pi(10^13)-1 mod 3 = 0 and a(13) mod 3 = 0 would indicate the chances are good that the multiprecision routine performed as expected.

LINKS

Cino Hilliard (hillcino368(AT)hotmail.com), Nov 23 2007, Table of n, a(n) for n = 1..14

Cino Hilliard, Gmp Demo Sum Primes Squared.

EXAMPLE

For n=1 the sum of the squares of the primes less than 10 is 2^2+3^2+5^2+7^2 = 87, the second entry in the sequence.

CROSSREFS

Sequence in context: A017803 A017750 A072692 this_sequence A033408 A109989 A147317

Adjacent sequences: A133388 A133389 A133390 this_sequence A133392 A133393 A133394

KEYWORD

nonn

AUTHOR

Cino Hilliard (hillcino368(AT)hotmail.com), Nov 23 2007

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 4 21:30 EST 2008. Contains 151309 sequences.


AT&T Labs Research