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.

A068648 Primes in which a string of 8's is sandwiched between two 1's.

Original entry on oeis.org

11, 181, 188888881, 188888888888881, 18888888888888888888888888888888888888881, 188888888888888888888888888888888888888888888888888888888888888888888888888888888888888888881
Offset: 1

Views

Author

Amarnath Murthy, Feb 28 2002

Keywords

Comments

The next term -- a(7) -- has 129 digits. - Harvey P. Dale, Jul 08 2020

Examples

			11 is also a member in which a string of 0 8's is there between two one's.
		

Crossrefs

Programs

  • Maple
    a := 1:b := 8:i := 1:for n from 0 to 500 do c := a+10*(10^n-1)/9*b+10^(n+1)*a; if(isprime(c)) then d[i] := c; i := i+1; end if; end do:q := seq(d[j],j=1..i-1);
  • Mathematica
    Select[Table[10FromDigits[PadRight[{1},n,8]]+1,{n,100}],PrimeQ] (* Harvey P. Dale, Jul 08 2020 *)

Extensions

More terms from Sascha Kurz, Mar 19 2002
Edited by Ray Chandler, Nov 04 2014

A056249 Indices of primes in sequence defined by A(0) = 11, A(n) = 10*A(n-1) + 71 for n > 0.

Original entry on oeis.org

0, 1, 7, 13, 39, 91, 127, 883, 9423, 14767, 19257, 31233
Offset: 1

Views

Author

Robert G. Wilson v, Aug 18 2000

Keywords

Comments

Numbers n such that (170*10^n - 71)/9 is prime.
Numbers n such that digit 1 followed by n >= 0 occurrences of digit 8 followed by digit 1 is prime.
Numbers corresponding to terms <= 883 are certified primes.

Examples

			181 is prime, hence 1 is a term.
		

References

  • Klaus Brockhaus and Walter Oberschelp, Zahlenfolgen mit homogenem Ziffernkern, MNU 59/8 (2006), pp. 462-467.

Crossrefs

Programs

  • Mathematica
    Select[Range[0, 2000], PrimeQ[(170 10^# - 71) / 9] &] (* Vincenzo Librandi, Nov 03 2014 *)
  • PARI
    a=11;for(n=0,1500,if(isprime(a),print1(n,","));a=10*a+71)
    
  • PARI
    for(n=0,1500,if(isprime((170*10^n-71)/9),print1(n,",")))

Formula

a(n) = A082702(n-1) - 2 for n > 1.

Extensions

Additional comments from Klaus Brockhaus and Walter Oberschelp (oberschelp(AT)informatik.rwth-aachen.de), Dec 28 2004
Edited by N. J. A. Sloane, Jun 15 2007
More terms from Herman Jamke (hermanjamke(AT)fastmail.fm), Jan 02 2008
Updated and added a link, by Patrick De Geest, Nov 02 2014
Edited by Ray Chandler, Nov 04 2014
Showing 1-2 of 2 results.