409881: GYM103821 M Permutations Score
Description
A permutation of size $$$N$$$ is an array containing distinct values between $$$[1, N]$$$.
Define the score of a permutation $$$P$$$ of size $$$n$$$ as the sum of the number of divisors for every $$$P[i]$$$ that appear strictly before it in the permutation, more formally:
$$$$$$F(P)=\sum_{i=2}^N\sum_{j=1}^{i-1}(P[j] \mid P[i])$$$$$$
For example, the score of permutation $$$\{2,1,3,4\}$$$ is $$$3$$$.
Your task is to find the sum of scores for all permutations of size n.
Since the answer might be very large, output it modulo $$${10}^9+7$$$.
InputEach test contains multiple test cases. The first line contains the number of test cases $$$T$$$ ($$$1 \le T \le 10^5$$$). Description of the test cases follows.
Each of the following $$$T$$$ lines contains a single integer $$$N$$$ ($$$1\le{N}\le{10}^5$$$), the size of the permutations.
OutputFor each test case, print in one line the total sum of scores of all permutations in this test case module $$$1\,000\,000\,007$$$.
ExampleInput3 1 2 3Output
0 1 6