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

49 lines
955 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: 5900f5181000cf542c51002a
title: 问题427n序列
challengeType: 5
videoUrl: ''
dashedName: problem-427-n-sequences
---
# --description--
整数序列S = {si}如果具有n个元素则每个元素满足1≤si≤n则称为n序列。 因此总共有nn个不同的n序列。
例如序列S = {1、5、5、10、7、7、7、2、3、7}是10个序列。
对于任何序列S令LS为具有相同值的S的最长连续存在的长度。 例如对于上面给定的序列S由于三个连续的7LS= 3。
对于所有n序列S令fn= ∑ LS
例如f3= 45f7= 1403689和f11= 481496895121。
找出f7,500,000mod 1 000 009。
# --hints--
`euler427()`应该返回97138867。
```js
assert.strictEqual(euler427(), 97138867);
```
# --seed--
## --seed-contents--
```js
function euler427() {
return true;
}
euler427();
```
# --solutions--
```js
// solution required
```