freeCodeCamp/curriculum/challenges/portuguese/08-coding-interview-prep/project-euler/problem-468-smooth-divisors...

1.2 KiB

id challengeType title videoUrl localeTitle
5900f5411000cf542c510054 5 Problem 468: Smooth divisors of binomial coefficients Problema 468: divisores suaves de coeficientes binomiais

Description

Um inteiro é chamado B-smooth se nenhum de seus fatores primos for maior que B.

Seja SB (n) o maior divisor de suavidade B de n. Exemplos: S1 (10) = 1 S4 (2100) = 12 S17 (2496144) = 5712

Defina F (n) = ∑1≤B≤n ∑0≤r≤n SB (C (n, r)). Aqui, C (n, r) indica o coeficiente binomial. Exemplos: F (11) = 3132 F (1 111) mod 1 000 000 993 = 706036312 F (111 111) mod 1 000 000 993 = 22156169

Encontre F (11 111 111) mod 1 000 000 993.

Instructions

Tests

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

Challenge Seed

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

euler468();

Solution

// solution required