2021-06-15 00:49:18 -07:00
|
|
|
---
|
|
|
|
id: 5900f4231000cf542c50ff34
|
|
|
|
title: >-
|
2022-02-28 13:29:21 +05:30
|
|
|
Problema 181: Indagare in quanti modi possono essere raggruppati oggetti di due colori diversi
|
2021-06-15 00:49:18 -07:00
|
|
|
challengeType: 5
|
|
|
|
forumTopicId: 301817
|
|
|
|
dashedName: >-
|
|
|
|
problem-181-investigating-in-how-many-ways-objects-of-two-different-colours-can-be-grouped
|
|
|
|
---
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
2022-02-28 13:29:21 +05:30
|
|
|
Dati tre oggetti neri $B$ e un oggetto bianco $W$, essi possono essere raggruppati in 7 modi:
|
2021-06-15 00:49:18 -07:00
|
|
|
|
2022-02-28 13:29:21 +05:30
|
|
|
$$(BBBW)\\;(B,BBW)\\;(B,B,BW)\\;(B,B,B,W)\\;(B,BB,W)\\;(BBB,W)\\;(BB,BW)$$
|
2021-06-15 00:49:18 -07:00
|
|
|
|
2022-02-28 13:29:21 +05:30
|
|
|
In quanti modi possono essere raggruppati sessanta oggetti neri $B$ e quaranta oggetti bianchi $W$?
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
|
|
# --hints--
|
|
|
|
|
2022-02-28 13:29:21 +05:30
|
|
|
`colorsGrouping()` dovrebbe restituire `83735848679360670`.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
|
|
```js
|
2022-02-28 13:29:21 +05:30
|
|
|
assert.strictEqual(colorsGrouping(), 83735848679360670);
|
2021-06-15 00:49:18 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
# --seed--
|
|
|
|
|
|
|
|
## --seed-contents--
|
|
|
|
|
|
|
|
```js
|
2022-02-28 13:29:21 +05:30
|
|
|
function colorsGrouping() {
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2022-02-28 13:29:21 +05:30
|
|
|
colorsGrouping();
|
2021-06-15 00:49:18 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
# --solutions--
|
|
|
|
|
|
|
|
```js
|
|
|
|
// solution required
|
|
|
|
```
|