Use a stars and bars bijection. For a tuple, place stars in consecutive blocks of lengths , separated by bars. The bar positions form an -element subset of . Explicitly,They satisfy . Conversely, such a subset determinesThese numbers are nonnegative and sum to , proving that the two constructions are inverse. HenceZero-length blocks are permitted, so the bijection also covers .
For finitely many finite sets , the inclusion-exclusion principle statesTo see why, an element belonging to exactly of the sets contributesby the binomial theorem. Elements outside the union contribute zero. Equivalently, if these sets lie in a finite universe , the number avoiding all of them is
For bounded weak compositions, start with the unrestricted stars and bars set and let be its subset where . For an index subset , subtract from each coordinate with . This is a bijection from to nonnegative tuples summing toThuswhere a negative remaining sum gives zero, in accordance with the stipulated convention. Apply the avoidance form of the inclusion-exclusion principle:Expanding by subset size gives the alternating single-index, pair-index and higher-index sums. The empty subset supplies .
Articles by others on the same topic
There are currently no matching articles.