#P5150. 生日礼物
生日礼物
Description
wyh has a lucky number . Now hke plans to give him a gift with thoughtfulness value , and ljc plans to give him a gift with thoughtfulness value . Together, their gifts have thoughtfulness value , where denotes the least common multiple. wyh receives this combined gift.
If the thoughtfulness value of the gift wyh receives is exactly , he will be happy. How many ways are there to give gifts that make wyh happy?
Input Format
A positive integer .
Output Format
An integer representing the answer.
6
9
Hint
Sample Explanation
These ways are: $(1,6),(2,6),(3,6),(6,6),(2,3),(3,2),(6,1),(6,2),(6,3)$.
Constraints
For of the testdata, .
For of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号