| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 | 512 MB | 54 | 20 | 9 | 29.032% |
Bobo has a set $P$ of $\displaystyle\frac{n(n + 1)}{2}$ points: $\{ (x, y) : 1 \leq x \leq y \leq n, \ x, y \in \mathbb{Z} \}$. He would like to know the number of distinct lines passing through at least two points in $P,ドル taken modulo $(10^9+7)$.
The input contains zero or more test cases, and is terminated by end-of-file.
Each test case is a single line containing an integer $n$ (2ドル \leq n \leq 2 \cdot 10^9$).
It is guaranteed that the number of test cases does not exceed 10ドル^5,ドル and the sum of all $n$ does not exceed 2ドル \cdot 10^9$.
For each test case, output an integer which denotes the number of distinct lines.
2 3 5
3 9 51