freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-241-perfection-quot...

56 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f45d1000cf542c50ff70
challengeType: 5
title: 'Problem 241: Perfection Quotients'
videoUrl: ''
localeTitle: 'Проблема 241: Совершенствование Котировки'
---
## Description
<section id="description"> Для положительного целого числа n пусть σ (n) - сумма всех делителей n, поэтому, например, σ (6) = 1 + 2 + 3 + 6 = 12. <p> Идеальное число, как вы, наверное, знаете, представляет собой число с σ (n) = 2n. </p><p> Определим фактор совершенства положительного целого числа asp (n) = σ (n) n. Найдите сумму всех натуральных чисел n ≤ 1018, для которых p (n) имеет вид k + 1/2, где k - целое число. </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler241()</code> должен вернуть 482316491800641150.
testString: 'assert.strictEqual(euler241(), 482316491800641150, "<code>euler241()</code> should return 482316491800641150.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler241() {
// Good luck!
return true;
}
euler241();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>