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

1.1 KiB

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

Description

Para cada inteiro n> 1, a família de funções fn, a, b é definida por fn, a, b (x) ≡ax + b mod n para a, b, x inteiro e 0

Você está dado que ∑ R (c) para c = C (100 000, k), e 1 ≤ k ≤ 99 999 ≡ 628701600 (mod 1 000 000 007). (C (n, k) é o coeficiente binomial).

Encontre ∑ R (c) para c = C (10 000 000, k) e 1 ≤ k≤ 9 999 999. Dê a sua resposta modulo 1 000 000 007.

Instructions

Tests

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

Challenge Seed

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

euler445();

Solution

// solution required