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!)
A081510 Numbers n such that 1+2^n+4^n+6^n is prime. 1

%I #13 Jun 03 2023 12:10:40

%S 1,11,23,59,399

%N Numbers n such that 1+2^n+4^n+6^n is prime.

%e m=1: 1+2+4+6=13 prime.

%t Do[s=1^w+2^w+4^w+6^w; If[IntegerQ[w/100], Print[{w}]]; If[PrimeQ[s], Print[{w, s}]], {w, 0, 1000}]

%t Select[Range[400],PrimeQ[2^#+4^#+6^#+1]&] (* _Harvey P. Dale_, Jun 03 2023 *)

%o (PARI) is(n)=ispseudoprime(1+2^n+4^n+6^n) \\ _Charles R Greathouse IV_, Jun 13 2017

%Y Cf. A081509.

%K more,nonn

%O 1,2

%A _Labos Elemer_, Apr 15 2003

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 June 20 03:21 EDT 2024. Contains 373512 sequences. (Running on oeis4.)