Problem: Alice has just learnt multiplying two integers. He wants to multiply two integers X and Y to form a number Z. To make the problem interesting he will choose X in the range [1,M] and Y in the range [1,N]. Help him to find the number of ways in which he can do this.

Input
First line of the input is the number of test cases T. It is followed by T lines. Each line has three space separated integers, the numbers Z, M and N.

Output 
For each test case output a single integer, the number of ways.

Constraints
1 ≤ T ≤ 50 
1 ≤ Z ≤ 10^12
1 ≤ M ≤ 10^12
1 ≤ N ≤ 10^12

SAMPLE INPUT
4
4 7 9
5 2 10
5 5 6
2 8 1

SAMPLE OUTPUT
3
1
2
1

Solution (in PYTHON):

Solution:
'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
from math import sqrt

kases = int(raw_input())
for kase in range(kases):
	entry = raw_input()
	all_values = entry.split(' ')
	z = int(all_values[0])
	m = int(all_values[1])
	n = int(all_values[2])
	
	z_sqrt = int(sqrt(z)) + 1
	factors_list = {}
	counter = 0
	
	for x in range(1, z_sqrt):
		if z % x == 0:
			factors_list[x] = z // x
	
	for x in factors_list:
		if x <= m and factors_list[x] <= n:
			counter += 1
		if x <= n and factors_list[x] <= m and x != factors_list[x]:
			counter += 1
	
	print counter