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:
tc = int(raw_input())
for test in xrange(tc):
	res =0
	z,m,n = [ int(x) for x in raw_input().split() ]
	for elem1 in xrange(1,int(z**0.5)+1):
		#print "elem 1 --->",elem1
		if z%elem1 == 0:
			if elem1 == z/elem1 and ((1<= elem1 <= m and 1<= z/elem1 <= n) or ( 1<= elem1 <= n and 1<= z/elem1 <= m)):
				#print "Same"
				res = res +1 
			else:
				if 1<= elem1 <= m and 1<= z/elem1 <= n:
					#print "Check 1"
					res = res +1
				if 1<= elem1 <= n and 1<= z/elem1 <= m:
					#print "Check 2"
					res = res +1
	print res