0

I know the answer for the cases where I can have all possible values which will be given by $(n+k-1)C(k-1)$ but I don't know how to reduce it to the given constraints.

Bernard
  • 175,478

1 Answers1

0

You're looking for the restricted partition number $p_3(n)$. This is the number of ways to divide $n$ into three integral pieces without regard to order. For every such arrangement, you would assign $x$ to a minimal value of that triple, $z$ to a maximal value, and $y$ to the remaining value.

Mathworld helpfully notes at (66) that $p_3(n)=\left[\frac{n^2}{12}\right]$, where the square bracket indicates rounding to the nearest integer.