Arithmetic & Number Theory
Number of Divisors
Count positive divisors of n.
Formula
Formula
d(n) = #{ k : k ∣ n }
Variables
| Symbol | Definition | Type & range | Units | Role |
|---|---|---|---|---|
| n | positive integer | integer (ℤ) | — | input |
| d(n) | divisor count | computed result | — | result |
Try it yourself
Interactive calculator
Worked examples
Example 1
Givenn = 36
Result9
Example 2
Givenn = 60
Result12