2018-09-30 23:01:58 +01:00
---
id: 5900f4af1000cf542c50ffc1
title: 'Problem 322: Binomial coefficients divisible by 10'
2020-11-27 19:02:05 +01:00
challengeType: 5
2019-08-05 09:17:33 -07:00
forumTopicId: 301979
2021-01-13 03:31:00 +01:00
dashedName: problem-322-binomial-coefficients-divisible-by-10
2018-09-30 23:01:58 +01:00
---
2020-11-27 19:02:05 +01:00
# --description--
2018-09-30 23:01:58 +01:00
2021-07-29 20:59:06 +02: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 23:01:58 +01:00
2021-07-29 20:59:06 +02:00
You are given that $T({10}^9, {10}^7 - 10) = 989\\,697\\,000$.
2018-09-30 23:01:58 +01:00
2021-07-29 20:59:06 +02:00
Find $T({10}^{18}, {10}^{12} - 10)$.
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
# --hints--
2018-09-30 23:01:58 +01:00
2021-07-29 20:59:06 +02:00
`binomialCoefficientsDivisibleBy10()` should return `999998760323314000` .
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
```js
2021-07-29 20:59:06 +02:00
assert.strictEqual(binomialCoefficientsDivisibleBy10(), 999998760323314000);
2018-09-30 23:01:58 +01:00
```
2020-11-27 19:02:05 +01:00
# --seed--
2018-09-30 23:01:58 +01:00
2020-11-27 19:02:05 +01:00
## --seed-contents--
2018-09-30 23:01:58 +01:00
```js
2021-07-29 20:59:06 +02:00
function binomialCoefficientsDivisibleBy10() {
2020-09-15 09:57:40 -07:00
2018-09-30 23:01:58 +01:00
return true;
}
2021-07-29 20:59:06 +02:00
binomialCoefficientsDivisibleBy10();
2018-09-30 23:01:58 +01:00
```
2020-11-27 19:02:05 +01:00
# --solutions--
2018-09-30 23:01:58 +01:00
```js
// solution required
```