Files
freeCodeCamp/curriculum/challenges/ukrainian/10-coding-interview-prep/project-euler/problem-379-least-common-multiple-count.md

45 lines
1003 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f4e81000cf542c50fffa
title: 'Завдання 379: Найменше спільне кратне число'
challengeType: 5
forumTopicId: 302041
dashedName: problem-379-least-common-multiple-count
---
# --description--
Нехай $f(n)$ буде кількістю пар ($x$, $y$) з $x$ і $y$ позитивними додатніми числами, $x ≤ y$ і найменш спільне кратне $x$ і $y$ рівне $n$.
Нехай $g$ буде функцією суми $f$, до приикладу $g(n) = \sum f(i)$ for $1 ≤ i ≤ n$.
Вам дано, що $g({10}^6) = 37\\,429\\,395$.
Знайдіть $g({10}^{12})$.
# --hints--
`leastCommonMultipleCount()` має повернути `132314136838185`.
```js
assert.strictEqual(leastCommonMultipleCount(), 132314136838185);
```
# --seed--
## --seed-contents--
```js
function leastCommonMultipleCount() {
return true;
}
leastCommonMultipleCount();
```
# --solutions--
```js
// solution required
```