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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A111503 Numbers n such that n^3 - n^2 -1 and n^3 - n^2 +1 are twin primes. 3
2, 3, 6, 13, 21, 33, 48, 58, 90, 96, 99, 100, 111, 118, 120, 121, 133, 138, 195, 204, 279, 334, 348, 366, 393, 400, 465, 525, 541, 565, 594, 721, 736, 789, 855, 859, 925, 946, 1044, 1099, 1239, 1279, 1323, 1410, 1459, 1470, 1513, 1521, 1524, 1629, 1630, 1638 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

EXAMPLE

2^3-2^2-1=3

2^3-2^2+1=5, 3 and 5 twin primes so n(1)=2

MATHEMATICA

lst={}; Do[If[PrimeQ[n^3-n^2-1]&&PrimeQ[n^3-n^2+1], AppendTo[lst, n]], {n, 10^3}]; lst [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Aug 08 2008]

PROG

(MAGMA) [n: n in [0..100000] |IsPrime(n^3-n^2-1) and IsPrime(n^3-n^2+1)] [From Vincenzo Librandi (vincenzo.librandi(AT)tin.it), Nov 13 2010]

CROSSREFS

Sequence in context: A144771 A054049 A175281 * A075530 A032061 A155996

Adjacent sequences:  A111500 A111501 A111502 * A111504 A111505 A111506

KEYWORD

nonn

AUTHOR

Pierre CAMI (pierre-cami(AT)bbox.fr), Nov 16 2005

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 17 16:49 EST 2012. Contains 206058 sequences.