You are given a directed graph $$$G = (V,E)$$$ with $$$n$$$ nodes. The set of vertices is $$$V = \{1,2,\dots,n\}$$$. For every node $$$u \in V$$$, there is a directed edge from $$$u$$$ to each of its proper divisors. Formally: $$$$$$ (u,v) \in E \quad \text{iff} \quad v \mid u \quad \text{and} \quad 1 \leq v \lt u. $$$$$$
For each node $$$u$$$, define:
The length of a path is the number of edges it contains.
Your task is to compute the following sum: $$$$$$ S(n) = \sum_{u=1}^{n} \max\big(I(u), O(u)\big). $$$$$$
The input consists of a single integer $$$n$$$ ($$$1 \leq n \leq 10^{10}$$$).
Output a single integer — the value of $$$S(n)$$$.
1
0
3
3
4
6
5
7
| Name |
|---|


