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-1 of 1 results.

A344170 Numbers k such that 3^(2*k+1) - 3^k - 1 is prime.

Original entry on oeis.org

1, 2, 5, 6, 7, 10, 17, 25, 31, 88, 95, 137, 141, 416, 610, 781, 800, 2353, 7291, 9627, 9749, 15946, 19215
Offset: 1

Views

Author

Reza K Ghazi, May 10 2021

Keywords

Comments

a(24) > 20000.

Crossrefs

Cf. A344263.

Programs

  • Maple
    for k from 1 to 3000 do if isprime(3^(2*k + 1) - 3^k - 1) then print(k); end if; end do
  • Mathematica
    Do[If[PrimeQ[3^(2k + 1) - 3^k - 1], Print[k]], {k, 1, 3000}]
  • PARI
    for(k=1, 3e3, if(isprime(3^(2*k+1)-3^k-1), print1(k", ")))
    
  • SageMath
    for k in range(1, 3000):
        if is_prime(3^(2 * k + 1) - 3^k - 1):
            print(k)

Extensions

a(19)-a(21) from Michael S. Branicky, May 11 2021
a(22)-a(23) from Reza K Ghazi, May 14 2021
Showing 1-1 of 1 results.