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.

A056703 Numbers n such that 3*10^n - 1 is prime.

Original entry on oeis.org

0, 1, 3, 6, 7, 19, 27, 43, 55, 207, 1311, 3204, 7050, 9439, 26044, 33058, 34507, 49314, 119292
Offset: 1

Views

Author

Robert G. Wilson v, Aug 10 2000

Keywords

Comments

Also numbers n such that 2*10^n + 9*R_n is prime, where R_n = 11...1 is the repunit (A002275) of length n.

Programs

  • Mathematica
    Do[ If[ PrimeQ[ 2*10^n + (10^n-1)], Print[n]], {n, 0, 3000}]
    Select[Range[200000],PrimeQ[3*10^#-1]&] (* Harvey P. Dale, Sep 29 2012 *)
  • PARI
    is(n)=ispseudoprime(3*10^n-1) \\ Charles R Greathouse IV, Jun 12 2017

Extensions

More terms from Herman Jamke (hermanjamke(AT)fastmail.fm), Jan 01 2008