I am wondering if Sage has some functions to generate the below given N,K (both are non-neg ints), return a set of tuples (n1...nk) such that ni >= 0 and sum(ni)= N.
So if N=5,k=2, then there are 6 tuples (5,0) (4,1) ... (0,5) . Is there a name for this problem ? what is the # of tuples for the given N,K ? thanks, -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To view this discussion on the web visit https://groups.google.com/d/msg/sage-combinat-devel/-/iYnMFm4-UOcJ. To post to this group, send email to sage-combinat-devel@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.