Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-221-alexandrian-integers.md

48 lines
662 B
Markdown
Raw Normal View History

---
id: 5900f4491000cf542c50ff5c
title: 问题221亚历山大整数
challengeType: 5
videoUrl: ''
---
# --description--
如果存在整数pqr我们将调用正整数A和“亚历山大整数”这样
```
A = p · q · r and 1A
```
=
```
1p
```
\+
```
1q
```
\+
```
1r
```
例如630是亚历山大整数p = 5q = -7r = -18。实际上630是第6个亚历山大整数前6个亚历山大整数是6,42,120,156,420和630。
找到第150000个亚历山大整数。
# --hints--
`euler221()`应该返回1884161251122450。
```js
assert.strictEqual(euler221(), 1884161251122450);
```
# --solutions--