import java.io.*; import java.util.*; import java.util.stream.*; public class Main { static int m; static int k; static int[] values; static long[] amounts; public static void main(String[] args) throws Exception { Scanner sc = new Scanner(); int n = sc.nextInt(); k = sc.nextInt(); m = sc.nextInt(); HashMap counts = new HashMap<>(); for (int i = 2; i <= Math.sqrt(n); i++) { while (n % i == 0) { counts.put(i, counts.getOrDefault(i, 0) + 1); n /= i; } } if (n > 1) { counts.put(n, 1); } values = new int[counts.size()]; amounts = new long[counts.size()]; int idx = 0; for (int x : counts.keySet()) { values[idx] = x; amounts[idx] = counts.get(x); idx++; } System.out.println(dfw(idx - 1, 1)); } static int dfw(int idx, long v) { if (idx < 0) { return 1; } long current = 1; int ans = 0; for (int i = 0; i <= amounts[idx] * k && v * current <= m; i++) { ans += dfw(idx - 1, v * current); current *= values[idx]; } return ans; } } class Utilities { static String arrayToLineString(Object[] arr) { return Arrays.stream(arr).map(x -> x.toString()).collect(Collectors.joining("\n")); } static String arrayToLineString(int[] arr) { return String.join("\n", Arrays.stream(arr).mapToObj(String::valueOf).toArray(String[]::new)); } } class Scanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); StringBuilder sb = new StringBuilder(); public Scanner() throws Exception { } public int nextInt() throws Exception { return Integer.parseInt(next()); } public long nextLong() throws Exception { return Long.parseLong(next()); } public double nextDouble() throws Exception { return Double.parseDouble(next()); } public int[] nextIntArray() throws Exception { return Stream.of(br.readLine().split(" ")).mapToInt(Integer::parseInt).toArray(); } public String next() throws Exception { while (!st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return st.nextToken(); } }