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

63 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: 5900f3a91000cf542c50febc
title: 问题61循环图号
challengeType: 5
videoUrl: ''
dashedName: problem-61-cyclical-figurate-numbers
---
# --description--
三角形,正方形,五边形,六边形,七边形和八边形数字都是图形(多边形)数字,由以下公式生成:三角形
P3中n = NN + 1/ 2
1,3,6,10,15 ......方形
P4 N = N2
1,4,9,16,25 ......五角形
P5N = N3N-1/ 2
1,5,12,22,35 ......六角形
P6N = N2N-1
1,6,15,28,45 ...... Heptagonal
P7N = N5N-3/ 2
1,7,18,34,55......八角形
P8N = N3N-2
1,8,21,40,65......三个4位数字的有序集合8128,2882,8281有三个有趣的属性。该集合是循环的因为每个数字的最后两位数字是下一个数字的前两位数字包括与第一个数字相关的最后一个数字。每个多边形类型三角形P3,127 = 8128方形P4,91 = 8281和五边形P5,44 = 2882由集合中的不同数字表示。这是具有此属性的唯一一组4位数字。求出六个循环4位数字的唯一有序集合的总和其中每个多边形类型三角形正方形五边形六边形七边形和八边形由集合中的不同数字表示。
# --hints--
`euler61()`应返回28684。
```js
assert.strictEqual(euler61(), 28684);
```
# --seed--
## --seed-contents--
```js
function cyclicalFigurateNums() {
return true;
}
cyclicalFigurateNums();
```
# --solutions--
```js
// solution required
```