55 lines
1.4 KiB
Markdown
55 lines
1.4 KiB
Markdown
---
|
||
id: 5900f4ef1000cf542c510001
|
||
challengeType: 5
|
||
title: 'Problem 386: Maximum length of an antichain'
|
||
videoUrl: ''
|
||
localeTitle: 'Задача 386: Максимальная длина антицепного'
|
||
---
|
||
|
||
## Description
|
||
<section id="description"> Пусть n - целое число, а S (n) - множество множителей n. <p> Подмножество A из S (n) называется антицепью S (n), если A содержит только один элемент, или если ни один из элементов A не делит ни один из других элементов A. </p><p> Например: S (30) = {1, 2, 3, 5, 6, 10, 15, 30} {2, 5, 6} не является антицепином S (30). {2, 3, 5} является антицепью из S (30). </p><p> Пусть N (n) - максимальная длина антицепного элемента S (n). </p><p> Найти ΣN (n) для 1 ≤ n ≤ 108 </p></section>
|
||
|
||
## Instructions
|
||
undefined
|
||
|
||
## Tests
|
||
<section id='tests'>
|
||
|
||
```yml
|
||
tests:
|
||
- text: ''
|
||
testString: 'assert.strictEqual(euler386(), 528755790, "<code>euler386()</code> should return 528755790.");'
|
||
|
||
```
|
||
|
||
</section>
|
||
|
||
## Challenge Seed
|
||
<section id='challengeSeed'>
|
||
|
||
<div id='js-seed'>
|
||
|
||
```js
|
||
function euler386() {
|
||
// Good luck!
|
||
return true;
|
||
}
|
||
|
||
euler386();
|
||
|
||
```
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</section>
|
||
|
||
## Solution
|
||
<section id='solution'>
|
||
|
||
```js
|
||
// solution required
|
||
```
|
||
</section>
|