Files
freeCodeCamp/curriculum/challenges/spanish/08-coding-interview-prep/project-euler/problem-229-four-representations-using-squares.spanish.md
2018-10-08 13:51:51 -04:00

75 lines
1.4 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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: 5
localeTitle: 5900f4521000cf542c50ff64
challengeType: 5
title: 'Problem 229: Four Representations using Squares'
---
## Description
<section id='description'>
Considera el número 3600. Es muy especial, porque
3600 = 482 + 362
3600 = 202 + 2 × 402
3600 = 302 + 3 × 302
3600 = 452 + 7 × 152
Del mismo modo, encontramos que 88201 = 992 + 2802 = 2872 + 2 × 542 = 2832 + 3 × 522 = 1972 + 7 × 842.
En 1747, Euler demostró qué números se pueden representar como la suma de dos cuadrados.
Estamos interesados en los números n que admiten representaciones de los siguientes cuatro tipos:
n = a12 + b12n = a22 + 2 b22n = a32 + 3 b32n = a72 + 7 b72,
donde ak y bk son enteros positivos.
Hay 75373 números de este tipo que no superan los 107.
¿Cuántos de esos números hay que no superan 2 × 109?
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler229()</code> debe devolver 11325263.
testString: 'assert.strictEqual(euler229(), 11325263, "<code>euler229()</code> should return 11325263.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler229() {
// Good luck!
return true;
}
euler229();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>