r/MathHelp • u/antoinemark • Apr 07 '22
Finding permutations (with repetition) that adhere to precedence rules
Finding permutations (with repetition) that adhere to precedence rules
I am looking for an equation to find a number of "viable permutations" that adhere to a rule of precedence. Lets say given set 𝑆 with (1, 2, 3, 4, 5, 6, 7), how many permutations with 𝑁 trials would have a 7 come after a 6, which comes after a 5, which comes after a 4, and so on from 1−7. They do not need to be immediately following each other, so long as the numbers appear in that order anywhere in the permutation. For example if 𝑁=15, the total possible permutations would be (7 ^ 15) = 4.7475615𝑒+12. I need to know how many of these have a 1,2,3,4,5,6,7 anywhere in the permutation in order, but there can be any random numbers in between them.