Inclusion-exclusion for exact block occupancy

ID: inclusion-exclusion-for-exact-block-occupancy

Suppose disjoint blocks each have elements. The number of -element subsets having exactly elements in at least one block is the displayed sum, with and invalid binomial coefficients interpreted as zero. For a specified set of blocks, choose elements in each and all remaining elements outside those blocks; inclusion-exclusion then counts the union of the exact-occupancy events. Excluding the rest of each specified block is essential.
// Target: algebra.bigb

New to topics? Read the docs here!