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.

A098463 Numbers k such that A055869(k) = (k+1)^k - k^k is prime.

This page as a plain text file.
%I A098463 #18 Oct 14 2023 23:31:27
%S A098463 2,3,5,7,167
%N A098463 Numbers k such that A055869(k) = (k+1)^k - k^k is prime.
%C A098463 The next term is > 5000.
%e A098463 a(2) = 3 because (3+1)^3 - 3^3 = 4^3 - 3^3 = 64 - 27 = 37 is prime.
%t A098463 Select[Range[300], PrimeQ[(#+1)^#-#^#]&] (* _Vladimir Joseph Stephan Orlovsky_, Mar 03 2011 *)
%o A098463 (Magma) [n: n in [0..190]| IsPrime((n+1)^n -n^n)]; // _Vincenzo Librandi_, Jun 22 2014
%o A098463 (PARI) isok(k) = ispseudoprime((k+1)^k - k^k); \\ _Jinyuan Wang_, Mar 19 2020
%Y A098463 Cf. A055869 ((n+1)^n-n^n), A085682 (k^k-(k-1)^k is prime).
%K A098463 nonn,hard,more
%O A098463 1,1
%A A098463 _Hugo Pfoertner_, Sep 14 2004