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.

A119662 Primes of the form k! + k^2 + 1.

This page as a plain text file.
%I A119662 #23 Sep 08 2022 08:45:25
%S A119662 2,3,7,41,757
%N A119662 Primes of the form k! + k^2 + 1.
%C A119662 Primes of the form A004664(k) + 1.
%C A119662 For k! + k^2 + 1 to be prime, k > 1, it is necessary but not sufficient for k to be even.
%C A119662 No more terms for k < 1150. [_Vincenzo Librandi_, Dec 22 2010]
%F A119662 A000040 INTERSECTION A227546 = primes INTERSECTION {k! + k^2 + 1}.
%t A119662 lst={}; Do[s=n!+n^2;If[PrimeQ[p=s+1], AppendTo[lst, p]], {n, 0, 5!}];lst (* _Vladimir Joseph Stephan Orlovsky_, Sep 27 2008 *)
%o A119662 (Magma) [ a: n in [0..1150] | IsPrime(a) where a is Factorial(n)+n^2+1 ]; // _Vincenzo Librandi_, Dec 22 2010
%Y A119662 Cf. A000040, A004664, A119448.
%K A119662 nonn
%O A119662 1,1
%A A119662 _Jonathan Vos Post_, Jul 28 2006