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.

A231119 Least positive k such that n * k^k + 1 is a prime, or 0 if no such k exists.

Original entry on oeis.org

1, 1, 2, 1, 102414, 1, 2, 17, 2, 1, 36, 1, 2, 3, 2, 1, 210, 1, 20, 3, 990, 1, 6, 2, 2, 6, 2, 1
Offset: 1

Views

Author

Alex Ratushnyak, Nov 04 2013

Keywords

Comments

The number a(5) is conjectured to be zero. Four days of computation have shown that all numbers 5*k^k+1 are composite for k = 1..22733. - T. D. Noe, Nov 11 2013
The sum of 1/log(n*k^k) diverges slowly for every n so normal heuristics predict infinitely many primes in each case, including n=5. - Jens Kruse Andersen, Jun 16 2014
a(5) > 100000 or a(5) = 0. a(29) > 100000 or a(29) = 0. - Jason Yuen, Jan 06 2025
a(5) = 102414 . - Phillip Poplin, May 27 2025
a(29) > 150000 or a(29) = 0. - Phillip Poplin, May 27 2025

Crossrefs

Programs

  • Java
    import java.math.BigInteger; public class A231119 { public static void main (String[] args) { for (int n = 1; n < 3333; n++) { BigInteger nn = BigInteger.valueOf(n); for (int k=1; k<10000; k++) { BigInteger p = nn.multiply(BigInteger.valueOf(k).pow(k)).add(BigInteger.ONE); if (p.isProbablePrime(80)) { System.out.printf("%d, ", k); break; } else System.out.printf("."); } } } }

Extensions

a(5) from Phillip Poplin, May 27 2025

A380903 Least positive k such that n^n * k^k - 1 is a prime, or 0 if no such k exists.

Original entry on oeis.org

2, 2, 1, 2, 3, 4, 10147, 24
Offset: 0

Views

Author

Jason Yuen, Feb 07 2025

Keywords

Comments

a(8) > 10^5 or a(8) = 0.
a(9) = 0, a(10) = 3, a(11) = 3142, a(12) = 559, a(13) = 3558.
a(14) > 10^5 or a(14) = 0.

Examples

			The least k > 0 such that 4^4*k^k - 1 is a prime is k = 3, so a(4) = 3.
		

Crossrefs

Programs

  • PARI
    a(n) = for(k=1, oo, if(ispseudoprime(n^n*k^k-1), return(k))) \\ Does not terminate if a(n) = 0.

Formula

a(n) = A231735(n^n).
Showing 1-2 of 2 results.