Files
freeCodeCamp/curriculum/challenges/ukrainian/10-coding-interview-prep/project-euler/problem-429-sum-of-squares-of-unitary-divisors.md

1.1 KiB
Raw Permalink Blame History

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
5900f5191000cf542c51002c Завдання 429: Сума квадратів одиничних дільників 5 302099 problem-429-sum-of-squares-of-unitary-divisors

--description--

Унітарний дільник d числа n - це дільник n, що має властивість gcd(d, \frac{n}{d}) = 1.

Унітарні дільники 4! = 24 = 1, 3, 8 і 24.

Сума їх квадратів дорівнює 12 + 32 + 82 + 242 = 650.

Нехай S(n) являє собою суму квадратів унітарних дільників n. Так S(4!) = 650.

Знайдіть S(100\\,000\\,000!) за модулем 1\\,000\\,000\\,009.

--hints--

sumSquaresOfUnitaryDivisors() має повернути 98792821.

assert.strictEqual(sumSquaresOfUnitaryDivisors(), 98792821);

--seed--

--seed-contents--

function sumSquaresOfUnitaryDivisors() {

  return true;
}

sumSquaresOfUnitaryDivisors();

--solutions--

// solution required