Yes, I know. I think I have the mathematical background. With the known recursions and generating functions, I should at least be able to calculate the numbers without knowing the partitions themselves.
The problem is just for fun, not a real problem. Hence I will just solve it with smaller numbers for n, k, m.