Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A161864
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A161864 Numbers n such that n^2+n+5 and n^2+n-5 are both prime. +0
2
3, 6, 11, 18, 21, 23, 27, 32, 42, 48, 51, 83, 86, 93, 116, 153, 158, 182, 188, 216, 282, 291, 317, 333, 396, 482, 681, 737, 786, 798, 818, 821, 872, 923, 956, 966, 977, 986, 1007, 1026, 1077, 1082, 1106, 1161, 1287, 1292, 1302, 1337, 1341, 1451, 1467, 1563 (list; graph; listen)
OFFSET

1,1

EXAMPLE

a(1)=3 as 12+-5 are primes. a(2)=6 as 42+-5 are primes.

MATHEMATICA

q=5; lst5={}; Do[p=n^2+n; If[PrimeQ[p-q]&&PrimeQ[p+q], AppendTo[lst5, n]], {n, 0, 7!}]; lst5

CROSSREFS

Cf. A088485, A161863

Sequence in context: A109471 A124454 A013932 this_sequence A010335 A084576 A024667

Adjacent sequences: A161861 A161862 A161863 this_sequence A161865 A161866 A161867

KEYWORD

nonn,easy

AUTHOR

Vladimir Orlovsky (4vladimir(AT)gmail.com), Jun 20 2009

EXTENSIONS

Definition rephrased by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jun 23 2009

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 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research