mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-14 01:00:36 -04:00
901 B
901 B
id, title, challengeType, forumTopicId, dashedName
| id | title | challengeType | forumTopicId | dashedName |
|---|---|---|---|---|
| 5900f4da1000cf542c50ffec | Problema 365: Um coeficiente binomial enorme | 1 | 302026 | problem-365-a-huge-binomial-coefficient |
--description--
O coeficiente binomial \displaystyle\binom{{10}^{18}}{{10}^9} é um número com mais de 9 bilhões de algarismos (9 × {10}^9).
Considere M(n, k, m) como o coeficiente binomial \displaystyle\binom{n}{k} modulo m.
Calcule \sum M({10}^{18}, {10}^9, p \times q \times r) para$1000 < p < q < r < 5000$ e com p, q, r sendo números primos.
--hints--
hugeBinomialCoefficient() deve retornar 162619462356610300.
assert.strictEqual(hugeBinomialCoefficient(), 162619462356610300);
--seed--
--seed-contents--
function hugeBinomialCoefficient() {
return true;
}
hugeBinomialCoefficient();
--solutions--
// solution required