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.

A115018 Numbers k such that (k+1)*(k+2)^2 + 1 is prime.

This page as a plain text file.
%I A115018 #19 Oct 01 2024 15:22:44
%S A115018 0,1,3,4,6,11,12,19,22,24,26,27,31,32,33,34,38,41,43,46,47,48,49,53,
%T A115018 56,74,78,81,87,88,91,94,97,98,99,102,108,109,113,116,118,119,122,131,
%U A115018 133,136,138,146,147,159,168,171,179,188,189,192,193,199
%N A115018 Numbers k such that (k+1)*(k+2)^2 + 1 is prime.
%C A115018 One less than the entry in A154686 at the same index.
%e A115018 If k=34 then (k+1)*(k+2)^2 + 1 = 45361 (prime).
%t A115018 Select[Range[0, 200], PrimeQ[(# + 1)*(# + 2)^2 + 1] &] (* _Stefan Steinerberger_, Mar 02 2006 *)
%o A115018 (Magma) [ n: n in [0..500] | IsPrime((n+1)*(n+2)^2 + 1) ]; // _Vincenzo Librandi_, Jan 31 2011
%o A115018 (PARI) is(n)=isprime((n+1)*(n+2)^2+1) \\ _Charles R Greathouse IV_, Jun 13 2017
%Y A115018 Cf. A154686.
%K A115018 nonn,easy
%O A115018 1,3
%A A115018 _Parthasarathy Nambi_, Feb 23 2006
%E A115018 More terms from _Stefan Steinerberger_, Mar 02 2006