Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

If you refuse to accept anything but the best you very often get it.


interests / rec.puzzles / how many ways can 5 people (1, 2, 3, 4, 5) be assigned to 3 rooms (A, B, C) when...

SubjectAuthor
* how many ways can 5 people (1, 2, 3, 4, 5) be assigned tohenh...@gmail.com
`- Re: how many ways can 5 people (1, 2, 3, 4, 5) be assigned to 3 roomsEdward Murphy

1
how many ways can 5 people (1, 2, 3, 4, 5) be assigned to 3 rooms (A, B, C) when...

<f388db70-f923-45bc-92e2-6565be414863n@googlegroups.com>

  copy mid

https://novabbs.com/interests/article-flat.php?id=271&group=rec.puzzles#271

  copy link   Newsgroups: rec.puzzles
X-Received: by 2002:a05:6214:21e8:b0:470:b5a7:7889 with SMTP id p8-20020a05621421e800b00470b5a77889mr24098131qvj.74.1656869601624;
Sun, 03 Jul 2022 10:33:21 -0700 (PDT)
X-Received: by 2002:ae9:f808:0:b0:6af:dfa:a290 with SMTP id
x8-20020ae9f808000000b006af0dfaa290mr17298910qkh.741.1656869601483; Sun, 03
Jul 2022 10:33:21 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: rec.puzzles
Date: Sun, 3 Jul 2022 10:33:21 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2601:648:8600:bc00:0:0:0:3b18;
posting-account=YjTkGAoAAAA4_fbAISfvtIqrYbghMeBx
NNTP-Posting-Host: 2601:648:8600:bc00:0:0:0:3b18
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f388db70-f923-45bc-92e2-6565be414863n@googlegroups.com>
Subject: how many ways can 5 people (1, 2, 3, 4, 5) be assigned to
3 rooms (A, B, C) when...
From: henha...@gmail.com (henh...@gmail.com)
Injection-Date: Sun, 03 Jul 2022 17:33:21 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 10
 by: henh...@gmail.com - Sun, 3 Jul 2022 17:33 UTC

how many ways can 5 people (1, 2, 3, 4, 5) be assigned to
3 rooms (A, B, C) when...

(1) No room can be empty
(2) One room can be empty

pls wait a few days before posting answers or hints.

Re: how many ways can 5 people (1, 2, 3, 4, 5) be assigned to 3 rooms (A, B, C) when...

<t9t00n$tmp$1@gioia.aioe.org>

  copy mid

https://novabbs.com/interests/article-flat.php?id=276&group=rec.puzzles#276

  copy link   Newsgroups: rec.puzzles
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!SABVAYcHOklaNK/u1FQzwA.user.46.165.242.75.POSTED!not-for-mail
From: emurph...@zoho.com (Edward Murphy)
Newsgroups: rec.puzzles
Subject: Re: how many ways can 5 people (1, 2, 3, 4, 5) be assigned to 3 rooms
(A, B, C) when...
Date: Sun, 3 Jul 2022 14:00:06 -0700
Organization: Aioe.org NNTP Server
Message-ID: <t9t00n$tmp$1@gioia.aioe.org>
References: <f388db70-f923-45bc-92e2-6565be414863n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="30425"; posting-host="SABVAYcHOklaNK/u1FQzwA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Edward Murphy - Sun, 3 Jul 2022 21:00 UTC

On 7/3/2022 10:33 AM, henh...@gmail.com wrote:
>
> how many ways can 5 people (1, 2, 3, 4, 5) be assigned to
> 3 rooms (A, B, C) when...
>
> (1) No room can be empty
> (2) One room can be empty

[spoiler space]

Without any restrictions, there are 3^5 = 243 ways to assign the people.

With restriction (2), only 3 of those ways are invalid:
a) All five people are assigned to room A
b) All five people are assigned to room B
c) All five people are assigned to room C
so the other 240 ways are valid.

With restriction (1), those 3 ways are invalid, plus:

* 2^5 ways to assign them to rooms A and B, minus 2 ways to assign
all five to just one of those rooms (since those ways were already
excluded above). So 2^5 - 2 = 30 total.

* Similarly, 30 ways to assign to rooms A and C (but not already
excluded), and 30 ways to assign them to rooms B and C (but not
already excluded).

So the number of valid ways is 243 - 3 - 30 - 30 - 30 = 150.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor