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.

A300010 Numbers k such that 3^k + k - 1 is a prime.

Original entry on oeis.org

1, 3, 65, 123, 435, 465, 677, 947, 4215, 5615, 69749
Offset: 1

Views

Author

Vincenzo Librandi, Apr 01 2018

Keywords

Comments

Corresponding primes: 3, 29, 10301051460877537453973547267907, 48519278097689642681155855396759336072749841943521979872949, ...
a(12), if it exists, is greater than 100000. - Michael S. Branicky, Oct 09 2024

Crossrefs

Programs

  • Magma
    [k: k in [1..700] | IsPrime(3^k+k-1)];
    
  • Maple
    select(k->isprime(3^k+k-1),[$1..1000]); # Muniru A Asiru, Apr 05 2018
  • Mathematica
    Flatten[{Select[Range[6000], PrimeQ[3^# + # - 1] &]}]
  • PARI
    lista(nn) = forstep(n=1, nn, 2, if(ispseudoprime(3^n + n - 1), print1(n, ", "))); \\ Altug Alkan, Apr 01 2018

Extensions

a(11) from Michael S. Branicky, Oct 08 2024
Showing 1-1 of 1 results.