2018-09-30 22:01:58 +00:00
---
id: 5900f4af1000cf542c50ffc1
title: 'Problem 322: Binomial coefficients divisible by 10'
2020-11-27 18:02:05 +00:00
challengeType: 5
2019-08-05 16:17:33 +00:00
forumTopicId: 301979
2021-01-13 02:31:00 +00:00
dashedName: problem-322-binomial-coefficients-divisible-by-10
2018-09-30 22:01:58 +00:00
---
2020-11-27 18:02:05 +00:00
# --description--
2018-09-30 22:01:58 +00:00
2021-07-29 18:59:06 +00:00
Let $T(m, n)$ be the number of the binomial coefficients ${}^iC_n$ that are divisible by 10 for $n ≤ i < m$ ($i$, $m$ and $n$ are positive integers).
2018-09-30 22:01:58 +00:00
2021-07-29 18:59:06 +00:00
You are given that $T({10}^9, {10}^7 - 10) = 989\\,697\\,000$.
2018-09-30 22:01:58 +00:00
2021-07-29 18:59:06 +00:00
Find $T({10}^{18}, {10}^{12} - 10)$.
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-29 18:59:06 +00:00
`binomialCoefficientsDivisibleBy10()` should return `999998760323314000` .
2018-09-30 22:01:58 +00:00
2020-11-27 18:02:05 +00:00
```js
2021-07-29 18:59:06 +00:00
assert.strictEqual(binomialCoefficientsDivisibleBy10(), 999998760323314000);
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-29 18:59:06 +00:00
function binomialCoefficientsDivisibleBy10() {
2020-09-15 16:57:40 +00:00
2018-09-30 22:01:58 +00:00
return true;
}
2021-07-29 18:59:06 +00:00
binomialCoefficientsDivisibleBy10();
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
```