Files
freeCodeCamp/curriculum/challenges/italian/10-coding-interview-prep/project-euler/problem-365-a-huge-binomial-coefficient.md
2022-03-03 00:26:06 +09:00

43 lines
885 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4da1000cf542c50ffec
title: 'Problema 365: Un grande coefficiente binomiale'
challengeType: 5
forumTopicId: 302026
dashedName: problem-365-a-huge-binomial-coefficient
---
# --description--
Il coefficiente binomiale $\displaystyle\binom{{10}^{18}}{{10}^9}$ è un numero con più di 9 miliardi ($9 × {10}^9$) di cifre.
Sia $M(n, k, m)$ il coefficiente binomiale $\displaystyle\binom{n}{k}$ modulo $m$.
Calcola $\sum M({10}^{18}, {10}^9, p \times q \times r)$ per $1000 < p < q < r < 5000$ e $p$, $q$, $r$ numeri primi.
# --hints--
`hugeBinomialCoefficient()` dovrebbe restituire `162619462356610300`.
```js
assert.strictEqual(hugeBinomialCoefficient(), 162619462356610300);
```
# --seed--
## --seed-contents--
```js
function hugeBinomialCoefficient() {
return true;
}
hugeBinomialCoefficient();
```
# --solutions--
```js
// solution required
```