OFFSET
1,6
EXAMPLE
For n>0 A123640 begins
1
0 1
1 0 1 1
0 1 0 0 1 1 1 1
suppressing multiple zeros and counting contiguous ones yields
1
0 1
1 0 2
0 1 0 4
1 0 2 0 8
0 1 0 4 0 16
...
PROG
(PARI) a001045(n)=(2^n-(-1)^n)/3;
lista(nn) = {last = v[2]; nb = 1; s = 0; j = 1; for (i=3, nn, if ((v[i] == last) && (s+v[i] < a001045(j)), nb++; s += v[i]; , if (last, w = nb, w = 0); print1(w, ", "); nb = 1; last = v[i]; if (s + v[i] >= a001045(j), s = 0; j++; , s += v[i]; ); ); ); } \\ Michel Marcus, Feb 09 2014
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Alford Arnold, Oct 04 2006
EXTENSIONS
More terms from Michel Marcus, Feb 09 2014
STATUS
approved