OFFSET
0,9
COMMENTS
Suggested by A279026.
What combinatorial problem is this the answer to?
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..10000
MATHEMATICA
Q = {};
Num = 100;
T = Table[IntegerDigits[CatalanNumber[n], 2], {n, 0, Num}];
For[i = 1, i <= Num, i++,
c = 0; j = 1;
While[T[[i]][[j]] == 1, j++];
While[T[[i]][[j]] == 0, j++];
c = j;
While[T[[i]][[j]] == 1, j++];
c = j - c;
AppendTo[Q, c]
];
Q (* Benedict W. J. Irwin, Dec 21 2016 *)
Join[{0, 0, 0, 1, 0}, Length[Split[IntegerDigits[#, 2]][[3]]]&/@ CatalanNumber[ Range[5, 100]]] (* Harvey P. Dale, Aug 20 2021 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Dec 21 2016
EXTENSIONS
a(19) to a(99) from Benedict W. J. Irwin, Dec 21 2016
STATUS
approved