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.

A127599 Least number x such that x^n-x-1 is prime.

This page as a plain text file.
%I A127599 #10 Jan 10 2017 11:31:04
%S A127599 3,2,2,2,2,8,6,2,2,8,2,4,2,6,4,12,4,9,2,3,2,31,2,11,16,9,4,2,10,3,27,
%T A127599 4,12,36,25,3,16,24,34,3,91,85,12,105,6,8,72,6,7,25,98,3,66,103,22,32,
%U A127599 55,4,42,6,25,20,12,4,14,303,14,115,69,46,13,3,45,4,5,68,31,31,9,8,5,4,16
%N A127599 Least number x such that x^n-x-1 is prime.
%H A127599 Harvey P. Dale, <a href="/A127599/b127599.txt">Table of n, a(n) for n = 2..500</a>
%t A127599 a = {}; Do[k = 2; While[ ! PrimeQ[k^n - k - 1], k++ ]; AppendTo[a, k], {n, 2, 100}]; a (* _Artur Jasinski_ *)
%t A127599 lnx[n_]:=Module[{x=1},While[!PrimeQ[x^n-x-1],x++];x]; Array[lnx,90,2] (* _Harvey P. Dale_, Jan 10 2017 *)
%o A127599 (PARI) a(n)=k=1;while(!isprime(k^n-k-1),k++);k
%o A127599 vector(100,n,a(n+1)) \\ _Derek Orr_, Nov 26 2014
%Y A127599 Cf. A126439.
%K A127599 nonn
%O A127599 2,1
%A A127599 _Artur Jasinski_, Jan 19 2007