freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-169-exploring-the-n...

56 lines
1.4 KiB
Markdown
Raw Normal View History

---
id: 5900f4151000cf542c50ff28
challengeType: 5
title: 'Problem 169: Exploring the number of different ways a number can be expressed as a sum of powers of 2'
videoUrl: ''
localeTitle: 'Проблема 169: Изучая количество различных способов, число может быть выражено как сумма степеней 2'
---
## Description
<section id="description"> Определить f (0) = 1 и f (n) как число различных способов n можно выразить как сумму целых степеней 2, используя каждую мощность не более двух раз. Например, f (10) = 5, поскольку существует пять различных способов выражения 10: 1 + 1 + 8 1 + 1 + 4 + 41 + 1 + 2 + 2 + 4 2 + 4 + 4 2 + 8 Что такое f (1025)? </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler169()</code> должен вернуть 178653872807.
testString: 'assert.strictEqual(euler169(), 178653872807, "<code>euler169()</code> should return 178653872807.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler169() {
// Good luck!
return true;
}
euler169();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>