Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A080665
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A080665 Squares that are the sum of 3 consecutive primes. +0
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; listen)
OFFSET

2,1

COMMENT

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

PROGRAM

(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: A090095 A084733 A115557 this_sequence A130007 A044300 A044681

Adjacent sequences: A080662 A080663 A080664 this_sequence 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

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 September 5 19:27 EDT 2008. Contains 143485 sequences.


AT&T Labs Research