I'm not 100% sure what the Q is looking for, but if it counts 1222222 and 21222222 as two different arrangements (hence ordered) then its:
6^7
otherwise, wouldn't you have to build for every condition of the combination. and then add them i.e.
all 7 the same: 6 diff combs * (7!/7!)
6 same + 1 diff = (7!/(1!*6!)) * 6
5 same + 2 same = 7!/(2!*5!) * 6
...
and then for all of the different permutations? That looks like a beast. Any comments



LinkBack URL
About LinkBacks
to arrive at the answer.







Reply With Quote

Bookmarks