Thoth,
Just writing to let you know, I'm still working this one out in my mind. Also, I will be gone for a few days on other projects. I'll check now and then to see what's going on, but probably won't have much time to post. Anyway, I want to pass on a few thoughts about the problem you restated. That helped me understand it more. I actually worked on something similar to this a while ago. It had to do with finding the basic permutational forms for Pick 1 through Pick N, N being any quantity of selections from the set of numbers 0 to 9. I found that when I gone past Pick 10, an interesting problem arose and it's closely relates to the problem you're trying to solve. The problem has to do with the assigning of variables to the problem. In any other math problem, you can add as many variables as you'd like, because typically there are an infinite set of numbers to use; mainly the set real numbers. In this case, we can't do that. We are dealing with a finite set of numbers and are restricted as to how many variables we can assign. The set of finite numbers are {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}. The most variables we can assign are {A, B, C, D, E, F, G, H, I, J}.
When I did the work out for Pick 10 I had no problem. I was able to get all 512 basic permutational forms. However, when trying to do the work out for Pick 11 there was a computational problem. It had to do with taking 10 numbers 11 at a time. If you think about this, you can see this is impossible. After a few hours, a few beers, and a few nights rest, I realized the solution. The problem has to do with repetition. A question came to mind, "If all the numbers are different for the first 10 selections, what happens on the 11th selection?" I realized the no matter what number is selected, it will be the same number of at least 1 of the other 10. That's why the computation fail, I had used up all the available numbers in the set. So, assigning another variable would not work. I'd just be repeating 1 of the numbers. Solution, assign the 11th variable to be the same as 1 of the previous 10. I this case for Pick 11, the permutation is now a permutation of a permutation and would expand to a permutation of a permutation of a permutation in fractals of 10 for higher values Pick N.
Well, I hope that's some insight to what I'm thinking about. I'll get back with you later.