Files
freeCodeCamp/curriculum/challenges/russian/08-coding-interview-prep/project-euler/problem-346-strong-repunits.russian.md

55 lines
1.5 KiB
Markdown
Raw 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: 5900f4c71000cf542c50ffd8
challengeType: 5
title: 'Problem 346: Strong Repunits'
videoUrl: ''
localeTitle: 'Задача 346: Сильные подразделения'
---
## Description
<section id="description"> Число 7 является особенным, потому что 7 равно 111, записанному в базе 2, а 11 записано в базе 6 (т.е. 710 = 116 = 1112). Другими словами, 7 является репунитом по крайней мере в двух базах b&gt; 1. <p> Мы будем называть положительное целое число с этим свойством сильным repunit. Можно проверить, что существует 8 сильных repunits ниже 50: {1,7,13,15,21,31,40,43}. Кроме того, сумма всех сильных repunits ниже 1000 равна 15864. </p><p> Найдите сумму всех сильных repunits ниже 1012. </p></section>
## Instructions
undefined
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler346()</code> должен вернуть 336108797689259260.
testString: 'assert.strictEqual(euler346(), 336108797689259260, "<code>euler346()</code> should return 336108797689259260.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler346() {
// Good luck!
return true;
}
euler346();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>