Divisors of a Binomial Coefficient
Time limit1sMemory limit256 MB
For each pair n and k, count the distinct divisors of the binomial coefficient C(n, k), where n is at most 431.
- Level
Medium7 of 10
- Topics
- Number theory, Math, Combinatorics, Dynamic programming
- Solved
- No attempts yet
Problem
Given two integers and , determine the number of distinct divisors of the binomial coefficient .
Input
The input consists of several test cases. Each test case is a single line containing two integers and (), separated by a single space. Input continues until end of file (EOF).
Output
For each test case, output a single line containing one integer — the number of distinct divisors of . For the given inputs, this value does not exceed .