n,k,m = map(int,input().split()) divs = {} for i in range(2,int(n**0.5)+1): if n%i: continue c = 0 while n%i == 0: n //= i c += 1 divs[i] = c*k if n: divs[n] = k dp = set() dp.add(1) for key,value in divs.items(): ndp = set() for d in dp: ndp.add(d) nd = d for p in range(value): nd *= key if nd <= m: ndp.add(nd) else: break dp = ndp print(len(dp))