Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A138267
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A138267 Balanced prime numbers n such that n*(n+1)+1 is a balanced prime. +0
1
173, 68099, 76487, 96377, 336593, 488909, 1388381, 2625929 (list; graph; listen)
OFFSET

1,1

MATHEMATICA

NextPrime[n_Int]:=Module[{k}, k=n+1; While[ !PrimeQ[k], k++ ]; k]; PrevPrime[n_Int]:=Module[{k}, k=n-1; While[ !PrimeQ[k], k-- ]; k]; s=""; For[i=2, i< 10^5*2, p=Prime[i]; If[(Prime[i-1]+Prime[i+1])/2==p, r=p*(p+1)+1; a=PrevPrime[r]; b=NextPrime[r]; If[PrimeQ[r]&&r==(a+b)/2, (*Print[p, ":", a, ", ", b, "; ", r]*)s=s<>ToString[p]<>", "]]; i++ ]; Print[s]

CROSSREFS

Cf. A006562.

Sequence in context: A059243 A142134 A142849 this_sequence A096709 A160660 A025390

Adjacent sequences: A138264 A138265 A138266 this_sequence A138268 A138269 A138270

KEYWORD

nonn

AUTHOR

Vladimir Orlovsky (4vladimir(AT)gmail.com), May 05 2008

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 November 30 13:13 EST 2009. Contains 167758 sequences.


AT&T Labs Research