I need to find the no of ways of partitioning a number N as a sum of K non-negative numbers.
Zeroes are also needed to be included in the sum.
Ordering does matter.
Example-
For $N=2,K=3 $
There are $6$ ways {1,1,0},{1,0,1},{0,1,1},{2,0,0},{0,0,2},{0,2,0}
I need an efficient recursive relation for this ?