2018-09-30 23:01:58 +01:00
|
|
|
---
|
|
|
|
id: 5900f5411000cf542c510054
|
|
|
|
title: 'Problem 468: Smooth divisors of binomial coefficients'
|
2020-11-27 19:02:05 +01:00
|
|
|
challengeType: 5
|
2019-08-05 09:17:33 -07:00
|
|
|
forumTopicId: 302143
|
2021-01-13 03:31:00 +01:00
|
|
|
dashedName: problem-468-smooth-divisors-of-binomial-coefficients
|
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-30 17:32:21 +02:00
|
|
|
An integer is called B-smooth if none of its prime factors is greater than $B$.
|
2018-09-30 23:01:58 +01:00
|
|
|
|
2021-07-30 17:32:21 +02:00
|
|
|
Let $SB(n)$ be the largest B-smooth divisor of $n$.
|
2018-09-30 23:01:58 +01:00
|
|
|
|
2021-07-30 17:32:21 +02:00
|
|
|
Examples:
|
2018-09-30 23:01:58 +01:00
|
|
|
|
2021-07-30 17:32:21 +02:00
|
|
|
$$\begin{align}
|
|
|
|
& S_1(10) = 1 \\\\
|
|
|
|
& S_4(2\\,100) = 12 \\\\
|
|
|
|
& S_{17}(2\\,496\\,144) = 5\\,712
|
|
|
|
\end{align}$$
|
|
|
|
|
|
|
|
Define $F(n) = \displaystyle\sum_{B = 1}^n \sum_{r = 0}^n S_B(\displaystyle\binom{n}{r})$. Here, $\displaystyle\binom{n}{r}$ denotes the binomial coefficient.
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
$$\begin{align}
|
|
|
|
& F(11) = 3132 \\\\
|
|
|
|
& F(1\\,111)\bmod 1\\,000\\,000\\,993 = 706\\,036\\,312 \\\\
|
|
|
|
& F(111\\,111)\bmod 1\\,000\\,000\\,993 = 22\\,156\\,169
|
|
|
|
\end{align}$$
|
|
|
|
|
|
|
|
Find $F(11\\,111\\,111)\bmod 1\\,000\\,000\\,993$.
|
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-30 17:32:21 +02:00
|
|
|
`smoothDivisorsOfBinomialCoefficients()` should return `852950321`.
|
2018-09-30 23:01:58 +01:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
```js
|
2021-07-30 17:32:21 +02:00
|
|
|
assert.strictEqual(smoothDivisorsOfBinomialCoefficients(), 852950321);
|
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-30 17:32:21 +02:00
|
|
|
function smoothDivisorsOfBinomialCoefficients() {
|
2020-09-15 09:57:40 -07:00
|
|
|
|
2018-09-30 23:01:58 +01:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2021-07-30 17:32:21 +02:00
|
|
|
smoothDivisorsOfBinomialCoefficients();
|
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
|
|
|
|
```
|