Combination
I want to write a program, which given two integer inputs j and k will output the combinations of j things partitions into k groups. For instance if j=5 and k=3 the output would be
(5, 0, 0)
(4, 1, 1)
(3, 2, 0)
(3, 1, 1)
(2, 2, 0)
I've got no idea what to do. I think I should use nested loop or use recursion. Please help.

