login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A058603 Numbers n such that 7*3^n + 2 is prime. 1

%I #12 Jun 12 2017 19:02:50

%S 1,3,4,31,33,76,196,319,405,591,2028,2140,4039,5745,16629,18061,20265,

%T 54129,119712

%N Numbers n such that 7*3^n + 2 is prime.

%C a(20) > 2*10^5. - _Robert Price_, May 12 2015

%t Do[ If[ PrimeQ[ 7*3^n + 2 ], Print[ n ] ], {n, 1, 2500} ]

%t Select[Range[0, 10000], PrimeQ[(7*3^# + 2)] &] (* _Vincenzo Librandi_, Sep 29 2012 *)

%o (PARI) is(n)=ispseudoprime(7*3^n+2) \\ _Charles R Greathouse IV_, Jun 12 2017

%K nonn

%O 1,2

%A _Robert G. Wilson v_, Dec 26 2000

%E a(13)-a(14) from _Vincenzo Librandi_, Sep 29 2012

%E a(15)-a(19) from _Robert Price_, May 12 2015

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 17 05:28 EDT 2024. Contains 375985 sequences. (Running on oeis4.)