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.

A128026 Numbers n such that (10^n - 3^n)/7 is prime.

Original entry on oeis.org

2, 3, 5, 37, 599, 38393, 51431, 118681, 376417
Offset: 1

Views

Author

Alexander Adamchuk, Feb 11 2007

Keywords

Comments

All terms are primes.
No other terms < 1000000.

Crossrefs

Cf. A028491 = numbers n such that (3^n - 1)/2 is prime.
Cf. A057468 = numbers n such that 3^n - 2^n is prime.
Cf. A059801 = numbers n such that 4^n - 3^n is prime.
Cf. A121877 = numbers n such that (5^n - 3^n)/2 is a prime.

Programs

  • Mathematica
    k=7; Select[ Prime[ Range[1,200] ], PrimeQ[ ((k+3)^# - 3^#)/k ]& ]
  • PARI
    forprime(p=2,1e4,if(ispseudoprime((10^p-3^p)/7),print1(p", "))) \\ Charles R Greathouse IV, Jun 05 2011

Extensions

a(6)-a(7) from Robert Price, Jun 04 2011
a(8)-a(9) from Jon Grantham, Jul 29 2023