Quoto

Learn / Library / Combinatorics

Bounded integer quadruples

CombinatoricsMedium

Count the ordered sets of integers with for every and .

Checking an answer needs JavaScript. The hint and the solution open without it.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Reflect each variable around the middle of its range to make the total small.

Solution
  1. Substitute , so and .
  2. The upper bound holds automatically because the total is .
  3. So we count non-negative solutions, which gives .
  4. Compute .
  5. The count is .

Answer: