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.

A113481 Numbers n such that 59^n + 2 is prime.

This page as a plain text file.
%I A113481 #17 Sep 08 2022 08:45:23
%S A113481 0,1,27,45,75
%N A113481 Numbers n such that 59^n + 2 is prime.
%C A113481 a(6) > 2*10^5. - _Robert Price_, Mar 21 2015
%t A113481 For[n=0, n<50, n++, If[PrimeQ[59^n+2], Print[n]]] (* _Stefan Steinerberger_, Feb 10 2006 *)
%t A113481 Select[Range[0, 1000], PrimeQ[59^# + 2] &] (* _Vincenzo Librandi_, Mar 22 2015 *)
%o A113481 (PARI) forstep(n=1,1000,2,y=59^n+2;if(ispseudoprime(y),print1(n",")))
%o A113481 (Magma) [n: n in [0..100] | IsPrime( 59^n + 2)]; // _Vincenzo Librandi_, Mar 22 2015
%K A113481 nonn
%O A113481 1,3
%A A113481 _Cino Hilliard_, Jan 09 2006