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.

A331815 Numbers k such that 10^(2*k) - 8*10^(k-1) - 1 is prime.

Original entry on oeis.org

3, 4, 132, 471, 1935, 4258, 9444
Offset: 1

Views

Author

Eder Vanzei, Jan 27 2020

Keywords

Comments

Also numbers k such that the concatenation (k 9's)1(k-1 9's) is prime.

Examples

			3 is a term because 999199 is prime.
4 is a term because 99991999 is prime.
		

Crossrefs

Cf. A000040.
Cf. A077776 = A183184*2+1: palindromic near-repdigit primes 9..919..9.

Programs

  • Mathematica
    Select[Range[500], PrimeQ[10^(2*#) - 8*10^(#-1) - 1] &] (* Amiram Eldar, Jan 28 2020 *)
  • PARI
    (is_A331815(n)=ispseudoprime(100^n-8*10^(n-1)-1)); for(n=1, 9999, is_A331815(n)&&print1(n", "))

Extensions

a(7) from Giovanni Resta, Jan 28 2020