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.

A083279 Length of odd/even runs in A061419, where a(2n)=length of n-th run of even numbers in A061419 and a(2n-1)=length of n-th run of odd numbers.

Original entry on oeis.org

1, 1, 2, 3, 2, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 5, 2, 1, 1, 7, 1, 1, 5, 2, 2, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 2, 4, 1, 2, 1, 6, 1, 1, 5, 2, 1, 2, 1, 1, 1, 2, 2, 1, 2, 4, 3, 2, 3, 3, 1, 4, 1, 1, 2, 1, 1, 1, 1, 2, 1, 3, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 5
Offset: 1

Views

Author

Ralf Stephan, Jun 02 2003

Keywords

Comments

Parity of A061419(n) can be fully reconstructed from this sequence.

Programs

  • PARI
    p=1; c=0; r=0; for(n=1, 1000, p=p+ceil(p/2);  if(p%2==r, c=c+1, print1(c", "); r=!r; c=1))