The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A137475 Positive numbers k such that k^3 - (k+1)^2 and k^3 + (k+1)^2 are both primes. 2
3, 8, 15, 35, 39, 45, 50, 65, 92, 99, 122, 140, 164, 167, 170, 198, 237, 284, 287, 297, 339, 354, 408, 435, 515, 522, 552, 582, 594, 650, 668, 708, 725, 737, 753, 830, 1010, 1068, 1098, 1128, 1253, 1295, 1373, 1424, 1502, 1548, 1553, 1599, 1704, 1779, 1817 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
3^3 +- 4^2 -> (11, 43) (both primes);
167^3 +- 168^2 = 4657463 +- 28224 -> (4629239, 4685687) (both primes).
MATHEMATICA
Select[Range[900], PrimeQ[ #^3-(#+1)^2]&&PrimeQ[ #^3+(#+1)^2]&]
bpQ[n_]:=Module[{a=(n+1)^2}, AllTrue[n^3+{a, -a}, PrimeQ]]; Select[Range[ 2, 2000], bpQ] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Oct 17 2019 *)
PROG
(Magma) [n: n in [2..500] | IsPrime(n^3-(n+1)^2)and IsPrime(n^3 +(n+1)^2)] // Vincenzo Librandi, Nov 24 2010
CROSSREFS
Sequence in context: A255835 A032234 A032255 * A176433 A132810 A032159
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Vincenzo Librandi, Mar 26 2010
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 17 19:53 EDT 2024. Contains 372607 sequences. (Running on oeis4.)