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.

Previous Showing 11-11 of 11 results.

A357110 Numbers k such that 1 + k^2 * 2^k + k^3 * 3^k is prime.

Original entry on oeis.org

2, 4, 6, 10, 12, 28, 30, 52, 60, 1170, 1292, 1882, 4760, 5160, 8388, 14652, 37700, 62388
Offset: 1

Views

Author

Enrico Masina, Sep 11 2022

Keywords

Comments

a(17) > 52000.
a(18) > 10^5. - Michael S. Branicky, Aug 20 2025

Examples

			a(5) = 12 because 1 + 12^2 * 2^(12) + 12^3 * 3^(12) = 918919873 is prime.
		

Crossrefs

Cf. A058780.

Programs

  • Magma
    [k: k in [1..31000] | IsPrime(1 + k^2*2^k + k^3*3^k)];
    
  • Mathematica
    p = 31000
    ParallelTable[
    If[PrimeQ[1 + n^2*2^n + n^3*3^n], n, Nothing], {n, 0, p}]
  • PARI
    is(n)=ispseudoprime(1 + n^2*2^n + n^3*3^n)
    
  • Python
    from sympy import isprime
    print([k for k in range(52000) if isprime(1 + (2**k)*(k**2) + (3**k)*(k**3))])

Extensions

a(17) from Michael S. Branicky, Aug 20 2025
Previous Showing 11-11 of 11 results.