#arc102a. [arc102_a]Triangular Relationship
[arc102_a]Triangular Relationship
Problem Statement
You are given integers and . Find the number of triples of positive integers not greater than such that and are all multiples of . The order of does matter, and some of them can be the same.
Constraints
- and are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the number of triples of positive integers not greater than such that and are all multiples of .
Sample Input 1
Sample Output 1
and satisfy the condition.