飛魚問題的答案全解

Identical toys to five dogs.

Five situations

1. pick only one dog to have all 5 toys: C(5,1) = 5
2. pick two dogs to distribute 5 toys: C(5,2)*(C(2,1) + C(2,1)) = 40
3. Pick three dogs to distribute 5 toys: C(5,3) * (C(3,1) + C(3, 2)) = 60
4. Pick four dogs to distrubte 5 toys: C(5,4) * C(4,1) = 20
5. Pick five dogs to distribute 5 toys: C(5, 5) = 1

total = 126

Non-identical toys to five dogs

When toys are non-identical, it is simular. We just need to add permutation to the above situations: P(5,5). in the mean time, we need to
 exclude permutation from one dog having multiple toys and permuation of toys on the same dog needs to be excluded.

Five situations:

1. pick only one dog to have all 5 toys: C(5,1) * P(5,5) / P(5,5) = 5
2. pick two dogs to distribute 5 toys: C(5,2)*(C(2,1) * P(5,5) / P(4,4) + C(2,1) * P(5,5)/(P(3,3)*P(2,2)) = 300
3. Pick three dogs to distribute 5 toys: C(5,3) * (C(3,1) * P(5,5)/P(3,3) + C(3, 2) * P(5,5) / (P(2,2)*P(2,2)) = 1500
4. Pick four dogs to distrubte 5 toys: C(5,4) * C(4,1) * P(5,5) / P(2,2) = 1200
5. Pick five dogs to distribute 5 toys: C(5, 5) * P(5,5) = 120

Total = 3125

It is the identical logic to go from identical toys to non-identical toys. The only thing that is needed is to add the permutatin carefully
to the equation and exclude the wrong permutation.

 

所有跟帖: 

隻談比賽,不談友誼 -73888- 給 73888 發送悄悄話 (98 bytes) () 03/06/2014 postreply 13:50:54

9!/5!4!,這個解答很妙。 -FHZM- 給 FHZM 發送悄悄話 FHZM 的博客首頁 (0 bytes) () 03/06/2014 postreply 16:00:15

不錯。今天跟你們一起玩了一下數學。準備重新複習一下高中數學以後好給兒子當家教。嗬嗬。 -蒙得- 給 蒙得 發送悄悄話 蒙得 的博客首頁 (0 bytes) () 03/06/2014 postreply 13:21:08

切磋,哈哈。 -FHZM- 給 FHZM 發送悄悄話 FHZM 的博客首頁 (0 bytes) () 03/06/2014 postreply 16:01:24

老F,PB也好,以前估計學校成績都不錯的。嗬嗬。不過。30歲以後就不談學校成績了。 -知人知麵- 給 知人知麵 發送悄悄話 知人知麵 的博客首頁 (0 bytes) () 03/06/2014 postreply 13:59:11

嗯,現在解高中奧數很溜的估計是混得不好 -73888- 給 73888 發送悄悄話 (179 bytes) () 03/06/2014 postreply 14:04:17

30歲以後就談 25歲 時抄房 賺20萬 :-) -ManOfHonor- 給 ManOfHonor 發送悄悄話 (0 bytes) () 03/06/2014 postreply 14:06:35

四十以後還一心想靠老前輩提攜, 怪不得你沒麗麗進步快。 看看, 人家去年就體製內了。 -去看北極光- 給 去看北極光 發送悄悄話 (0 bytes) () 03/06/2014 postreply 18:54:38

嗬嗬, 第二種F兄想的太複雜, 五的五次方就是3125。 不過佩服F兄思路清晰。 -去看北極光- 給 去看北極光 發送悄悄話 (0 bytes) () 03/06/2014 postreply 16:56:09

普施們哪怕有一半的功力, 也就不會那麽天真了。 -去看北極光- 給 去看北極光 發送悄悄話 (0 bytes) () 03/06/2014 postreply 16:57:25

哈哈,好解。 -FHZM- 給 FHZM 發送悄悄話 FHZM 的博客首頁 (0 bytes) () 03/06/2014 postreply 17:39:53

請您先登陸,再發跟帖!