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.

A211979 Numbers n formed by p 1's followed by p - 1 0's, where p is prime(n).

Original entry on oeis.org

110, 11100, 111110000, 1111111000000, 111111111110000000000, 1111111111111000000000000, 111111111111111110000000000000000, 1111111111111111111000000000000000000, 111111111111111111111110000000000000000000000
Offset: 1

Views

Author

Omar E. Pol, Dec 12 2012

Keywords

Examples

			For n = 3, the third prime is 5, so a(3) = 111110000 (five 1's followed by four 0's).
		

Crossrefs

Binary representation of A060286.
a(n) has A076274(n) digits.

Programs

  • Mathematica
    (* Technically this is in base 10 *) Table[10^(Prime[n] - 1)((10^Prime[n] - 1)/9), {n, 20}] (* Alonso del Arte, Dec 12 2012 *)
    FromDigits[Join[PadRight[{},#,1],PadRight[{},#-1,0]]]&/@ Prime[ Range[ 10]] (* Harvey P. Dale, Aug 30 2015 *)