C is for Cookie

Ten identical cookies are to be distributed among five different kids (A, B, C, D, and E). All 10 cookies are distributed. How many different ways can the five kids be given cookies?

108 Comments

  1. Steven Miller on November 28, 2016 at 11:41 pm

    I was hoping that was it — I can’t go that many hours without checking!

    I try not to have the solns posted as that can ruin the fun

    if you have any solns you want me to see, just email me at sjm1 AT williams.edu



  2. Tyson on November 28, 2016 at 11:37 pm

    sorry about that, I haven’t checked my email.



  3. Steven Miller on November 28, 2016 at 11:25 pm

    This is not correct. If you have a solution, PLEASE do not post it, but rather email me at sjm1 AT williams.edu; I will not post correct solutions as it can spoil the fun of others. If you think you got one, you may email me and I will let you know.



  4. Tyson on November 28, 2016 at 10:10 pm

    tried 5*4*3*2*1 = 120 times the 10 cookies gets 1200… anywhere close?



  5. Steven Miller on June 7, 2016 at 4:41 pm

    no as all that matters is how many cookies you get not which ones you get



  6. Chris on June 7, 2016 at 3:32 pm

    Is it just 5^10 as there is no condition that each of the five kids get a cookie? Therefore, each of the 10 cookies can be distributed five ways each.



  7. Steven Miller on November 18, 2015 at 5:10 am

    Paul Hanash: please email me at sjm1 AT williams.edu for the faster soln



  8. Steven Miller on October 10, 2015 at 12:56 am

    Tried to email you but it bounced — shoot me an email at sjm1 AT williams.edu



  9. step by step maths on October 8, 2015 at 10:26 pm

    I just want to check if i’m thinking along the right lines – could we use factorials and binomial theorem here? or i suppose this doesn’t apply if each kid can get more that 1 cookie?



  10. Steven Miller on January 15, 2013 at 6:33 pm

    Email to you bounced — email me direct at sjm1 AT williams.edu //s



  11. Kelly Palmer on January 15, 2013 at 4:45 pm

    Solution please



  12. Steven Miller on November 28, 2012 at 3:04 am

    no trades allowed, all that matters is how many you get not which



  13. Steven Miller on November 28, 2012 at 3:04 am

    it’s possible some kids get no cookies. it’s possible someone gets all 10. email me at sjm1 AT williams.edu to chat more



  14. Jason on November 28, 2012 at 2:34 am

    Are we considering each person getting two cookies as one possible distribution? If we gave each kid two cookies and then kid A traded his cookies for kid B’s cookies, do we consider this to be another unique distribution?



  15. Jason on November 28, 2012 at 2:30 am

    Does each kid get a least one cookie? Can the first kid get all ten?



  16. Steven Miller on November 22, 2012 at 5:30 pm

    no, about 5 times less — you can email me at sjm1 AT williams.edu



  17. Anonymous on November 22, 2012 at 6:51 am

    is 5544 the answer?



  18. Antonis Kordas on November 14, 2012 at 8:17 pm

    reminds me another puzzle. you have 20 basketball players and you are asked to find in how many different ways you can divide them in four teams of five players each. are the solutions similar?? please send me a hint or the solution for both as i cant seem to figure out anything. thanks.



  19. Steven Miller on November 6, 2012 at 4:17 am

    dez: email me at sjm1 AT williams.edu



  20. Steven Miller on October 6, 2012 at 12:57 am

    well done! (sjm1 AT williams.edu)



  21. Steven Miller on August 17, 2012 at 1:27 pm

    that would be the soln of the number of ways to give cookies to ONE person IF the cookies were distinguishable. If the cookies are distinguishable it’s 5^10; hwoever, the cookies are all identical; all that matters is how many one receives, not which ones. (sjm1 AT williams.edu)



  22. mukhtar on August 17, 2012 at 12:09 pm

    2^10. i think years ago my teacher told me if you want to make combination with for example X numbers then the answer is 2^X.
    if its not right email me a hint.
    cheers



  23. Steven Miller on August 14, 2012 at 3:31 am

    your email didn’t work — email me at sjm1 AT williams.edu — wrong answer here



  24. Xiong on August 14, 2012 at 3:28 am

    A(10), B(9), C(8), D(7), E(6). 10x9x8x7x6 = 30240 ways



  25. Steven Miller on July 20, 2012 at 3:12 pm

    no — all that matters is how many cookies a person gets, not which cookies someone gets. if that were the case, then yes, it would be 5^10.



  26. Stephanie on July 20, 2012 at 10:59 am

    Is it 5^10? Each cookie has 5 potential “places” it could go…



  27. Steven Miller on July 19, 2012 at 3:15 am

    ok



  28. Felicia on July 19, 2012 at 3:09 am

    I have read every comment and I have tried to solve this, please send solution. Thanks.



  29. Steven Miller on July 8, 2012 at 4:24 am

    amel: correct, well done — you can email me at sjm1 AT williams.edu to chat about it. ..s



  30. Amel Okicic on July 8, 2012 at 4:13 am

    252



  31. Steven Miller on July 5, 2012 at 2:06 am

    sure /s



  32. javiera on July 4, 2012 at 9:34 pm

    Can you send me the solution and explain it to me pls?, my brain is tired 🙁



  33. Steven Miller on May 17, 2012 at 12:41 pm

    you’re on the right track, but it’s not 10C5 = 252
    email me at sjm1 AT williams.edu to chat more



  34. jake on May 17, 2012 at 12:15 pm

    10C5



  35. Steven Miller on May 2, 2012 at 1:08 pm

    close, but not quite right. email me at sjm1 AT williams.edu if you want to chat /s



  36. Anonymous on May 2, 2012 at 10:54 am

    1020?



  37. Steven Miller on April 13, 2012 at 6:06 pm

    VERY close, but as often happens in problems like this is you missed a few cases. There’s a way to look at this in one line, and that gives the answer. I solved it that way, and unfortunately this means I don’t know the counts for the different configurations, so I can’t tell where you went wrong. Email me at sjm1 AT williams.edu for the soln.



  38. Erwin Agasi on April 13, 2012 at 6:03 pm

    I come up with the following, what am I missing?

    (10,0) = 5
    (9,1) 5×4 = 20
    (8,2) 5×4 = 20
    (8,1,1) 5x(3+2+1) = 30
    (7,3) 5×4 = 20
    (7,2,1) 5x4x3 = 60
    (7,1,1,1) 5×4 = 20
    (6,4) 5×4 = 20
    (6,3,1) 5x4x3 = 60
    (6,2,2) 5x(3+2+1) = 30
    (6,2,1,1) 5x4x3 = 60
    (6,1,1,1,1) = 5
    (5,5) 4+3+2+1 = 10
    (5,4,1) 5x4x3 = 60
    (5,3,2) 5x4x3 = 60
    (5,3,1,1) 5x4x3 = 60
    (5,2,2,1) 5x4x3 = 60
    (5,2,1,1,1) 5×4 = 20
    (4,4,2) 5x(3+2+1) = 30
    (4,4,1,1) (4+3+2+1)x3 = 30
    (4,3,3) 5x(3+2+1) = 30
    (4,3,2,1) 5x4x3x2 = 120
    (4,3,1,1,1) 5×4 = 20
    (4,2,2,2) 5×4 = 20
    (4,2,2,1,1) 5x(3+2+1) = 30
    (3,3,3,1) 5×4 = 20
    (3,3,2,1,1) 5x(3+2+1) = 30
    (2,2,2,2,2) = 1

    +
    951



  39. Steven Miller on March 30, 2012 at 5:09 pm

    No, much lower. //s



  40. Yehuda on March 30, 2012 at 5:09 pm

    9! Factorial



  41. Steven Miller on March 30, 2012 at 4:47 pm

    What if instead I said we had to distribute 4 cookies among 5 people? Then there’s no way everyone gets one. That said, the answer isn’t 525 in any of these interpretations. I’ll send along my answer. //s



  42. scott on March 30, 2012 at 4:44 pm

    if u read teh question literally and it says distributed by 5 kids, (that means 5 kids in every scenario) would teh answer be 525?



  43. Steven Miller on March 30, 2012 at 4:42 pm

    I believe it’s 126 if each must get at least 1.



  44. scott on March 30, 2012 at 4:40 pm

    is the answer 275? the zero was relevant, I added 1-10=55 multiply by 5 equals 275, that assumes some kids were not given a cookie some of the time, i read teh riddle to be all kids must get a cookie.



  45. Steven Miller on March 30, 2012 at 4:38 pm

    you can consider a modified problem where each kid must get at least one cookie. you get a different answer in that case, but the same ‘fast’ technique works there too….



  46. scott on March 30, 2012 at 4:34 pm

    shouldnt the possible amount per kid be 10, not 11? Teh problem says teh cookies will be given to 5 students, if you skip a student (ie a zero) than you would be using four students in some counts and five in others. If you use 11 as the number than you arent really giving cookie/s to all children



  47. Steven Miller on March 28, 2012 at 11:44 pm

    I’m not seeing how this is the number for each kid, nor why you can just multiply by 5 (there’s a big danger of double counting). You’re close (within 200). Email me at sjm1 AT williams.edu if you want the soln / hint.



  48. Anonymous on March 28, 2012 at 9:14 pm

    I took all possibilities for one kid and it gave me 5*9+5*8+…+5*1=225
    Then I multiplied that by the number of kids and I got 1125. Pretty close but something doesn’t feel right I guess 😛



  49. Steven Miller on March 27, 2012 at 6:30 pm

    higher….



  50. sauravshakya on March 27, 2012 at 11:24 am

    252



  51. Steven Miller on March 27, 2012 at 4:05 am

    I’m not following all of your logic as to how you get these numbers. I’ll send my soln. //s



  52. Steven Miller on March 27, 2012 at 3:57 am

    Sorry, a bit too low. Email me at sjm1 AT williams.edu to chat more. //s



  53. sauravshakya on March 27, 2012 at 3:43 am

    240



  54. NefariousDestiny on March 27, 2012 at 2:17 am

    I got 971. Here’s my reasoning…

    I worked out the combinations for 1 cookie up to four cookies by hand and categorized them by the first cookie recipient. For example, with 1 cookies, “20000” goes in category 1, while “02000” goes in category 2. The digits represent how many cookies went to each kid.

    1 Cookie – 1 + 1 + 1 + 1 + 1 = 5 combinations.
    2 Cookies – 5 + 4 + 3 + 2 + 1 = 15 combinations
    3 Cookies – 15 + 10 + 6 + 3 + 1 = 35 combinations
    4 Cookies – 35 + 20 + 10 + 4 + 1 = 70 combinations

    Here I noticed a pattern. The number of combinations in the previous cookie # was the number of combinations in the next cookie #’s first category. The last category always had 1. The second category rose by 1’s. The 3rd category rose by whatever is in the 2nd, the 4th by whatever is in the 3rd, and the 5th by whatever is in the 4th.

    I tested the pattern with 5 cookies, and it worked. I went ahead and went up to 10 cookies.

    5 Cookies – 70 + 35 + 15 + 5 + 1 = 126
    6 Cookies – 126 + 56 + 21 + 6 + 1 = 210
    7 Cookies – 210 + 84 + 28 + 7 + 1 = 330
    8 Cookies – 330 + 110 + 36 + 8 + 1 = 485
    9 Cookies – 485 + 155 + 45 + 9 + 1 = 695
    10 Cookies – 695 + 210 + 55 + 10 + 1 = 971

    I’m confused as to how the answer is [[deleted]] combinations. If you could email me the solution, thatd be great.



  55. Steven Miller on March 26, 2012 at 3:29 pm

    Nope, a bit higher….



  56. sauravshakya on March 26, 2012 at 1:01 pm

    120



  57. Steven Miller on February 28, 2012 at 4:56 pm

    no. we could give all the cookies to one person (5 ways of doign this), or 9 cookies to 1 person and 1 to another (20 ways of doing this), …. There is a better approach.



  58. Jake on February 28, 2012 at 8:48 am

    Is it just 1 because all the cookies are identical?

    Sorry if this is a stupid comment…



  59. Steven Miller on February 18, 2012 at 2:07 am

    It’s not a permutation, but there is a combinatorial interpretation. /s/



  60. skylar on February 18, 2012 at 12:14 am

    permutation???? 10x9x8x7x6x5x4x3x2x1 = 3228800
    or maybe 10*9*8*7*6*5/(5!) ?
    that equals
    151200/120= 1260 combos



  61. skylar on February 18, 2012 at 12:07 am

    permutation???



  62. Steven Miller on February 10, 2012 at 2:05 am

    just a little lower, will email ..s



  63. leah on February 10, 2012 at 2:04 am

    i keep getting between 1010 and 1030.



  64. Steven Miller on December 22, 2011 at 9:52 pm

    It’s a little higher….



  65. Kamal on December 22, 2011 at 5:52 am

    I keep getting 951. Is that correct?



  66. Steven Miller on December 11, 2011 at 2:12 am

    It’s almost 5 times higher



  67. Andrew on December 11, 2011 at 12:53 am

    200 is what i’m going with



  68. Steven Miller on December 7, 2011 at 1:49 am

    nope — almost twice as high



  69. Steven Miller on December 7, 2011 at 1:44 am

    sadly your brain needs more time in the oven, as it isn’t quite cooked enough! let me know if you want a hint.



  70. Brandon on December 6, 2011 at 11:39 pm

    (11 !) / ((5 !) * (4 !) * (3 !) * (2 !)) = 1 155

    Please tell me that’s right, my brain is cooked.



  71. Brandon on December 6, 2011 at 11:26 pm

    462?



  72. Steven Miller on December 5, 2011 at 2:22 am

    to Lee: correct, well done! Not posting this as it’s the soln.



  73. Steven Miller on December 1, 2011 at 6:42 pm

    all that matters is how many cookies one gets, not which cookies. 11^5 is wrong. you might try 5^10, as each cookie is assigned to one of 5 people, but the issue there is that this makes each cookie ‘special’ or ‘distinguishable’. email me at [email protected] if you want more of a hint.



  74. SirMordred on December 1, 2011 at 6:28 pm

    Well… if A can receive from 0 to 10 cookies… there are 11 possibilities for that child. Each child has at least 11 possibilities. If there are 5 children… then it looks like it would just be 11^5. That seems too simple though… hmm… I can’t think of anything else.



  75. Steven Miller on November 26, 2011 at 1:40 am

    It’s a bit harder and more complicated than that — email me at [email protected] if you want a hint



  76. Rudi on November 25, 2011 at 11:51 am

    Well, I assume the answer is simple. You just have to check the number of possibilities you may distribute the cookies to each… So, if the number of cookies is 10 and five kids, the answer is 10x9x8x7x6=30240



  77. Steven Miller on November 24, 2011 at 1:46 am

    Personal: correct! not posting as it’s the soln



  78. Luis on November 17, 2011 at 3:45 pm

    1024?



  79. Steven Miller on October 30, 2011 at 10:15 pm

    that’s a little high — I have slightly above 1000.



  80. Shreya on October 30, 2011 at 4:06 pm

    I tried it and came up with the answer 1260



  81. Steven Miller on October 25, 2011 at 1:59 am

    Noah: correct (well done!)



  82. Steven Miller on October 10, 2011 at 2:38 pm

    Not quite. It’s almost 300 left. Your method seems to double count. Remember that each person only cares how many cookies they get, not which ones. If you know binomial coefficients, think partitions….



  83. Shahzeb on October 10, 2011 at 2:24 pm

    I think the answer is 1331 which is 11 x 11 x 11 x 11. Am i right? If not please email the hint to me.



  84. Steven Miller on October 6, 2011 at 1:11 am

    close, but just a little high



  85. Al on October 5, 2011 at 10:50 pm

    1028



  86. Steven Miller on October 5, 2011 at 2:06 am

    Is the problem keeping them interested, or starting the problem?

    One way to make it interesting is to bring in cookies.

    One thing I’d love to do is fine applications for various riddles. If you’re interested in helping
    that would be great — I’m swamped now but am trying to assemble a team, where each person would
    take / research one riddle.

    It turns out the answer is a binomial coefficient, and a very interesting one too. Maybe give that
    as a hint, do some smaller numbers of cookies and people and see if you can ‘guess’ the answer.
    math related to this is used to calculate the number of winning lottery tickets *IF* you can use
    the same numbers again and again. It’s also used to study some problems in Diophantine analysis /
    number theory. What we’re really doing is trying to solve x_1 + … + x_5 = 10 subject to each x_i
    is a non-negative integer. In other words, trying to decompose a big number into smaller ones, and
    interested in how many ways there are to do this. This has applications to physics / statistical
    mechanics!



  87. ann on October 4, 2011 at 7:53 pm

    I am trying to do this with 6th graders and am having a hard time getting them interested. Is there a way I can start them off on the right track without giving them the answer. I think I took on more than either I or the students can handle but don’t want to give up on this. Ideas??



  88. Steven Miller on October 3, 2011 at 1:39 am

    you’re on the right track, but overanalyzing

    just look at how many ways you can place divisors. it’s easier to add some
    cookies and eat them, thus creating divisors. how many cookies to add…?



  89. Jon on October 3, 2011 at 1:02 am

    If we line the cookies up in a row and use 4 dividers to split the cookies up into 5 groups we can determine the number of cookies for each kid. I split the possibilities into 5 cases and solved each. The first case is that all 4 dividers are separate (11!/(7!4!)). The second case is that 2 of the dividers are together (11!/8!). The third case is that there are 2 sets of 2 dividers (11!/(9!2!)). The fourth case is a set of 3 dividers together and a third by itself (11!/9!). The fifth and final case is having all the dividers together or (11!/10!). After summing the 5 cases I get 1496 possibilities. Is this correct?



  90. Steven Miller on October 2, 2011 at 2:44 pm

    Nope, less than that.



  91. Al on October 2, 2011 at 1:52 pm

    is it 2556



  92. Steven Miller on September 30, 2011 at 12:33 am

    That’s the right answer, but each kid doesn’t have to have a cookie.



  93. The prime on September 29, 2011 at 10:43 pm

    If it does require each kid must have a cookie then it’s 1001.



  94. Steven Miller on September 29, 2011 at 7:32 pm

    It’s more than 126 (it’s over 1000).



  95. The prime on September 28, 2011 at 8:29 pm

    The answer is 126. Using star and bar.



  96. Steven Miller on September 12, 2011 at 2:19 am

    *IF* the cookies were distinguishable, yes, this would be the solution; however, at the end of the day you can’t tell WHICH cookies you have, only how many.



  97. Shane on September 11, 2011 at 5:12 pm

    Doing this on a cookie by cookie basis, number the cookies 1 to 10. For each cookie there are only 5 choices and since the cookie has to go to somebody, there are 5 ways to hand out the first cookie. This is the case for a single cookie. For the second cookie, you again have 5 choices for whom to give it to, so n=2 gives 5² ways to distribute the cookies. For 10 cookies then there are 5^10 ways to distribute them, and for n cookies there are 5^n ways to distribute them.



  98. Steven Miller on August 31, 2011 at 5:59 pm

    Not quite. You’ve made two errors. Remember that if I get cookies 1 and 2 or cookies 4 and 10, I can’t tell the difference. What you’ve done has the cookies as distinct and labeled. IF you were to take this approach, the final answer would be 5^10, though, and not 5*10.



  99. JE on August 31, 2011 at 5:56 pm

    The answer is 50. Assume that there are ten separate events occurring. Each event is the exact same as all the others. The event is defined by 1 cookie being thrown into a group of five kids. Each event has 5 possible arrangements (the cookies could go to only one of the five kids). Since there are ten events, with 5 possible arrangements for each event, then there are 10(5) total arrangements. This yields 50 total possible arrangements.



  100. Steven Miller on August 22, 2011 at 4:42 am

    Not quite.



  101. K on August 22, 2011 at 3:43 am

    Could it be 11 x 10 x 9 = 990? Since each child can have 0 – 10 cookies, so each child has 11 different number of cookies to get?



  102. Steven Miller on August 18, 2011 at 5:59 pm

    you’re on the right track
    but what if you put two dividers next to each other?



  103. Linh on August 18, 2011 at 4:38 pm

    Number the cookies from 1 to 10. Lay them down in a roll:
    1,2,3,4,5,6,7,8,9,10

    Pretend that there are 4 barriers that you can place anywhere in between 2 of these cookies or the beginning of the roll or the end of the cookie roll so that what ever to the left of the i-th barrier will be distributed to the i-th kid. And the remaining cookies would be distributed to the last kid.

    There are 11 spaces to place the barriers and there are 4 barries to place so 11^4 total possible combinations.



  104. Steven Miller on July 12, 2011 at 2:21 am

    Yair.K: great logic, absolutely correct. Not posting it as it gives the solution.



  105. Steven Miller on July 2, 2011 at 1:18 am

    This isn’t quite right. Not sure how you’re getting the 45 possibililties for each child. Each child has 11 possibilities, from 0 to 10; however, the children are not independent (if one has 9 the others can have at most 1). If you want more hints / info, email me at sjm1 AT williams.edu.



  106. Madeline on July 1, 2011 at 9:46 pm

    I got 225, because I found that each child had 45 possibilities. 1,2 1,3 1,4 1,5 1,6 1,7 1,8 1,9 1,10 2,3 2,4 2,5 2,6 2,7 2,8 2,9 2,10 3,4 3,5 3,6 3,7 3,8 3,9 3,10 4,5 4,6 4,7 4,8 4,9 4,10 5,6 5,7 5,8 5,9 5,10 6,7 6,8 6,9 6,10 7,8 7,9 7,10 8,9 8,10 9,10
    I multiplied 45 times the 5 children.
    Or…wait…should I do 45^5????????



  107. Steven Miller on June 6, 2011 at 1:19 am

    No, not quite right. Each child has 11 possibilities, ranging from 0 to 11. If they were all independent, the answer would be 11^5. Unfortunately, they’re not independent, which is what makes this problem hard. For example, if I have 8 cookies, no one can have more than 2. Further, the number of cookies must sum to 10. There *IS* a way to do this in one line, if you can find the right way to look at the problem. This is one of my favorite riddles, and is related to some great problems in additive number theory and combinatorics.



  108. Carter on June 6, 2011 at 12:26 am

    450? I got this because I think: Each child has 90 possibilities (10,1;10,2; ect) and there are five children. So 90*5=450



Leave a Comment