把n个球放在3个盒子里有3^n个方法;把n个球放在3个盒子中的2个有3*2^n种方法;把n个球放在3个盒子中的1个有3*1^n种方法。所以要求3个盒子都有球就是(3^n-3*2^n+3*1^n)。这3个盒子不可区分,所以再除以6。
我猜
所有跟帖:
•
Thanks. It appears that this problem is simpler
-endofsuburbia-
♂
(126 bytes)
()
01/19/2009 postreply
10:50:06
•
don't you think
-passenger101-
♂
(109 bytes)
()
01/19/2009 postreply
14:14:56