题目描述
Micro has just learnt about factorials. So he went to Ravi's room to boast about it. But Ravi being smart gave him a problem on factorials. He asked him number of numbers which divide X! but does not divide Y!. Help Micro solve the problem.
Input:
First line consists of T denoting number of test cases.
Each test case consists of a single line containing two space separated integers denoting X and Y.
Output:
For each test print the number of numbers which divide X! but does not divide Y! in a new line. SInce the answer can be large you need to print the output modulo 10^9+7
Constraints:
1 ≤ T ≤ 10^4
1 ≤ X, Y ≤ 10^5
SAMPLE INPUT
1
4 3
SAMPLE OUTPUT
4
输入格式
见题面
输出格式
见题面
样例输入
10
20 83
92 77
128 93
178 86
70 49
89 62
149 90
89 63
66 40
108 72
样例输出
0
619034064
604329140
813841872
146836020
460240835
248860602
855735753
93464770
984486865