Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A138264
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A138264 Balanced prime numbers n such that n*(n-1)+1 is a balanced prime. +0
2
150571, 998353, 1719517, 3942889, 4476187, 5290699, 5651869, 6041701, 6089521, 6553117 (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*5, 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: A029566 A051651 A065324 this_sequence A086691 A112625 A118498

Adjacent sequences: A138261 A138262 A138263 this_sequence A138265 A138266 A138267

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