chore(i8n,learn): processed translations
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
15047f2d90
commit
e5c44a3ae5
@ -1,21 +1,39 @@
|
||||
---
|
||||
id: 5900f3cc1000cf542c50fede
|
||||
title: 问题95:友好的链条
|
||||
title: 'Problem 95: Amicable chains'
|
||||
challengeType: 5
|
||||
videoUrl: ''
|
||||
forumTopicId: 302212
|
||||
dashedName: problem-95-amicable-chains
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
一个数的适当除数是除数字本身之外的所有除数。例如,28的正确除数是1,2,4,7和14.由于这些除数的总和等于28,我们称之为完全数。有趣的是,220的适当除数之和为284,284的适当除数之和为220,形成两个数的链。出于这个原因,220和284被称为友好对。也许鲜为人知的是较长的链条。例如,从12496开始,我们形成一个五个数字的链:12496→14288→15472→14536→14264(→12496→...)由于该链返回其起始点,因此称为友好链。找到最长友好链中最小的成员,没有超过一百万的元素。
|
||||
The proper divisors of a number are all the divisors excluding the number itself. For example, the proper divisors of 28 are 1, 2, 4, 7, and 14. As the sum of these divisors is equal to 28, we call it a perfect number.
|
||||
|
||||
Interestingly the sum of the proper divisors of 220 is 284 and the sum of the proper divisors of 284 is 220, forming a chain of two numbers. For this reason, 220 and 284 are called an amicable pair.
|
||||
|
||||
Perhaps less well known are longer chains. For example, starting with 12496, we form a chain of five numbers:
|
||||
|
||||
<div style="text-align: center;">
|
||||
12496 → 14288 → 15472 → 14536 → 14264 (→ 12496 → ...)
|
||||
</div>
|
||||
|
||||
Since this chain returns to its starting point, it is called an amicable chain.
|
||||
|
||||
Find the smallest member of the longest amicable chain with no element exceeding one million.
|
||||
|
||||
# --hints--
|
||||
|
||||
`euler95()`应返回14316。
|
||||
`amicableChains()` should return a number.
|
||||
|
||||
```js
|
||||
assert.strictEqual(euler95(), 14316);
|
||||
assert(typeof amicableChains() === 'number');
|
||||
```
|
||||
|
||||
`amicableChains()` should return 14316.
|
||||
|
||||
```js
|
||||
assert.strictEqual(amicableChains(), 14316);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
Reference in New Issue
Block a user