\[d\left(n\right)=\sum_{d\mathbin{|}n}1\]