#P4450. 双亲数
双亲数
Description
Xiao D is a math enthusiast, and his obsession with numbers has reached a crazy level.
We use to denote the greatest common divisor of and . Xiao D insists that such a close relationship can be described as parents. In this case, we call the ordered pair a parent pair of .
Unlike normal parents, for the same , it has too many parents.
For example, , , are all parent pairs of .
Thus the following question arises: for , , how many ordered pairs are parent pairs of ?
Input Format
The input contains a single line with three integers, representing , , and .
Output Format
Output a single integer on one line representing the answer.
5 5 2
3
Hint
Sample 1 Explanation
There are three parent pairs: , , .
Constraints
- For of the testdata, it is guaranteed that , .
Translated by ChatGPT 5
京公网安备 11011102002149号