OFFSET
0,2
COMMENTS
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..6304 (rows for n = 0..254, flattened)
FORMULA
EXAMPLE
Triangle begins:
1;
2;
1, 1, 1;
4;
1, 3, 1;
2, 2, 2;
1, 1, 1, 1, 1, 1, 1;
8;
1, 7, 1;
2, 6, 2;
1, 1, 1, 5, 1, 1, 1;
4, 4, 4;
1, 3, 1, 3, 1, 3, 1;
2, 2, 2, 2, 2, 2, 2;
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1;
16;
...
PROG
(PARI) row(n) = { my (b=binomial(n)%2, r=[], p=1, w=1); for (k=2, #b, if (p==b[k], w++, r=concat(r, w); p=b[k]; w=1)); concat(r, w) }
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Oct 27 2021
STATUS
approved