The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation. Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A285888 Numbers n such that (1 + n)^n + (-n)^n is prime. 3
 0, 2, 3, 4, 5, 7, 167 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS The next term, if it exists, is > 10000. - Hugo Pfoertner, Jan 06 2020 The associated primes are: 13, 37, 881, 4651, 1273609, ... From Robert Israel, Apr 28 2017: (Start) All terms other than 0 are primes or powers of 2. Heuristically, this sequence might be expected to be finite. (End) LINKS J. S. Gerasimov, x^(y + 1) - y^x, SeqFan list, Aug 18 2014. EXAMPLE 4 is in this sequence because (1 + 4)^4 + (-4)^4 = 881 is prime. MAPLE N:= 1000: # to get all terms <= N cands:= select(isprime, {seq(i, i=3..N, 2)}) union {0, seq(2^k, k=1..ilog2(N))}: select(n -> isprime((1+n)^n + (-n)^n), cands); # Robert Israel, Apr 28 2017 PROG (MAGMA) [n: n in [0..170]| IsPrime((n+1)^n + (-n)^n)]; (PARI) is(n)=ispseudoprime((n+1)^n+(-n)^n) \\ Charles R Greathouse IV, Apr 28 2017 CROSSREFS Supersequence of A098463. Cf. A243100, A285886, A285887. Sequence in context: A259389 A277217 A259384 * A028986 A327324 A063948 Adjacent sequences:  A285885 A285886 A285887 * A285889 A285890 A285891 KEYWORD nonn,more AUTHOR Juri-Stepan Gerasimov, Apr 27 2017 STATUS approved

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

Last modified August 5 21:18 EDT 2020. Contains 336213 sequences. (Running on oeis4.)