freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-445-retractions-a.r...

1.1 KiB

id challengeType title videoUrl localeTitle
5900f52a1000cf542c51003c 5 Problem 445: Retractions A

Description

Для каждого целого n> 1 семейство функций fn, a, b определяется посредством fn, a, b (x) ≡ax + b mod n для a, b, x integer и 0

Вам дается, что Σ R (c) для c = C (100 000, k) и 1 ≤ k ≤99 999 ≡628701600 (mod 1 000 000 007). (C (n, k) - биномиальный коэффициент).

Найдите Σ R (c) для c = C (10 000 000, k) и 1 ≤k≤ 9 999 999. Дайте свой ответ по модулю 1 000 000 007.

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'assert.strictEqual(euler445(), 659104042, "<code>euler445()</code> should return 659104042.");'

Challenge Seed

function euler445() {
  // Good luck!
  return true;
}

euler445();

Solution

// solution required