5

How Many Perfect Numbers are there Between 1 and 100?

 1 week ago
source link: https://www.geeksforgeeks.org/how-many-perfect-numbers-are-there-between-1-to-100/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

How Many Perfect Numbers are there Between 1 and 100?

Last Updated : 26 Mar, 2024

Between 1 and 100, there are two perfect numbers, namely 6 and 28.

Let’s examine the two perfect numbers between 1 and 100:

Perfect Number 6:

The divisors of 6 are 1, 2, and 3.

The sum of these divisors (excluding 6 itself) is 1+2+3=6.

Therefore, 6 is a perfect number.

Perfect Number 28:

The divisors of 28 are 1, 2, 4, 7, and 14.

The sum of these divisors (excluding 28 itself) is 1+2+4+7+14=28.

Therefore, 28 is also a perfect number.

Perfect numbers are relatively rare, and the discovery of more perfect numbers becomes increasingly challenging. Euler proved that if 2p−1 is a prime number, then 2p−1(2p − 1) is a perfect number, where p is a prime number. The known perfect numbers follow this formula, with 6 corresponding to 22(23 − 1) and 28 corresponding to 23(24 − 1).

In the range from 1 to 100, these are the only two known perfect numbers, and they have been known since ancient times.

Here's a complete roadmap for you to become a developer: Learn DSA -> Master Frontend/Backend/Full Stack -> Build Projects -> Keep Applying to Jobs

And why go anywhere else when our DSA to Development: Coding Guide helps you do this in a single program! Apply now to our DSA to Development Program and our counsellors will connect with you for further guidance & support.

Like Article
Suggest improvement
Share your thoughts in the comments

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK