2021-06-15 00:49:18 -07:00
|
|
|
---
|
|
|
|
id: 5900f4571000cf542c50ff6a
|
2022-03-01 00:52:39 +05:30
|
|
|
title: 'Problema 235: Sequenza geometrica aritmetica'
|
2021-06-15 00:49:18 -07:00
|
|
|
challengeType: 5
|
|
|
|
forumTopicId: 301879
|
|
|
|
dashedName: problem-235-an-arithmetic-geometric-sequence
|
|
|
|
---
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
2022-03-01 00:52:39 +05:30
|
|
|
Data la sequenza aritmetico-geometrica $u(k) = (900 - 3k)r^{k - 1}$.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
2022-03-01 00:52:39 +05:30
|
|
|
Sia $s(n) = \sum_{k=1 \ldots n} u(k)$.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
2022-03-01 00:52:39 +05:30
|
|
|
Trova il valore di $r$ per il quale $s(5000) = -600\\,000\\,000\\,000$.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
2022-03-01 00:52:39 +05:30
|
|
|
Dai la tua risposta arrotondata a 12 cifre dopo il punto decimale.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
|
|
# --hints--
|
|
|
|
|
2022-03-01 00:52:39 +05:30
|
|
|
`arithmeticGeometricSequence()` dovrebbe restituire `1.002322108633`.
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
|
|
```js
|
2022-03-01 00:52:39 +05:30
|
|
|
assert.strictEqual(arithmeticGeometricSequence(), 1.002322108633);
|
2021-06-15 00:49:18 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
# --seed--
|
|
|
|
|
|
|
|
## --seed-contents--
|
|
|
|
|
|
|
|
```js
|
2022-03-01 00:52:39 +05:30
|
|
|
function arithmeticGeometricSequence() {
|
2021-06-15 00:49:18 -07:00
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2022-03-01 00:52:39 +05:30
|
|
|
arithmeticGeometricSequence();
|
2021-06-15 00:49:18 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
# --solutions--
|
|
|
|
|
|
|
|
```js
|
|
|
|
// solution required
|
|
|
|
```
|