OFFSET
1,2
LINKS
Rémy Sigrist, Rows n = 1..2048, flattened
EXAMPLE
23 in binary is 10111. There are two runs of length 1, zero runs of length 2, and one run of length 3. So, row 23 is (2,0,1).
PROG
(PARI) row(n) = my (r=[]); while (n, my (v=valuation(n+(n%2), 2)); r = concat(v, r); n\=2^v); my (f=vector(vecmax(r))); for (i=1, #r, f[r[i]]++); f \\ Rémy Sigrist, Feb 13 2019
CROSSREFS
KEYWORD
base,nonn,tabf
AUTHOR
Leroy Quet, Apr 22 2010
EXTENSIONS
More terms from Rémy Sigrist, Feb 13 2019
STATUS
approved