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.

A226781 Number of 1's in A132199 preceding the n-th Rowland prime, A137613(n).

Original entry on oeis.org

3, 3, 7, 7, 17, 17, 39, 39, 40, 40, 89, 89, 91, 95, 95, 100, 215, 215, 447, 447, 448, 448, 917, 917, 919, 1862, 1862, 3750, 3750, 7528, 7528, 7533, 15097, 15097, 15122, 15122, 15124, 30284, 30284, 60606, 60606, 60607, 60607, 60656, 60656, 121356, 121356
Offset: 1

Views

Author

Vladimir Shevelev, Jun 29 2013

Keywords

Comments

The length of the clusters of 1's in A132199 is 3, 0, 4, 0, 10, 0, 22, 0, 1, 0, 49,.. and this sequence here are the partial sums of these lengths.

Crossrefs

Programs

  • Maple
    cd1 := 0 ;
    for i from 1 do
        if A132199(i) = 1 then
            cd1 := cd1+1 ;
        else
            printf("%d,\n",cd1) ;
        end if;
    end do: # R. J. Mathar, Jul 04 2013