64 lines
973 B
Markdown
64 lines
973 B
Markdown
|
---
|
||
|
id: 5
|
||
|
localeTitle: 5900f4571000cf542c50ff6a
|
||
|
challengeType: 5
|
||
|
title: 'Problem 235: An Arithmetic Geometric sequence'
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
<section id='description'>
|
||
|
Dado es la secuencia aritmético-geométrica u (k) = (900-3k) rk-1.
|
||
|
Sea s (n) = Σk = 1 ... nu (k).
|
||
|
|
||
|
|
||
|
Halla el valor de r para el cual s (5000) = -600,000,000,000.
|
||
|
|
||
|
|
||
|
Da tu respuesta redondeada a 12 lugares detrás del punto decimal.
|
||
|
</section>
|
||
|
|
||
|
## Instructions
|
||
|
<section id='instructions'>
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
tests:
|
||
|
- text: <code>euler235()</code> debe devolver 1.002322108633.
|
||
|
testString: 'assert.strictEqual(euler235(), 1.002322108633, "<code>euler235()</code> should return 1.002322108633.");'
|
||
|
|
||
|
```
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Challenge Seed
|
||
|
<section id='challengeSeed'>
|
||
|
|
||
|
<div id='js-seed'>
|
||
|
|
||
|
```js
|
||
|
function euler235() {
|
||
|
// Good luck!
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
euler235();
|
||
|
```
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
## Solution
|
||
|
<section id='solution'>
|
||
|
|
||
|
```js
|
||
|
// solution required
|
||
|
```
|
||
|
</section>
|