2021-06-15 00:49:18 -07:00
|
|
|
|
---
|
|
|
|
|
id: 5900f4531000cf542c50ff66
|
2021-11-15 06:40:48 -08:00
|
|
|
|
title: 'Problema 231: Fatoração de números primos de coeficientes binomiais'
|
2021-06-15 00:49:18 -07:00
|
|
|
|
challengeType: 5
|
|
|
|
|
forumTopicId: 301875
|
|
|
|
|
dashedName: problem-231-the-prime-factorisation-of-binomial-coefficients
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
|
2021-11-15 06:40:48 -08:00
|
|
|
|
O coeficiente binomial $\displaystyle\binom{10}{3} = 120$.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
2021-11-15 06:40:48 -08:00
|
|
|
|
$120 = 2^3 × 3 × 5 = 2 × 2 × 2 × 3 × 5$, and $2 + 2 + 2 + 3 + 5 = 14$.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
2021-11-15 06:40:48 -08:00
|
|
|
|
Portanto, a soma dos termos na fatoração de números primos de $\displaystyle\binom{10}{3}$ é $14$.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
2021-11-15 06:40:48 -08:00
|
|
|
|
Encontre a soma dos termos na fatoração de números primos de $\binom{20.000.000}{15.000.000}$.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
|
|
|
|
# --hints--
|
|
|
|
|
|
2021-11-15 06:40:48 -08:00
|
|
|
|
`primeFactorisation()` deve retornar `7526965179680`.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
|
|
|
|
```js
|
2021-11-15 06:40:48 -08:00
|
|
|
|
assert.strictEqual(primeFactorisation(), 7526965179680);
|
2021-06-15 00:49:18 -07:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
# --seed--
|
|
|
|
|
|
|
|
|
|
## --seed-contents--
|
|
|
|
|
|
|
|
|
|
```js
|
2021-11-15 06:40:48 -08:00
|
|
|
|
function primeFactorisation() {
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-15 06:40:48 -08:00
|
|
|
|
primeFactorisation();
|
2021-06-15 00:49:18 -07:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
# --solutions--
|
|
|
|
|
|
|
|
|
|
```js
|
|
|
|
|
// solution required
|
|
|
|
|
```
|