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!)
A057900 Numbers k such that 3^k + k is prime. 3
2, 8, 34, 1532, 18248 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Note that if n > 2 and n+1 is prime then (by Fermat's theorem) n+1 divides 3^n+n.
If it exists, a(6) > 100000. - Hugo Pfoertner, Mar 01 2024
LINKS
MATHEMATICA
Do[ If[ PrimeQ[ 3^n + n ], Print[ n ] ], {n, 0, 3000} ]
v={2}; Do[If[EvenQ[n]&&Mod[n, 3]!=0&&!PrimeQ[n+1]&&PrimeQ[3^n+n], v=Append[v, n]; Print[v]], {n, 3, 19000}]
Select[Range[18500], PrimeQ[3^#+#]&] (* Harvey P. Dale, Jul 23 2013 *)
PROG
(PARI) is(n)=ispseudoprime(3^n+n) \\ Charles R Greathouse IV, May 22 2017
CROSSREFS
Sequence in context: A346413 A013026 A121789 * A116618 A037723 A037618
KEYWORD
nonn,hard,more
AUTHOR
Robert G. Wilson v, Nov 16 2000
EXTENSIONS
18248 from Farideh Firoozbakht, Aug 21 2003
STATUS
approved

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 April 24 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)