A number is called a perfect number if the sum of all of its factors is equal to twice of that number.
The first perfect number is 6, because 1, 2, 3 and 6 are its divisors, and 1 + 2 + 3 + 6 = 2 × 6 = 12. The next perfect number is 28, because 56 = 2 × 28 = 1 + 2 + 4 + 7 + 14 + 28.