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:
from math import sqrt
T = input()
for i in range(T):
	z,m,n = map(int, raw_input().split())
	if(n < m):
		m,n = n,m
	count = 0
	'''
	for j in range(1,m//2):
		if(z%j == 0):
			if(z/j <= n):
				count+=1
	print count
	'''
	zroot = sqrt(z)
	limit = m
	if(zroot < m):
		limit = zroot
		
	i = 1
	while(i <= limit):
		if(z%i == 0):
			if(z/i <= m):
				count+=1
			if(z/i <= n and z/i != zroot):
				count+=1
		i+=1
	print count