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.

A133157 Numbers k such that k^2 + k - 41 is prime.

This page as a plain text file.
%I A133157 #10 Jun 13 2017 10:19:06
%S A133157 8,15,20,21,26,29,36,45,48,59,68,69,75,78,98,99,108,111,113,120,129,
%T A133157 134,138,140,143,161,168,185,188,189,210,213,215,216,218,224,230,231,
%U A133157 234,251,255,260,266,273,278,279,281,290,294,299,306,308,314,320,329,356
%N A133157 Numbers k such that k^2 + k - 41 is prime.
%e A133157 If k=8, then k^2 + n - 41 = 31 (prime).
%e A133157 If k=99, then k^2 + n - 41 = 9859 (prime).
%p A133157 isA133157 := proc(n) isprime(n*(n+1)-41) ; end: for n from 1 to 400 do if isA133157(n) then printf("%d, ",n) ; fi ; od: # _R. J. Mathar_, Jan 08 2008
%t A133157 Select[Range[7, 400], PrimeQ[ #^2 + # - 41] &] (* _Stefan Steinerberger_, Dec 24 2007 *)
%o A133157 (PARI) is(n)=isprime(n^2+n-41) \\ _Charles R Greathouse IV_, Jun 13 2017
%Y A133157 Cf. A002837.
%K A133157 nonn,easy
%O A133157 1,1
%A A133157 _Parthasarathy Nambi_, Dec 17 2007
%E A133157 More terms from _Stefan Steinerberger_, Dec 24 2007
%E A133157 More terms from _R. J. Mathar_, Jan 08 2008