A356846 Number of integer compositions of n into parts not covering an interval of positive integers.
0, 0, 0, 0, 2, 5, 11, 25, 57, 115, 236, 482, 978, 1986, 4003, 8033, 16150, 32402, 64943, 130207, 260805, 522123, 1045168, 2091722, 4185431, 8374100, 16753538, 33515122, 67042865, 134106640, 268246886, 536549760, 1073194999, 2146553011, 4293391411, 8587283895
Offset: 0
Keywords
Examples
The a(0) = 0 through a(6) = 8 compositions: . . . . (13) (14) (15) (31) (41) (24) (113) (42) (131) (51) (311) (114) (141) (411) (1113) (1131) (1311) (3111)
Crossrefs
Programs
-
Mathematica
gappyQ[m_]:=And[m!={},Union[m]!=Range[Min[m],Max[m]]]; Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],gappyQ]],{n,0,15}]