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.
%I A248031 #45 Jan 16 2021 01:29:16 %S A248031 3,15,6,0,30594,246819,0,4033590,2298429,0,19209840,13542816,0, %T A248031 3979836,75524874,0,143635866,220808901,0,14557221,185958081,0, %U A248031 180438825,320588085,0,499478574,29105421,0,37340766,1169275746,0,2051928486,27069021,0,971311320 %N A248031 Least number k such that k^n +- k +- 1 is prime for all four possibilities, or 0 if no such k exists. %C A248031 a(19) > 155*10^6. %C A248031 For n == 2 (mod 3), k^n + k + 1 is divisible by k^2 + k + 1. Thus, for n > 2, if n == 2 (mod 3), a(n) = 0. %o A248031 (PARI) %o A248031 a(n)=if(n>2&&n==Mod(2,3),return(0));k=1;while(!ispseudoprime(k^n+k+1)||!ispseudoprime(k^n+k-1)||!ispseudoprime(k^n-k+1)||!ispseudoprime(k^n-k-1),k++);k %o A248031 n=2;while(n<100,print1(a(n),", ");n++) %Y A248031 Cf. A236056, A236764, A236766. %K A248031 nonn %O A248031 2,1 %A A248031 _Derek Orr_, Oct 03 2014 %E A248031 a(19)-a(27) from _Jon E. Schoenfield_, Oct 19 2014 %E A248031 a(28)-a(36) from _Jon E. Schoenfield_, Oct 22 2014