67 lines
1004 B
Markdown
67 lines
1004 B
Markdown
![]() |
---
|
||
|
id: 5
|
||
|
localeTitle: 5900f4e81000cf542c50fffa
|
||
|
challengeType: 5
|
||
|
title: 'Problem 379: Least common multiple count'
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id='description'>
|
||
|
Sea f (n) el número de parejas (x, y) con x e y enteros positivos, x ≤ y y el mínimo común múltiplo de x e y igual a n.
|
||
|
|
||
|
|
||
|
Sea g la función sumatoria de f, es decir:
|
||
|
g (n) = ∑ f (i) para 1 ≤ i ≤ n.
|
||
|
|
||
|
|
||
|
Te dan que g (106) = 37429395.
|
||
|
|
||
|
|
||
|
Encuentra g (1012).
|
||
|
</section>
|
||
|
|
||
|
## Instructions
|
||
|
<section id='instructions'>
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- text: <code>euler379()</code> debe devolver 132314136838185.
|
||
|
testString: 'assert.strictEqual(euler379(), 132314136838185, "<code>euler379()</code> should return 132314136838185.");'
|
||
|
|
||
|
```
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Challenge Seed
|
||
|
<section id='challengeSeed'>
|
||
|
|
||
|
<div id='js-seed'>
|
||
|
|
||
|
```js
|
||
|
function euler379() {
|
||
|
// Good luck!
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
euler379();
|
||
|
```
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Solution
|
||
|
<section id='solution'>
|
||
|
|
||
|
```js
|
||
|
// solution required
|
||
|
```
|
||
|
</section>
|