数学吧 关注:930,024贴子:8,910,025
  • 5回复贴,共1

【概率论与数理统计】问道课本上的题目

只看楼主收藏回复

在n个项目(a1,a2,...an)里面选k个,有放回,选出的k个项目无顺序,那么这k个项目总共有多少种不同的组合?
课本上的课后题,答案是C(n+k-1,k)
但是为什么是这个答案呢?
求各位告诉我~
谢谢啦~


1楼2015-09-15 13:38回复
    原题目:19. Arestaurant has n items on its menu. During a particular
    day, k customers will arrive and each one will choose
    one item. The manager wants to count how many different
    collections of customer choices are possible without
    regard to the order in which the choices are made.
    (For example, if k = 3 and a1, . . . , an are the menu items,
    then a1a3a1 is not distinguished from a1a1a3.) Prove that
    the number of different collections of customer choices is n+k−1
    k
    . Hint: Assume that the menu items are a1, . . . , an.
    Show that each collection of customer choices, arranged
    with the a1’s first, the a2’s second, etc., can be identified
    with a sequence of k zeros and n − 1 ones, where each 0
    stands for a customer choice and each 1 indicates a point
    in the sequence where the menu item number increases
    by 1. For example, if k = 3 and n = 5, then a1a1a3 becomes
    0011011.


    2楼2015-09-15 13:41
    回复
      2025-12-04 12:54:46
      广告
      不感兴趣
      开通SVIP免广告
      看不懂,感觉像排列组合


      IP属地:贵州来自Android客户端3楼2015-09-23 08:08
      回复
        同问


        4楼2015-10-13 23:11
        回复
          每一种选择都可以描述成x1个a1,x2个a2,...,xn个an(x1+x2+...+xn=k),也可以写成以下序列的形式:
          (x1个0) 1 (x2个0) 1 ... 1 (xn个0)
          容易证明这种从选择到含n-1个1与k个0的序列的对应关系是一一对应的,因此选择数就是含n-1个1与k个0的序列数。


          IP属地:北京5楼2015-10-14 00:37
          回复


            来自Android客户端6楼2015-10-14 06:48
            回复