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!)
A087037 Smallest integer x > 0 such that x^x + n is prime, or 0 if no such x exists. 4

%I #37 Apr 01 2018 20:27:40

%S 1,1,2,1,444,1,2

%N Smallest integer x > 0 such that x^x + n is prime, or 0 if no such x exists.

%C The sequence with the unknown terms a(8), a(11), a(17), a(24), a(41), a(53), a(59), a(65) indicated by ? (each of which exceeds 6000) begins: 1, 1, 2, 1, 444, 1, 2, ?, 2, 1, ?, 1, 2, 3, 2, 1, ?, 1, 2, 3, 4, 1, 6, ?, 2, 3, 2, 1, 30, 1, 6, 3, 2, 3, 6, 1, 2, 5, 2, 1, ?, 1, 2, 3, 58, 1, 6, 7, 2, 3017, 4, 1, ?, 35, 2, 3, 2, 1, ?, 1, 4, 3, 2, 19, ?, 1, 2, 27, 2, 1, 6, 1, 8, 3, 2, ..., where the value a(50)=3017 corresponds to a probable prime. [extended by _Jon E. Schoenfield_, Mar 17 2018, Mar 19 2018]

%C It is conjectured that such x always exists. - _Dean Hickerson_

%C From _Farideh Firoozbakht_ and _M. F. Hasler_, Nov 27 2009: (Start)

%C We can show that for all n=(6k-1)^3, k > 0, there is no such x, which disproves the conjecture:

%C Since n=(6k-1)^3 is odd, x must be even, else x^x+n is even and composite.

%C If x == +-1 (mod 3), then x^x + n == (+-1)^2 + (-1)^3 == 0 (mod 3), i.e., divisible by 3 and therefore composite.

%C Finally, if x == 0 (mod 3), then x^x + n = (x^(x/3) + 6k-1)*(x^(2x/3) - x^(x/3)*(6k-1) + (6k-1)^2) is again composite. (End)

%C a(8) >= 36869. - _Max Alekseyev_, Sep 16 2013

%H OpenPFGW Project, <a href="http://www.primeform.net/openpfgw/">Primality Tester</a>

%e a(7)=2 because 2^2 + 7 = 11 is prime.

%o (PARI) a(n) = {my(x = 1); while (!isprime(x^x+n), x++); x;} \\ _Michel Marcus_, Mar 20 2018

%Y Cf. A000312 (n^n), A087038 (x^x+n is prime, x>1).

%Y Cf. A166853 (x^x-n is prime). - _Farideh Firoozbakht_ and _M. F. Hasler_, Nov 27 2009

%K nonn,more,hard

%O 1,3

%A _Hugo Pfoertner_, Jul 31 2003

%E Name edited by _Altug Alkan_, Apr 01 2018

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 09:18 EDT 2024. Contains 371935 sequences. (Running on oeis4.)