RE: Mathematial Problem
I don't know if you're doing this, but if there are repeated letters there is a formula for it.
eg. AAABB
n = total letters = 5
x = no. of As = 3
y = no. of Bs = 2
number of permutations formula = n! divided by (x! * y!) where x and y are the number of times the repeated letters occur.
n! = 5*4*3*2*1 = 120
x! = 3*2*1 = 6
y! = 2*1 = 2
120/(6*2) = 120/12 = 10 permutations
Don't know if you need that and sorry if i didn't explain it well enough, but it might come in handy.
Just to explain a bit more, say you had the word AAAABBBCCD
n = 10 (total letters)
w = 4 (number of As)
x = 3 (number of Bs)
y = 2 (number of Cs)
z = 1 (number of Ds)
formula = n! / (w!*x!*y!*z!)
= 10! / 4!*3!*2!*1!
= 3628800 / 288
= 12600 permutations
This post was edited on 01-04-2006 at 12:09 AM by Zephyr.
|