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.
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
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))
Comments