I don't know if I'm in the correct section for this question, so admin. may want to move it to another.
I am wondering if a formula can be devised (ie., not a computer program, but a formula that can be solved on a scientific calculator.)
I have certain objects, let's say marbles, to be arranged in a row. The formula will take into account (3) variables concerning these marbles. The 1st variable will be the number of sizes available per marble. The 2nd variable will be the number of marbles used in the row. At this point, without a 3rd variable, the number of combinations is a simple exponent problem.
The 3rd variable is the kicker: There is a limitation to the size difference between adjacent marbles. For example, take (5) marbles, with (5) sizes per marble, but with a maximum adjacent marble size difference of (2). This reduces the total number by about half. I can figure the answer out by progressing each combination by hand, but it takes forever. Especially when I would be using real-life examples of (5) to (8) objects, with (8) to (12) sizes per object.
I am wondering if a formula can be devised (ie., not a computer program, but a formula that can be solved on a scientific calculator.)
I have certain objects, let's say marbles, to be arranged in a row. The formula will take into account (3) variables concerning these marbles. The 1st variable will be the number of sizes available per marble. The 2nd variable will be the number of marbles used in the row. At this point, without a 3rd variable, the number of combinations is a simple exponent problem.
The 3rd variable is the kicker: There is a limitation to the size difference between adjacent marbles. For example, take (5) marbles, with (5) sizes per marble, but with a maximum adjacent marble size difference of (2). This reduces the total number by about half. I can figure the answer out by progressing each combination by hand, but it takes forever. Especially when I would be using real-life examples of (5) to (8) objects, with (8) to (12) sizes per object.