Given values of k and n, find the number of nonnegative integral solutions for the equation
Two positive integers k and n (k≤n≤100).
Print the number of nonnegative integral solutions for the given equation. It is known that the answer is no more than 1018.
There are 15 nonnegative integer solutions to the equation x1+x2+x3=4:
(4,0,0) and its 3 permutations
(3,1,0) and its 6 permutations
(2,2,0) and its 3 permutations
(2,1,1) and its 3 permutations
In total there are 3+6+3+3=15 solutions.