Valeriy 79d9012432 fix(curriculum): quotes in tests (#18828)
* fix(curriculum): tests quotes

* fix(curriculum): fill seed-teardown

* fix(curriculum): fix tests and remove unneeded seed-teardown
2018-10-20 23:32:47 +05:30

1.0 KiB

id, challengeType, title
id challengeType title
5900f52c1000cf542c51003e 5 Problem 447: Retractions C

Description

For every integer n>1, the family of functions fn,a,b is defined by fn,a,b(x)≡ax+b mod n for a,b,x integer and 0F(N)=∑R(n) for 2≤n≤N. F(107)≡638042271 (mod 1 000 000 007).

Find F(1014) (mod 1 000 000 007).

Instructions

Tests

tests:
  - text: <code>euler447()</code> should return 530553372.
    testString: assert.strictEqual(euler447(), 530553372, '<code>euler447()</code> should return 530553372.');

Challenge Seed

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

euler447();

Solution

// solution required