2320: 「一本通 6.2 练习 5」樱花
Memory Limit:512 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
**原题来自:[HackerRank Equations](https://www.hackerrank.com/challenges/EQUATIONS/problem)**
求不定方程:
$$\frac{1}{x}+\frac{1}{y}=\frac{1}{n!}$$
的正整数解 $(x,y)$ 的数目。
Input
一个整数 $n$。
Output
一个整数,表示有多少对 $(x,y)$ 满足题意。答案对 $10^9+7$ 取模。
Sample Input Copy
2
Sample Output Copy
3
HINT
数据范围:对于 $30\%$ 的数据,$n\le 100$; 对于全部数据,$1\le n\le 10^6$。