Files
freeCodeCamp/curriculum/challenges/italian/10-coding-interview-prep/project-euler/problem-197-investigating-the-behaviour-of-a-recursively-defined-sequence.md
2022-02-28 20:22:39 +01:00

41 lines
880 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

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: 5900f4311000cf542c50ff44
title: 'Problema 197: Indagare il comportamento di una sequenza definita ricorsivamente'
challengeType: 5
forumTopicId: 301835
dashedName: problem-197-investigating-the-behaviour-of-a-recursively-defined-sequence
---
# --description--
Data la funzione $f(x) = ⌊{2}^{30. 03243784 - x^2}⌋ × {10}^{-9}$ ( ⌊ ⌋ è la funzione floor), la sequenza $u_n$ è definita da $u_0 = -1$ e $u_{n + 1} = f(u_n)$.
Trova $u_n + u_{n + 1}$ per $n = {10}^{12}$. Dai la tua risposta con 9 cifre dopo il punto decimale.
# --hints--
`recursivelyDefinedSequence()` dovrebbe restituire `1.710637717`.
```js
assert.strictEqual(recursivelyDefinedSequence(), 1.710637717);
```
# --seed--
## --seed-contents--
```js
function recursivelyDefinedSequence() {
return true;
}
recursivelyDefinedSequence();
```
# --solutions--
```js
// solution required
```