freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-241-perfection-quot...

26 lines
588 B
Markdown
Raw Normal View History

---
id: 5900f45d1000cf542c50ff70
title: 问题241完美商数
challengeType: 5
videoUrl: ''
---
# --description--
对于正整数nσn为n的所有除数之和因此例如σ6= 1 + 2 + 3 + 6 = 12。
正如您所知一个完美的数字是σn= 2n的数字。
让我们定义正整数aspn=σnn的完美商。求出所有正整数n≤1018的和其中pn的形式为k + 1/2其中k是整数。
# --hints--
`euler241()`应该返回482316491800641150。
```js
assert.strictEqual(euler241(), 482316491800641150);
```
# --solutions--