Grieve (grieve) wrote,
Grieve
grieve

Math puzzle

I ran across this problem today, and I feel like it must have been solved before, but I am not sure where to look. Suppose you have X objects and Y buckets. The question is how many unique ways can I distribute the X objects into the Y buckets.

For example if I have 2 objects and 3 buckets I can distribute the two objects as follows:
2 0 0
0 2 0
0 0 2
1 1 0
1 0 1
0 1 1

Which gives me six unique ways to distribute the objects.

With 3 objects and 3 buckets there are 10 ways to do it. My question is what is the algorithm given X and Y which will give you all unique combinations?
Tags: math
Subscribe

  • Juggling

    Of late I have been doing a lot more juggling. It has been fun to get back into it. I just wish I had time to actually go to the meetings. Hopefully…

  • Juggle Fest XV

    This was the XV Annual Juggle Fest Weekend. chikuru already chastised me for not posting about it before it happened, but I promised to…

  • Jugglers Wedding.

    We went to our friend's wedding today, and it was really nice. Unfortunately I didn't think to bring my camera with me or I would've posted some nice…

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 5 comments