Who doesnโt love math ๐
Let p, q and n be natural numbers. We will say that a pair of natural numbers (a,b) is interesting when:
The goal of this task is simple - find the number of interesting pairs!
Write a program divide, that given the three numbers p, q and n, computes the number of interesting pairs.
The only line of the standard input contains the numbers p, q and n.
On the single line of the standard output, print the number of interesting pairs. It is guaranteed that the answer less than 1018.