examples of perfect number
Answers
Answered by
2
Answer:
Step-by-step explanation:
A perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself.
6 = 1 + 2 + 3
28 = 1 + 2 + 4 + 7 + 14
You can use simple formula for generating perfect numbers..
[2^(p−1)] * [2^p − 1] where p is any prime number only like 2,3,5,7,11 .......
for p=2 it gives 6
p=3 -> 28
p=5 -> 496
Hope it helps :-)
Similar questions