Learn / Library / Combinatorics
Bounded integer quadruples
Count the ordered sets of integers with for every and .
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Reflect each variable around the middle of its range to make the total small.
Solution
- Substitute , so and .
- The upper bound holds automatically because the total is .
- So we count non-negative solutions, which gives .
- Compute .
- The count is .
Answer: