Hi, Given that u need to split 23 into 6 parts. Its all about placing "+" with 24 spots( wit 23 "1's" )(6 ,5...0). So, the answer is
Description : 1 1 1 1 1 1 1 1 1 1 1 1 ...... 1 + + ........................+ 1. Sharing with just one means there is no "+" -> 24 C 0 2. Sharing with just two means there is 1 plus -> 24 C 1 Sigma (i=6 to 0) 24 C i PS : Pls check if 0 cases are included in higher numbers as well Thanks, Bala On Tue, Jun 22, 2010 at 7:52 AM, Aarthi Thangamani < aarthi.thangam...@gmail.com> wrote: > Given 23 chocolates and there are 7 kids. How many ways are there to spilt > the chocolates among the 7 kids? All of the chocolates must be distributed > and it can happen that some kids do not get any. > > For example: first kid gets 23 chocolates and rest get none is one > possibility. First 6 kids get one each and the 7th kid gets 17 chocolates is > another possibility. How many such ways are there to distribute? > > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algoge...@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.