The musical band Be Geeks! was aptly named, as all its members are genuine math geeks. Among other things, they enjoy exploring various properties of integer sequences. Let us take a look at one of the topics that has caught their interest.
Let be a nonempty sequence of positive integers: A = (a_1, a_2, \ldots, a_n).
For any pair of indices 1 \le i \le j \le n, define:
Finally, define as the sum of P(i,j) over all pairs of indices 1 \le i \le j \le n:
Here, denotes the greatest common divisor of the given integers.
The first line contains one integer n~(1 \le n \le 2 \cdot 10^5).
The second line contains integers a_1, a_2, \ldots, a_n~(1 \le a_i \le 10^9).
Print the value of modulo 10^9 + 7.
Example 1
Example 2