I am trying to find out if there is a mathematical function which can take n objects and place them in m boxes in a way that is indexed?
For example if I had 3 balls and I wanted them in 4 boxes, the function would generate something like: f_1(3,4) = (1,1,1,0), f_2(3,4) = (1,1,0,1), other f_i(3,4)'s (1,0,1,1),(0,1,1,1),(2,1,0,0),(1,2,0,0),(2,0,1,0),(1,0,2,0),(2,0,0,1),(1,0,0,2),(3,0,0,0),(0,3,0,0),(0,0,3,0), f_N(3,4) = (0,0,0,3).
Then if I wanted a specific permutation I could get f_i(3,4).