Results 1 to 2 of 2

Math Help - Place 37 people into 5 rooms so that each room has at least 1 person in it?

  1. #1
    Junior Member
    Joined
    Feb 2010
    Posts
    40

    Place 37 people into 5 rooms so that each room has at least 1 person in it?

    I know that if i forget about the condition that no room is empty, then i can line 37 people up and assign each to a room to get a sequence with repetition, which means 5 ways to give the first person a room, 5 ways for the second etc until i get 5^{37} possible ways to place 37 people in 5 rooms. But now with the condition that no room is empty? I suppose i could subtract the subcases of 1 room empty,and 37 people in 4 rooms, 2 rooms empty and 37 people in 3 rooms etc, but this seems lengthy and i have a feeling there's a better way?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor

    Joined
    Aug 2006
    Posts
    18,790
    Thanks
    1687
    Awards
    1
    Quote Originally Posted by punkstart View Post
    I know that if i forget about the condition that no room is empty, then i can line 37 people up and assign each to a room to get a sequence with repetition, which means 5 ways to give the first person a room, 5 ways for the second etc until i get 5^{37} possible ways to place 37 people in 5 rooms. But now with the condition that no room is empty?
    This a matter of counting the number of surjections( onto functions) from a set of 37 to a set of 5.
    \text{Surj}(N,K)=\displaystyle\sum\limits_{j = 0}^K {\left( { - 1} \right)^j \binom{K}{j}\left( {K - j} \right)^N }

    Here N=37~\&~K=5
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 1
    Last Post: February 14th 2011, 07:18 AM
  2. Calculating Nth place from 1st place probability
    Posted in the Advanced Statistics Forum
    Replies: 10
    Last Post: February 7th 2011, 04:24 PM
  3. Permutations: People in Rooms
    Posted in the Discrete Math Forum
    Replies: 2
    Last Post: July 17th 2010, 10:07 PM
  4. People in a room puzzle
    Posted in the Math Puzzles Forum
    Replies: 1
    Last Post: February 10th 2010, 07:12 PM
  5. Hotel Rooms probability
    Posted in the Advanced Statistics Forum
    Replies: 10
    Last Post: July 27th 2006, 09:06 AM

Search Tags


/mathhelpforum @mathhelpforum