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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A080665 Squares that are the sum of 3 consecutive primes. 2
49, 121, 841, 961, 1849, 22801, 24649, 36481, 43681, 47089, 48841, 69169, 96721, 128881, 134689, 165649, 243049, 284089, 316969, 319225, 405769, 609961, 664225, 677329, 707281, 737881, 776161, 863041, 919681, 994009, 1026169, 1038361 (list; graph; refs; listen; history; internal format)
OFFSET

2,1

COMMENTS

Sum of reciprocals converges to 0.0317...

EXAMPLE

13+17+19 = 49

MATHEMATICA

PrevPrim[n_] := Block[{k = n - 1}, While[ !PrimeQ[k], k-- ]; k]; NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; f[n_] := Block[{m = Floor[n/3], t = 1}, If[PrimeQ[m], s = PrevPrim[m] + m + NextPrim[m], s = PrevPrim[ PrevPrim[m]] + PrevPrim[m] + NextPrim[m]; t = PrevPrim[m] + NextPrim[m] + NextPrim[ NextPrim[m]]]; If[s == n || t == n, True, False]]; Select[ Range[1020], f[ #^2] &]^2

PROG

(PARI) sump1p2p3sq(n)= {sr=0; forprime(x=2, n, y=x+nextprime(x+1)+nextprime(nextprime(x+1)+1); if(issquare(y), print1(y" "); sr+=1.0/y; ) ); print(); print(sr) }

CROSSREFS

Cf. A062703.

Sequence in context: A084733 A115557 A167718 * A130007 A202331 A044300

Adjacent sequences:  A080662 A080663 A080664 * A080666 A080667 A080668

KEYWORD

nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Mar 02 2003

EXTENSIONS

Edited and extended by Robert G. Wilson v (rgwv(AT)rgwv.com), Mar 02 2003

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 13 08:12 EST 2012. Contains 205451 sequences.