Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-242-odd-triplets.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

45 lines
1016 B
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: 5900f45f1000cf542c50ff71
title: 问题242奇数三胞胎
challengeType: 5
videoUrl: ''
dashedName: problem-242-odd-triplets
---
# --description--
给定集合{1,2...n}我们将fnk定义为具有奇数元素之和的k元素子集的数量。例如f5,3= 4因为集合{1,2,3,4,5}有四个3元素子集具有奇数元素{1,2,4}{ 1,3,5}{2,3,4}和{2,4,5}。
当所有三个值nk和fnk都是奇数时我们说它们产生奇数三元组\[nkfnk]。
正好有五个奇数三元组n≤10\[1,1f1,1= 1]\[5,1f5,1= 3]\[5,5f 5,5= 1]\[9,1f9,1= 5]和\[9,9f9,9= 1]。
n≤1012有多少奇数三胞胎
# --hints--
`euler242()`应该返回997104142249036700。
```js
assert.strictEqual(euler242(), 997104142249036700);
```
# --seed--
## --seed-contents--
```js
function euler242() {
return true;
}
euler242();
```
# --solutions--
```js
// solution required
```