cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A154111 Numbers n such that (n+1)^2 - n^3 is a (positive or negative) prime.

This page as a plain text file.
%I A154111 #23 Oct 28 2024 18:49:33
%S A154111 1,3,5,6,8,11,12,15,18,20,27,33,35,39,41,45,48,50,54,65,66,68,86,87,
%T A154111 92,96,99,107,116,122,123,126,138,140,149,150,156,159,161,164,165,167,
%U A154111 170,177,182,185,188,191,192,198,200,207,209,219,228,237,239,240,242,252
%N A154111 Numbers n such that (n+1)^2 - n^3 is a (positive or negative) prime.
%H A154111 G. C. Greubel, <a href="/A154111/b154111.txt">Table of n, a(n) for n = 1..2000</a>
%t A154111 Select[Range[300],PrimeQ[(#+1)^2-#^3]&] (* _Harvey P. Dale_, Dec 06 2015 *)
%o A154111 (Magma) [n: n in [0..500] | IsPrime((n+1)^2-n^3)]; // _Vincenzo Librandi_, Nov 26 2010
%o A154111 (PARI) is(n)=isprime(abs((n+1)^2 - n^3)) \\ _Charles R Greathouse IV_, Sep 02 2016
%Y A154111 Cf. A140719, A005097.
%K A154111 nonn,easy
%O A154111 1,2
%A A154111 _Vladimir Joseph Stephan Orlovsky_, Jan 04 2009