2018-09-30 22:01:58 +00:00
|
|
|
---
|
|
|
|
id: 5900f4231000cf542c50ff34
|
2020-11-27 18:02:05 +00:00
|
|
|
title: >-
|
|
|
|
Problem 181: Investigating in how many ways objects of two different colours
|
|
|
|
can be grouped
|
2018-09-30 22:01:58 +00:00
|
|
|
challengeType: 5
|
2019-08-05 16:17:33 +00:00
|
|
|
forumTopicId: 301817
|
2021-01-13 02:31:00 +00:00
|
|
|
dashedName: >-
|
|
|
|
problem-181-investigating-in-how-many-ways-objects-of-two-different-colours-can-be-grouped
|
2018-09-30 22:01:58 +00:00
|
|
|
---
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --description--
|
|
|
|
|
2021-07-15 13:52:14 +00:00
|
|
|
Having three black objects $B$ and one white object $W$ they can be grouped in 7 ways like this:
|
2020-11-27 18:02:05 +00:00
|
|
|
|
2021-07-15 13:52:14 +00:00
|
|
|
$$(BBBW)\\;(B,BBW)\\;(B,B,BW)\\;(B,B,B,W)\\;(B,BB,W)\\;(BBB,W)\\;(BB,BW)$$
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2021-07-15 13:52:14 +00:00
|
|
|
In how many ways can sixty black objects $B$ and forty white objects $W$ be thus grouped?
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --hints--
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2021-07-15 13:52:14 +00:00
|
|
|
`colorsGrouping()` should return `83735848679360670`.
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
```js
|
2021-07-15 13:52:14 +00:00
|
|
|
assert.strictEqual(colorsGrouping(), 83735848679360670);
|
2018-09-30 22:01:58 +00:00
|
|
|
```
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --seed--
|
2018-09-30 22:01:58 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
## --seed-contents--
|
2018-09-30 22:01:58 +00:00
|
|
|
|
|
|
|
```js
|
2021-07-15 13:52:14 +00:00
|
|
|
function colorsGrouping() {
|
2020-09-15 16:57:40 +00:00
|
|
|
|
2018-09-30 22:01:58 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2021-07-15 13:52:14 +00:00
|
|
|
colorsGrouping();
|
2018-09-30 22:01:58 +00:00
|
|
|
```
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --solutions--
|
2018-09-30 22:01:58 +00:00
|
|
|
|
|
|
|
```js
|
|
|
|
// solution required
|
|
|
|
```
|