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

A138713 Concatenation of first n runs of A138149 (related to prime numbers).

Original entry on oeis.org

11, 11000, 1100011111, 11000111110000000, 1100011111000000011111111111, 11000111110000000111111111110000000000000, 1100011111000000011111111111000000000000011111111111111111
Offset: 1

Views

Author

Omar E. Pol, Mar 29 2008

Keywords

Crossrefs

A138722 Concatenation of p digits 1, p digits 0 and p digits 1, where p is the n-th prime.

Original entry on oeis.org

110011, 111000111, 111110000011111, 111111100000001111111, 111111111110000000000011111111111, 111111111111100000000000001111111111111
Offset: 1

Views

Author

Omar E. Pol, Mar 29 2008

Keywords

Crossrefs

Programs

  • Mathematica
    Table[FromDigits[Join[PadRight[{},n,1],PadRight[{},n,0],PadRight[{},n,1]]],{n,Prime[Range[7]]}] (* Harvey P. Dale, Feb 05 2017 *)

A138709 n-th run has length n-th positive Fibonacci numbers, with digits 0 and 1 only, starting with 1.

Original entry on oeis.org

1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 1

Views

Author

Omar E. Pol, Mar 29 2008

Keywords

Examples

			n ..... Run ................. Length
.1 ..... 1 ................... 1
.2 ..... 0 ................... 1
.3 ..... 1,1 ................. 2
.4 ..... 0,0,0 ............... 3
.5 ..... 1,1,1,1,1 ........... 5
.6 ..... 0,0,0,0,0,0,0,0 ..... 8
		

Crossrefs

A138711 n-th run has length n-th positive triangular number, with digits 0 and 1 only, starting with 1.

Original entry on oeis.org

1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 1

Views

Author

Omar E. Pol, Mar 29 2008

Keywords

Examples

			.n ..... Run ............................... Length
.1 ..... 1 ................................. 1
.2 ..... 0,0,0 ............................. 3
.3 ..... 1,1,1,1,1,1........................ 6
.4 ..... 0,0,0,0,0,0,0,0,0,0 ............... 10
.5 ..... 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 ..... 15
		

Crossrefs

Programs

  • Mathematica
    Flatten[Table[Join[PadRight[{},(n(n+1))/2,1],PadRight[{},((n+1)(n+2))/2, 0]],{n,1,7,2}]] (* Harvey P. Dale, Dec 11 2011 *)

A138885 n-th run has length n-th nonprime number, with digits 0 and 1 only, starting with 1.

Original entry on oeis.org

1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 1

Views

Author

Omar E. Pol, Apr 06 2008

Keywords

Examples

			.n ..... Run ................... Length
.1 ..... 1 ..................... 1
.2 ..... 0,0,0,0 ............... 4
.3 ..... 1,1,1,1,1,1 ........... 6
.4 ..... 0,0,0,0,0,0,0,0 ....... 8
.5 ..... 1,1,1,1,1,1,1,1,1 ..... 9
		

Crossrefs

Programs

  • Mathematica
    Join[{1},{PadRight[{},#[[1]],0],PadRight[{},#[[2]],1]}&/@Partition[Select[Range[ 20],CompositeQ],2]]//Flatten (* Harvey P. Dale, May 26 2023 *)

A138886 n-th run has length n-th nonprime number A018252, with digits 0 and 1 only, starting with 0.

Original entry on oeis.org

0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Offset: 1

Views

Author

Omar E. Pol, Apr 06 2008

Keywords

Comments

Also the n-th run has length A141468, with digits 0 and 1 only, starting with 1.

Examples

			.n ..... Run ................... Length
.1 ..... 0 ..................... 1
.2 ..... 1,1,1,1 ............... 4
.3 ..... 0,0,0,0,0,0 ........... 6
.4 ..... 1,1,1,1,1,1,1,1 ....... 8
.5 ..... 0,0,0,0,0,0,0,0,0 ..... 9
		

Crossrefs

Showing 1-6 of 6 results.