Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-386-maximum-length-of-an-antichain.md
Oliver Eyton-Williams ee1e8abd87 feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

47 lines
883 B
Markdown

---
id: 5900f4ef1000cf542c510001
title: 'Problem 386: Maximum length of an antichain'
challengeType: 5
forumTopicId: 302050
dashedName: problem-386-maximum-length-of-an-antichain
---
# --description--
Let n be an integer and S(n) be the set of factors of n.
A subset A of S(n) is called an antichain of S(n) if A contains only one element or if none of the elements of A divides any of the other elements of A.
For example: S(30) = {1, 2, 3, 5, 6, 10, 15, 30} {2, 5, 6} is not an antichain of S(30). {2, 3, 5} is an antichain of S(30).
Let N(n) be the maximum length of an antichain of S(n).
Find ΣN(n) for 1 ≤ n ≤ 108
# --hints--
`euler386()` should return 528755790.
```js
assert.strictEqual(euler386(), 528755790);
```
# --seed--
## --seed-contents--
```js
function euler386() {
return true;
}
euler386();
```
# --solutions--
```js
// solution required
```