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-
♀
(98 bytes)
()
03/06/2014 postreply
13:50:54
•
9!/5!4!,这个解答很妙。
-FHZM-
♂
(0 bytes)
()
03/06/2014 postreply
16:00:15
•
不错。今天跟你们一起玩了一下数学。准备重新复习一下高中数学以后好给儿子当家教。呵呵。
-蒙得-
♂
(0 bytes)
()
03/06/2014 postreply
13:21:08
•
切磋,哈哈。
-FHZM-
♂
(0 bytes)
()
03/06/2014 postreply
16:01:24
•
老F,PB也好,以前估计学校成绩都不错的。呵呵。不过。30岁以后就不谈学校成绩了。
-知人知面-
♂
(0 bytes)
()
03/06/2014 postreply
13:59:11
•
嗯,现在解高中奥数很溜的估计是混得不好
-73888-
♀
(179 bytes)
()
03/06/2014 postreply
14:04:17
•
30岁以后就谈 25岁 时抄房 赚20万 :-)
-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-
♂
(0 bytes)
()
03/06/2014 postreply
17:39:53