<sectionid="description">如果$ N \ neq M $和N $ $的<ahref="http://rosettacode.org/wiki/Proper divisors"title="适当的除数">适当除数之</a>和($ \ mathrm {sum}(\ mathrm {propDivs}(N)),两个整数$ N $和$ M $被认为是<ahref="https://en.wikipedia.org/wiki/Amicable numbers"title="wp:友善号码">友好对</a> $)$ = M $以及$ \ mathrm {sum}(\ mathrm {propDivs}(M))= N $。示例:1184和1210是友好对,具有适当的除数:1,2,4,8,16,32,37,74,148,296,592和1,2,5,10,11,25,55,分别为110,121,242,605。任务:计算并显示低于20,000的Amicable对(有八个)。相关任务<ahref="http://rosettacode.org/wiki/Proper divisors"title="适当的除数">适当的除数</a><ahref="http://rosettacode.org/wiki/Abundant, deficient and perfect number classifications"title="丰富,不足和完善的数字分类">丰富,缺陷和完善的数字分类</a><ahref="http://rosettacode.org/wiki/Aliquot sequence classifications"title="等分序列分类">等分序列分类</a>及其友好分类。 </section>