Semiperfect Number Calculator

Input a number to check if it's semiperfect, or input a range to generate all semiperfect numbers within that range.

Semiperfect Number Check or Generate

What Is a Semiperfect Number?

A semiperfect number, also known as a pseudoperfect number, is a positive integer that equals the sum of some (but not necessarily all) of its proper divisors. Unlike perfect numbers, semiperfect numbers require only a subset of their divisors to sum up to the original number. For example: 12 is a semiperfect number because its divisors are 1, 2, 3, 4, 6, and 12. Among these, the subset 1 + 2 + 3 + 6 = 12.

How to Determine if a Number Is Semiperfect

  1. Find the Divisors: Identify all proper divisors of the number (excluding the number itself). For example, the divisors of 12 are 1, 2, 3, and 4.
  2. Calculate Subset Sums: Explore various combinations of these divisors to check if any subset sums up to the original number.
  3. Check the Result: If at least one subset of divisors adds up to the original number, it is semiperfect. If no subset equals the number, it is not semiperfect.

Examples

Example 1: Is 16 a semiperfect number?

Solution:

The proper divisors of 16 are 1, 2, 4, and 8.

Sum of proper divisors: 1 + 2 + 4 + 8 = 15 < 16

Conclusion: 16 is not a semiperfect number.

Example 2: Is 20 a semiperfect number?

Solution:

Find the divisors:

The proper divisors of 20 are 1, 2, 4, 5, and 10.

Subset sums:

A subset 1 + 4 + 5 + 10 = 20 exists.

Conclusion: 20 is a semiperfect number.

The First 100 Semiperfect Numbers

  • 6
  • 12
  • 18
  • 20
  • 24
  • 28
  • 30
  • 36
  • 40
  • 42
  • 48
  • 54
  • 56
  • 60
  • 66
  • 72
  • 78
  • 80
  • 84
  • 88
  • 90
  • 96
  • 100
  • 102
  • 104
  • 108
  • 112
  • 114
  • 120
  • 126
  • 132
  • 138
  • 140
  • 144
  • 150
  • 156
  • 160
  • 162
  • 168
  • 174
  • 176
  • 180
  • 186
  • 192
  • 196
  • 198
  • 200
  • 204
  • 208
  • 210
  • 216
  • 220
  • 222
  • 224
  • 228
  • 234
  • 240
  • 246
  • 252
  • 258
  • 260
  • 264
  • 270
  • 272
  • 276
  • 280
  • 282
  • 288
  • 294
  • 300
  • 304
  • 306
  • 308
  • 312
  • 318
  • 320
  • 324
  • 330
  • 336
  • 340
  • 342
  • 348
  • 350
  • 352
  • 354
  • 360
  • 364
  • 366
  • 368
  • 372
  • 378
  • 380
  • 384
  • 390
  • 392
  • 396
  • 400
  • 402
  • 408
  • 414