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.
| Positive coordinates k | Count |
|---|---|
| 0 | 1 |
| 1 | 30 |
| 2 | 150 |
| 3 | 200 |
| 4 | 75 |
| 5 | 6 |
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.