What are perfect numbers? Find the only 3examples below 500

The first two are 6 and 28. The factors of 6 add up to the same thing as 6.
Six
1 * 2 * 3 = 6
1 + 2 + 3 = 6
Twenty eight
1 + 2 + 4 + 7 + 14 = 28 (the multiplication is not the same as for 6).
Four hundred ninety Six
This one is kind of hard to believe
It is 16 * 31
1 + 2 + 4 + 8 + 16 + 248 + 124 + 62 + 31 = 496