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-2 of 2 results.

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

A093405 Primes of the form 80*R_k + 9, where R_k is the repunit (A002275) of length k.

Original entry on oeis.org

89, 88888888888889, 88888888888888889, 88888888888888888888888888888888889
Offset: 1

Views

Author

Rick L. Shepherd, Mar 28 2004

Keywords

Comments

Primes of the form (8*10^k + 1)/9. - Vincenzo Librandi, Jul 17 2012

Crossrefs

Cf. A056663 (corresponding k).

Programs

  • Mathematica
    Select[Table[(8*10^n+1)/9,{n,1,200}],PrimeQ] (* Vincenzo Librandi, Jul 17 2012 *)
    Select[Table[FromDigits[PadLeft[{9},n,8]],{n,100}],PrimeQ] (* Harvey P. Dale, Dec 15 2023 *)
Showing 1-2 of 2 results.