How many way can we write the integer $n$ as the sum of $k$ non-negative integers such that the largest number of the $k$ non-negative integers is $d$. The condition is the largest number in all $k$ non-negative must be $d$.
For example, I can write $10$ as $3+3+2+1+1$ and $3+2+2+2+1$ if $k = 5$ and $d = 3$.