2010-01-24

排列組合

We are given a red box,a blue box,and a green box.We also have 10 red balls,10 blueballs,and 10 green balls.Balls of the same color are considered identical.
Consider the following constraints:
(1) No box contains a ball that has the same color as the box
(2) No box is empty

請問這題怎麼解比較好呢?


謝謝

2 則留言:

Chesley 提到...

利用生成函數解一種顏色的球,再三次方即為所求

pai 提到...

感謝,沒想到用生成函數@@
直接用排列組合似乎太麻煩