cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

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

Original entry on oeis.org

1, 1, 2, 1, 444, 1, 2
Offset: 1

Views

Author

Hugo Pfoertner, Jul 31 2003

Keywords

Comments

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]
It is conjectured that such x always exists. - Dean Hickerson
From Farideh Firoozbakht and M. F. Hasler, Nov 27 2009: (Start)
We can show that for all n=(6k-1)^3, k > 0, there is no such x, which disproves the conjecture:
Since n=(6k-1)^3 is odd, x must be even, else x^x+n is even and composite.
If x == +-1 (mod 3), then x^x + n == (+-1)^2 + (-1)^3 == 0 (mod 3), i.e., divisible by 3 and therefore composite.
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)
a(8) >= 36869. - Max Alekseyev, Sep 16 2013

Examples

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

Crossrefs

Cf. A000312 (n^n), A087038 (x^x+n is prime, x>1).
Cf. A166853 (x^x-n is prime). - Farideh Firoozbakht and M. F. Hasler, Nov 27 2009

Programs

  • PARI
    a(n) = {my(x = 1); while (!isprime(x^x+n), x++); x;} \\ Michel Marcus, Mar 20 2018

Extensions

Name edited by Altug Alkan, Apr 01 2018

A166852 Numbers k such that k^k + 3 is prime.

Original entry on oeis.org

2, 1036, 2770
Offset: 1

Views

Author

Farideh Firoozbakht, Nov 20 2009

Keywords

Comments

Numbers corresponding to a(2) and a(3) are probable primes. 2770 is in the sequence so 2770^2770 + 3 is a probable prime; it is interesting that 277027703 is also prime. For the first term we have the same property: both 2^2 + 3 and 223 are prime.
For k = -1, k^k + 3 = 2 is prime but sequence focuses on the positive values of k. - Altug Alkan, Nov 28 2015
a(4) > 25000. - Michael S. Branicky, Oct 15 2024

Crossrefs

Programs

  • Mathematica
    Do[If[GCD[n,3]==1&&PrimeQ[n^n+3],Print[n]],{n,2,5362,2}]
  • PARI
    is(n)=ispseudoprime(n^n+3) \\ Charles R Greathouse IV, Jun 13 2017
Showing 1-2 of 2 results.