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.

A162603 Primes of the form k^k - k! + 1.

This page as a plain text file.
%I A162603 #9 Jun 04 2025 13:50:43
%S A162603 3,233,9996371201,11111919647266817
%N A162603 Primes of the form k^k - k! + 1.
%C A162603 The next term is too large to include.
%C A162603 The next term, a(5), has 527 digits and derives from n=224. - _Harvey P. Dale_, Jun 03 2014
%e A162603 2^2-2!+1 = 4-2+1 = 3, 4^4-4!+1 = 256-24+1 = 233, ...
%t A162603 f[n_]:=n^n-n!+1; lst={};Do[p=f[n];If[PrimeQ[p],AppendTo[lst,p]],{n,2*5!}];lst
%t A162603 Select[Table[n^n-n!+1,{n,30}],PrimeQ] (* _Harvey P. Dale_, Jun 03 2014 *)
%Y A162603 Primes of the form A036679(k)+1.
%K A162603 nonn
%O A162603 1,1
%A A162603 _Vladimir Joseph Stephan Orlovsky_, Jul 07 2009