Arithmetic & Number Theory
Perfect Number Check
True if n equals the sum of its proper divisors.
Formula
Formula
n = Σ proper divisors
Variables
| Symbol | Definition | Type & range | Units | Role |
|---|---|---|---|---|
| n | positive integer | integer (ℤ) | — | input |
Try it yourself
Interactive calculator
Worked examples
Example 1
Givenn = 28
ResultTrue
Example 2
Givenn = 12
ResultFalse