login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A137461
Positive numbers k such that k^3 + k - 1 and k^3 - k + 1 are both primes.
0
4, 7, 10, 15, 21, 25, 39, 52, 87, 120, 129, 139, 189, 202, 259, 286, 316, 376, 391, 466, 472, 486, 510, 532, 574, 631, 642, 684, 685, 739, 750, 769, 882, 972, 987, 991, 1029, 1074, 1092, 1201, 1212, 1231, 1320, 1326, 1456, 1506, 1522, 1524, 1539, 1575, 1632
OFFSET
1,1
EXAMPLE
7^3 +- 6 -> (337, 349) (both prime);
139^3 +- 138 -> (2685481, 2685757) (both prime).
MATHEMATICA
Select[Range[999], PrimeQ[ #^3-(#-1)]&&PrimeQ[ #^3+(#-1)]&]
PROG
(Magma) [n: n in [0..500] | IsPrime(n^3-(n-1))and IsPrime(n^3 +(n-1))] // Vincenzo Librandi, Nov 24 2010
CROSSREFS
Sequence in context: A310706 A095875 A071408 * A137379 A342761 A096676
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Vincenzo Librandi, Mar 26 2010
STATUS
approved