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.

A138051 Numbers k such that 27^k + 2 is prime.

Original entry on oeis.org

0, 1, 5, 8, 12, 21, 41, 42, 81, 105, 121, 377, 501, 2401, 14597, 35381, 59476, 120536
Offset: 1

Views

Author

Alexander Adamchuk, Mar 02 2008

Keywords

Comments

All terms are the exact thirds of terms of A051783 that are divisible by 3.

Crossrefs

Cf. A051783 (3^k + 2 is prime), A087885 (5^k + 2 is prime).
Cf. A176495.

Programs

  • Mathematica
    Do[ f = 27^n + 2; If[ PrimeQ[ f ], Print[ {n, f} ] ], {n, 1, 2500} ]
  • PARI
    is(n)=ispseudoprime(27^n+2) \\ Charles R Greathouse IV, Feb 17 2017

Extensions

a(15)-a(17) from A051783 by Ray Chandler, Aug 06 2011
a(18) from Robert Price, May 12 2019