def factorization(N):#素因数分解√N arr = [] temp = N for i in range(2, int(-(-N**0.5//1))+1): if temp%i==0: cnt=0 while temp%i==0: cnt+=1 temp //= i arr.append([i, cnt]) if temp!=1: arr.append([temp, 1]) if arr==[]: arr.append([N, 1]) return arr #[素因数、個数] N,K,M = map(int,input().split()) if N == 1: print(1) exit() pp = factorization(N) bb = [] for i in range(len(pp)): a,b = pp[i] b = min(b*K,30) bb.append((a,b)) ans = [] def func(ind,val): if ind == len(bb): ans.append(val) return a,b = bb[ind] for i in range(b+1): if val*(a**i) > M: break func(ind+1, val*(a**i)) func(0,1) print(len(ans))