freeCodeCamp/curriculum/challenges/spanish/08-coding-interview-prep/project-euler/problem-448-average-least-c...

56 lines
1.1 KiB
Markdown
Raw Normal View History

---
2018-10-10 20:20:40 +00:00
id: 5900f52c1000cf542c51003f
challengeType: 5
title: 'Problem 448: Average least common multiple'
2018-10-10 20:20:40 +00:00
videoUrl: ''
localeTitle: 'Problema 448: Promedio del mínimo común múltiplo'
---
## Description
2018-10-10 20:20:40 +00:00
<section id="description"> La función mcm (a, b) denota el mínimo común múltiplo de ay b. Sea A (n) el promedio de los valores de mcm (n, i) para 1≤i≤n. Ej .: A (2) = (2 + 2) / 2 = 2 y A (10) = (10 + 10 + 30 + 20 + 10 + 30 + 70 + 40 + 90 + 10) / 10 = 32. <p> Sea S (n) = ∑A (k) para 1≤k≤n. S (100) = 122726. </p><p> Encuentra S (99999999019) mod 999999017. </p></section>
## Instructions
2018-10-10 20:20:40 +00:00
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler448()</code> debe devolver 106467648.
testString: 'assert.strictEqual(euler448(), 106467648, "<code>euler448()</code> should return 106467648.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler448() {
// Good luck!
return true;
}
euler448();
2018-10-10 20:20:40 +00:00
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>