Estimate number of permutations with unknown number of variables

60 Views Asked by At

I need to estimate the number of possible permutations of a problem.

A way to do this, I suspect, is to randomly generate a decent amount of problems, and then find out how many were repeated. If there are a few repeated problems, then I know the number of permutations is high, and if there are a lot, then it's closer to the number of generated problems.

An example problem:

Enter the degree of the polynomial:

$-6y^2 + 2x^3 + 3x^2 - 4y^5$

Now imagine the exponents are randomly chosen numbers in a range: $n_1, n_2, n_3, n_4$. Every time I click a button, the problem is randomly generated.

$-6y^{n_1} + 2x^{n_2} + 3x^{n_3} - 4y^{n_4}$

What I want to do is estimate the number of possible permutations of this problem. How do I do that?

I need a general solution that I can apply to a bunch of different problems, some may have more variables.

Another example:

Ann has 10 apples and 5 friends. What's the highest number of apples she can give to each friend if she wants all of them to have the same number of apples.

The name Ann can be randomly chosen from a set of names (Ann, Ron, Rose, Joe, etc). The number of apples is random between 10 and 20. The fruit is also random (apples, oranges, bananas, etc), and the number of friends y also random between 3 and 7).

Whenever I press a button I get a randomly generated problem. Pressing the button many times ends up getting repeated problems. I suspect I can estimate the number of possible problems by generating a lot of random problems and seeing what's the rate of repetition. Is this true? If it is, do you know how?