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.

A096508 Numbers k for which 8*R_k + 1 is prime, where R_k = 11...1 is the repunit (A002275) of length k.

Original entry on oeis.org

2, 14, 17, 35, 4175, 4472, 9812, 12260, 12341, 13760, 14576, 53411, 144683, 148328
Offset: 1

Views

Author

Labos Elemer, Jul 12 2004

Keywords

Comments

Also numbers k such that (8*10^k + 1)/9 is prime.
a(15) > 2*10^5. - Robert Price, Sep 06 2014

Examples

			35 is a term because 88888888888888888888888888888888889 (34 8's) is a prime number.
		

Crossrefs

Programs

  • Maple
    select(n -> isprime((8*10^n+1)/9), [$1..10000]); # Robert Israel, Sep 07 2014
  • Mathematica
    Do[ If[ PrimeQ[ 8(10^n - 1)/9 + 1], Print[n]], {n, 0, 30000}] (* Robert G. Wilson v, Oct 15 2004 *)
  • PARI
    for(n=1,10^4,if(ispseudoprime(8*(10^n-1)/9+1),print1(n,", "))) \\ Derek Orr, Sep 06 2014

Formula

a(n) = A056663(n) + 1.

Extensions

Four missing terms (9812, 12260, 12341, 13760) added, and a(12)-a(14) added from Kamada data, by Robert Price, Sep 06 2014