A385886 Irregular triangle read by rows listing the lengths of maximal anti-runs (sequences of distinct consecutive elements increasing by more than 1) of binary indices, duplicate rows removed.
1, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 3, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 2, 1, 1, 1, 2, 3, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 3, 1, 2, 2, 2, 1, 2, 1, 1, 1, 1, 2, 1, 3, 1, 2, 2, 1, 1, 1, 1, 2, 1
Offset: 0
Examples
The binary indices of 27 are {1,2,4,5}, with maximal anti-runs ((1),(2,4),(5)), with lengths (1,2,1). After removing duplicates, this is our row 10. The binary indices of 53 are {1,3,5,6}, with maximal anti-runs ((1,3,5),(6)), with lengths (3,1). After removing duplicates, this is our row 16. Triangle begins: 0: . 1: 1 2: 1 1 3: 2 4: 1 1 1 5: 1 2 6: 2 1 7: 1 1 1 1 8: 3 9: 1 1 2 10: 1 2 1 11: 2 1 1 12: 1 1 1 1 1 13: 1 3 14: 2 2 15: 1 1 1 2 16: 3 1 17: 1 1 2 1 18: 1 2 1 1 19: 2 1 1 1 20: 1 1 1 1 1 1
Crossrefs
In the following references, "before" is short for "before removing duplicate rows".
Standard composition numbers of each row appear to be A348366.
Programs
-
Mathematica
DeleteDuplicates[Table[Length/@Split[Join@@Position[Reverse[IntegerDigits[n,2]],1],#2!=#1+1&],{n,0,100}]]
Comments