ND: count by coordinate support

A tuple with k positive coordinates and at least one zero contributes C(d,k)C(S,k). Only the all-positive row depends on T.

Integer inputs

F5(6,6)=462F_{5}(6,6) = 462

At least one zero
456
All coordinates positive
6
Positive sum cap
6

Disjoint coordinate supports

Positive coordinates kCount
01
130
2150
3200
475
56

Sum the rows: 456 tuples with a zero, plus 6 all-positive tuples.

Exact bounded reference, not the fast research algorithm. No native C++ code runs here. Browser time is not a C++ benchmark.

Read the article