A385214 Number of subsets of {1..n} without all equal lengths of maximal runs of consecutive elements increasing by 1.
0, 0, 0, 0, 2, 8, 25, 66, 159, 361, 791, 1688, 3539, 7328, 15040, 30669, 62246, 125896, 253975, 511357, 1028052
Offset: 0
Examples
The maximal runs of S = {1,2,4,5,6,8,9} are ((1,2),(4,5,6),(8,9)), with lengths (2,3,2), so S is counted under a(9). The a(0) = 0 through a(5) = 8 subsets: . . . . {1,2,4} {1,2,4} {1,3,4} {1,2,5} {1,3,4} {1,4,5} {2,3,5} {2,4,5} {1,2,3,5} {1,3,4,5}
Crossrefs
The complement is counted by A243815.
Programs
-
Mathematica
Table[Length[Select[Subsets[Range[n]],!SameQ@@Length/@Split[#,#2==#1+1&]&]],{n,0,10}]