divisorcount1n
Divisorcount1n is the name given to the summatory divisor function, often denoted D(n). It counts the total number of positive divisors of all integers from 1 to n. If d(k) denotes the number of positive divisors of k, then D(n) = sum_{k=1}^n d(k). Equivalently, D(n) counts the number of pairs (a, b) of positive integers with ab ≤ n.
Formally, d(k) is the divisor function, multiplicative in k, with d(k) = sum_{d|k} 1. Using this, D(n)
The error term Δ(n) in the expansion D(n) = n log n + (2γ − 1)n + Δ(n) is the
Computationally, D(n) can be evaluated efficiently by using the identity D(n) = sum_{a≤n} floor(n/a) and grouping terms