No.1659 Product of Divisors
問題文最終更新日: 2022-04-26 00:09:13
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
yukicoder contest 311
(順位表)
の他の問題:
Problem Statement
Find the number, modulo $10^9+7$, of tuples $(d_1,\ldots,d_K)$ of $K$ positive divisors of $N$ such that the product $d_1\cdots d_K$ is also a divisor of $N$.
Constraints
- $1 \le N \le 10^{12}$
- $1 \le K \le 10^{12}$
- All inputs are integers
Input
$N$ $K$
Output
Print the number of tuples $(d_1,\ldots,d_K)$ satisfying the condition, modulo $10^9+7$.
Sample
Sample 1
Input
9 2
Output
6
There are $6$ such tuples: $(1,1),(1,3),(1,9),(3,1),(3,3),(9,1)$.
Sample 2
Input
123456789 12345
Output
429901151
Print the answer modulo $10^9+7$.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
Kazun