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.

A140331 Smallest k such that 3^(3^n) - k is prime.

Original entry on oeis.org

1, 4, 2, 26, 10, 466, 506, 128, 13342, 5974, 8410, 6470
Offset: 0

Views

Author

Jonathan Vos Post, May 26 2008

Keywords

Comments

This is to 3 as A058220 is to 2.

Examples

			a(4) = 10 because 3^(3^4) - 10 = 443426488243037769948249630619149892793 is prime.
		

Crossrefs

Cf. A055777 (3^(3^n)), A058220.

Programs

  • PARI
    a(n) = x = 3^(3^n); x - precprime(x); \\ Michel Marcus, Jan 28 2015

Formula

a(n) = A064722(A055777(n)). - Michel Marcus, Jan 28 2015

Extensions

a(5)-a(8) from Cino Hilliard, Jun 02 2008
a(9)-a(10) from Donovan Johnson, Sep 13 2008
a(0) prepended and a(11) from Michael S. Branicky, Aug 23 2024