Let D(n) denote the number of divisors of n. D(1)=1,D(6)=4.
Let F(N,K)=N∑i=1D(iK)
You are given T tasks. Each task contains two integers, N and K. You have to output F(N,K) modulo 10^9 + 7 for every task.
Input
First line contains a single integer T, the number of tasks.
Each of the next T lines contain two integers separated by a space, N, and K respectively.
Output
For each task, print F(N,K) modulo 10^9 + 7 on a new line .
Constraints
1≤T≤104
1≤N,K≤107
In the first case, answer is D(1)+D(2)+D(3)=1+2+2=5.
In second case, answer is D(12)+D(22)+D(32)+D(42)+D(52)=1+3+3+5+3=15