freeCodeCamp/curriculum/challenges/spanish/08-coding-interview-prep/project-euler/problem-440-gcd-and-tiling....

56 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f5241000cf542c510037
challengeType: 5
title: 'Problem 440: GCD and Tiling'
videoUrl: ''
localeTitle: 'Problema 440: GCD y mosaico'
---
## Description
<section id="description"> Queremos armar un tablero de longitud n y altura 1 completamente, con bloques 1 × 2 o bloques 1 × 1 con un solo dígito decimal en la parte superior: <p> Por ejemplo, estas son algunas de las formas de formar un tablero de longitud n = 8: </p><p> Sea T (n) el número de formas de formar una tabla de longitud n como se describe anteriormente. </p><p> Por ejemplo, T (1) = 10 y T (2) = 101. </p><p> Sea S (L) la suma triple ∑a, b, c gcd (T (ca), T (cb)) para 1 ≤ a, b, c ≤ L. Por ejemplo: S (2) = 10444 S (3 ) = 1292115238446807016106539989 S (4) mod 987 898 789 = 670616280. </p><p> Encuentra S (2000) mod 987 898 789. </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler440()</code> debe devolver 970746056.
testString: 'assert.strictEqual(euler440(), 970746056, "<code>euler440()</code> should return 970746056.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler440() {
// Good luck!
return true;
}
euler440();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>