Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-269-polynomials-with-at-least-one-integer-root.russian.md

56 lines
1.6 KiB
Markdown
Raw Normal View History

---
id: 5900f4791000cf542c50ff8c
challengeType: 5
title: 'Problem 269: Polynomials with at least one integer root'
videoUrl: ''
localeTitle: 'Задача 269: Полиномы с хотя бы одним целым корнем'
---
## Description
<section id="description"> Корень или нуль многочлена P (x) является решением уравнения P (x) = 0. Определим Pn как многочлен, коэффициенты которого являются числами n. Например, P5703 (x) = 5x3 + 7x2 + 3. <p> Мы можем видеть, что: Pn (0) - последняя цифра n, Pn (1) - сумма цифр n, Pn (10) - n. Define Z (k) как число положительных целых чисел, n , не превышающее k, для которого многочлен Pn имеет хотя бы один целочисленный корень. </p><p> Можно проверить, что Z (100 000) составляет 14696. </p><p> Что такое Z (1016)? </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler269()</code> должен вернуть 1311109198529286.
testString: 'assert.strictEqual(euler269(), 1311109198529286, "<code>euler269()</code> should return 1311109198529286.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler269() {
// Good luck!
return true;
}
euler269();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>