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

989 B

id challengeType title videoUrl localeTitle
5900f52c1000cf542c51003d 5 Problem 446: Retractions B Problema 446: Retractions B

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

F (N) = ∑R (n4 + 4) para 1≤n≤N. F (1024) = 77532377300600.

Encontre F (107) (mod 1 000 000 007)

Instructions

Tests

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

Challenge Seed

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

euler446();

Solution

// solution required