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.

A093947 Primes of the form 8*10^k - 1.

Original entry on oeis.org

7, 79, 79999, 799999, 799999999, 79999999999, 79999999999999999999999999, 79999999999999999999999999999999999999999999999999, 79999999999999999999999999999999999999999999999999999999999999999999999999999
Offset: 1

Views

Author

Rick L. Shepherd, Apr 17 2004

Keywords

Comments

Equivalently, primes of the form 7*10^k + 9*R_k, where R_k is the repunit (A002275) of length k.

Crossrefs

Cf. A002275, A056721 (corresponding k).
Primes in A198973.

Programs

  • Magma
    [a: n in [0..200] | IsPrime(a) where a is (8*10^n-1)]; // Vincenzo Librandi, May 08 2019
  • Mathematica
    Select[Table[FromDigits[PadRight[{7}, n, 9]], {n, 50}], PrimeQ] (* Vincenzo Librandi, May 08 2019 *)

Formula

a(n) = 8*10^A056721(n) - 1 = A198973(A056721(n)). - Elmo R. Oliveira, Jun 14 2025
Showing 1-1 of 1 results.