55 lines
1.1 KiB
Markdown
55 lines
1.1 KiB
Markdown
|
---
|
||
|
id: 5900f52a1000cf542c51003c
|
||
|
challengeType: 5
|
||
|
title: 'Problem 445: Retractions A'
|
||
|
videoUrl: ''
|
||
|
localeTitle: ''
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id="description"> Для каждого целого n> 1 семейство функций fn, a, b определяется посредством fn, a, b (x) ≡ax + b mod n для a, b, x integer и 0 <p> Вам дается, что Σ R (c) для c = C (100 000, k) и 1 ≤ k ≤99 999 ≡628701600 (mod 1 000 000 007). (C (n, k) - биномиальный коэффициент). </p><p> Найдите Σ R (c) для c = C (10 000 000, k) и 1 ≤k≤ 9 999 999. Дайте свой ответ по модулю 1 000 000 007. </p></section>
|
||
|
|
||
|
## Instructions
|
||
|
undefined
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- text: ''
|
||
|
testString: 'assert.strictEqual(euler445(), 659104042, "<code>euler445()</code> should return 659104042.");'
|
||
|
|
||
|
```
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Challenge Seed
|
||
|
<section id='challengeSeed'>
|
||
|
|
||
|
<div id='js-seed'>
|
||
|
|
||
|
```js
|
||
|
function euler445() {
|
||
|
// Good luck!
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
euler445();
|
||
|
|
||
|
```
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Solution
|
||
|
<section id='solution'>
|
||
|
|
||
|
```js
|
||
|
// solution required
|
||
|
```
|
||
|
</section>
|