Files
freeCodeCamp/curriculum/challenges/japanese/10-coding-interview-prep/project-euler/problem-197-investigating-the-behaviour-of-a-recursively-defined-sequence.md
2022-01-20 20:30:18 +01:00

41 lines
939 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: '問題 197: 再帰的に定義された数列のふるまいを調べ上げる'
challengeType: 5
forumTopicId: 301835
dashedName: problem-197-investigating-the-behaviour-of-a-recursively-defined-sequence
---
# --description--
関数 $f(x) = ⌊{2}^{30.403243784 - x^2}⌋ × {10}^{-9}$ ( ⌊ ⌋ は床関数) が与えられ、数列 $u_n$ は $u_0 = -1$ と $u_{n + 1} = f(u_n)$ で定義されます。
$n = {10}^{12}$ のとき、$u_n + u_{n + 1}$ を求めなさい。 回答は、四捨五入して小数第 9 位まで示すこと。
# --hints--
`recursivelyDefinedSequence()``1.710637717` を返す必要があります。
```js
assert.strictEqual(recursivelyDefinedSequence(), 1.710637717);
```
# --seed--
## --seed-contents--
```js
function recursivelyDefinedSequence() {
return true;
}
recursivelyDefinedSequence();
```
# --solutions--
```js
// solution required
```