freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-479-roots-on-the-ri...

47 lines
847 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f54b1000cf542c51005d
title: 问题479崛起的根源
challengeType: 5
videoUrl: ''
dashedName: problem-479-roots-on-the-rise
---
# --description--
设akbk和ck表示表达式1 / x =k / x2k + x2-kx的三个解实数或复数
例如对于k = 5我们看到{a5b5c5}约为{5.727244-0.363622 + 2.057397i-0.363622-2.057397i}。
令所有整数pk的Snak + bkpbk + ckpck + akp使得1≤pk≤n。
有趣的是Sn总是一个整数。例如S4= 51160。
求S106modulo 1 000 000 007。
# --hints--
`euler479()`应该返回191541795。
```js
assert.strictEqual(euler479(), 191541795);
```
# --seed--
## --seed-contents--
```js
function euler479() {
return true;
}
euler479();
```
# --solutions--
```js
// solution required
```