You are given an array of integers $$$a_1, a_2, \ldots, a_n$$$.
A quadruple $$$(i, j, k, l)$$$ is called good if:
Your task is to count the number of ordered good quadruples.
Since the answer can be large, print it modulo $$$10^9 + 7$$$.
The first line contains a single integer $$$t$$$ ($$$1 \le t \le 10^5$$$) — the number of test cases.
Each test case consists of two lines:
It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$10^5$$$.
For each test case, output a single integer — the number of ordered good quadruples modulo $$$10^9 + 7$$$.
244 3 1 162 2 2 2 3 5
424
In the first test case, the good quadruples of indices are: (1, 2, 3, 4), (1, 2, 4, 3), (2, 1, 3, 4), (2, 1, 4, 3) since $$$\gcd(4,3) = 1$$$ and $$$\operatorname{lcm}(1,1) = 1$$$.