Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-312-cyclic-paths-on-sierpiski-graphs.md

30 lines
760 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: 5900f4a51000cf542c50ffb7
title: 问题312Sierpiński图上的循环路径
challengeType: 5
videoUrl: ''
---
# --description--
\-1阶S1的Sierpiński图是等边三角形。
\-通过将Sn的三个副本放置在Sn上从而使每对副本都有一个公共角从而从Sn中获得Sn +1。
令Cn为恰好一次通过Sn的所有顶点的循环数。 例如C3= 8因为可以在S3上绘制八个这样的循环如下所示
也可以验证: C1= C2= 1 C5= 71328803586048 C10,000mod 108 = 37652224 C10,000模138 = 617720485
求CCC10,000mod 138。
# --hints--
`euler312()`应该返回324681947。
```js
assert.strictEqual(euler312(), 324681947);
```
# --solutions--