#Lutece1160. LCM and GCD
LCM and GCD
Migrated from Lutece 1160 LCM and GCD
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
Can you calculate how many sequence satisfied that gcd() = and lcm() = . All () are positive integers.
gcd is the greatest common divisor and lcm is the least common multiple.
Two sequences and are different if there is at least one () that .
Input
There is only one line contains three integers (), (), ().
Output
Output one line with the answer mod .
Samples
2 1 6
4
Note
Sample is (1,6), (2,3), (3,2), (6,1).
Resources
2015 UESTC ACM Summer Training Team Selection (4)