login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A057900 Numbers n such that 3^n + n is prime. 1
2, 8, 34, 1532, 18248 (list; graph; refs; listen; history; 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.

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}]

CROSSREFS

Sequence in context: A191569 A013026 A121789 * A116618 A037723 A037618

Adjacent sequences:  A057897 A057898 A057899 * A057901 A057902 A057903

KEYWORD

nonn

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com), Nov 16 2000

EXTENSIONS

18248 from Farideh Firoozbakht (f.firoozbakht(AT)sci.ui.ac.ir), Aug 21 2003

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 08:13 EST 2012. Contains 205893 sequences.