在数论中,若一个正整数除了本身之外所有因子之和比此数自身小,则称此数为亏数(又称作缺数)。
盈数的因子的总和大于数字本身,而亏数的因子的总和小于数字本身。
In an abundant number, the sum of the factors is greater than the number, and in a deficient number, the sum of the factors is less than the number.
过剩数是指所有因子的和大于该数,而亏数是指该数的因子的总和小于该数。
An abundant number's sum of factors is greater than the number, and a deficient number's sum of factors is less. Listing 1 shows the Scala version.
我们来回顾一下分类器的要求:对于任何大于1的正整数,必须将其归为以下几个类别:完全数、过剩数或亏数。
Recapping the classifier's requirements: Given any positive integer greater than 1, you must classify it as perfect, abundant, or deficient.
应用推荐