in reply to Parens permutations
Problem number 1: The equation to determine the number of permutations seems to change with p.
p = 1
permutations = ((n2 + n)/ 2)
p = 2
let k = ((n2 + n)/ 2)
permutations = ((k2 + k)/ 2)
Second problem: There can be some ambiguity in what we are actually grouping:
Can be seen as either 1 & 3 + 2 or 1 & 2 + 2 & 3. This breaks the formula for p = 2 since:(1 (2) 3)
is not correct as barrachois pointed out - it is actually 20 since two permutations, while different, look the same.p = 2 n = 3 k = 6 permutations = 21
I didn't bother going any further than this to see if the simple formulas for different values of p could be generalized.
Sorry - L~R
|
---|