Arithmetic & Number Theory
Sum of Divisors
Sum of all positive divisors of n.
Formula
Formula
σ(n) = Σ_{k ∣ n} k
Variables
| Symbol | Definition | Type & range | Units | Role |
|---|---|---|---|---|
| n | positive integer | integer (ℤ) | — | input |
| σ(n) | divisor sum | integer (ℤ) | — | input |
Try it yourself
Interactive calculator
Worked examples
Example 1
Givenn = 28
Result56
Example 2
Givenn = 12
Result28