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!)
A154111 Numbers n such that (n+1)^2 - n^3 is a (positive or negative) prime. 4
1, 3, 5, 6, 8, 11, 12, 15, 18, 20, 27, 33, 35, 39, 41, 45, 48, 50, 54, 65, 66, 68, 86, 87, 92, 96, 99, 107, 116, 122, 123, 126, 138, 140, 149, 150, 156, 159, 161, 164, 165, 167, 170, 177, 182, 185, 188, 191, 192, 198, 200, 207, 209, 219, 228, 237, 239, 240, 242, 252 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
Select[Range[300], PrimeQ[(#+1)^2-#^3]&] (* Harvey P. Dale, Dec 06 2015 *)
PROG
(Magma) [n: n in [0..500] | IsPrime((n+1)^2-n^3)] # Vincenzo Librandi, Nov 26 2010
(PARI) is(n)=isprime(abs((n+1)^2 - n^3)) \\ Charles R Greathouse IV, Sep 02 2016
CROSSREFS
Sequence in context: A301744 A087720 A309544 * A047444 A279933 A327206
KEYWORD
nonn,easy
AUTHOR
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 August 25 14:58 EDT 2024. Contains 375439 sequences. (Running on oeis4.)