2021-06-15 00:49:18 -07:00
|
|
|
---
|
|
|
|
id: 5900f5411000cf542c510054
|
2021-11-29 08:32:04 -08:00
|
|
|
title: 'Problema 468: Divisores harmonizados de coeficientes binomiais'
|
2021-06-15 00:49:18 -07:00
|
|
|
challengeType: 5
|
|
|
|
forumTopicId: 302143
|
|
|
|
dashedName: problem-468-smooth-divisors-of-binomial-coefficients
|
|
|
|
---
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
2021-11-29 08:32:04 -08:00
|
|
|
Um inteiro é chamado de harmonizado de B se nenhum de seus fatores primos é maior que $B$.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
2021-11-29 08:32:04 -08:00
|
|
|
Considere $SB(n)$ como o maior divisor harmonizado de B de $n$.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
2021-11-29 08:32:04 -08:00
|
|
|
Exemplos:
|
2021-06-15 00:49:18 -07:00
|
|
|
|
2022-04-05 23:36:59 +05:30
|
|
|
$$\begin{align} & S_1(10) = 1 \\\\
|
|
|
|
& S_4(2.100) = 12 \\\\ & S_{17}(2.496.144) = 5.712 \end{align}$$
|
2021-11-29 08:32:04 -08:00
|
|
|
|
|
|
|
Defina $F(n) = \displaystyle\sum_{B = 1}^n \sum_{r = 0}^n S_B(\displaystyle\binom{n}{r})$. Aqui, $\displaystyle\binom{n}{r}$ denota o coeficiente binomial.
|
|
|
|
|
|
|
|
Exemplos:
|
|
|
|
|
2022-04-05 23:36:59 +05:30
|
|
|
$$\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}$$
|
2021-11-29 08:32:04 -08:00
|
|
|
|
|
|
|
Encontre $F(11.111.111)\bmod 1.000.000.993$.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
|
|
# --hints--
|
|
|
|
|
2021-11-29 08:32:04 -08:00
|
|
|
`smoothDivisorsOfBinomialCoefficients()` deve retornar `852950321`.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
|
|
```js
|
2021-11-29 08:32:04 -08:00
|
|
|
assert.strictEqual(smoothDivisorsOfBinomialCoefficients(), 852950321);
|
2021-06-15 00:49:18 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
# --seed--
|
|
|
|
|
|
|
|
## --seed-contents--
|
|
|
|
|
|
|
|
```js
|
2021-11-29 08:32:04 -08:00
|
|
|
function smoothDivisorsOfBinomialCoefficients() {
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2021-11-29 08:32:04 -08:00
|
|
|
smoothDivisorsOfBinomialCoefficients();
|
2021-06-15 00:49:18 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
# --solutions--
|
|
|
|
|
|
|
|
```js
|
|
|
|
// solution required
|
|
|
|
```
|