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

1010 B

id challengeType title videoUrl localeTitle
5900f52c1000cf542c51003d 5 Problem 446: Retractions B Задача 446: Отвод B

Description

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

F (N) = ΣR (n4 + 4) для 1≤n≤N. F (1024) = 77532377300600.

Найти F (107) (mod 1 000 000 007)

Instructions

Tests

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

Challenge Seed

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

euler446();

Solution

// solution required