AtCoder Beginner Contest 110
翻译中…
Problem Statement
翻译中…
You are given positive integers $N$ and $M$.
翻译中…
How many sequences $a$ of length $N$ consisting of positive integers satisfy $a_1 \times a_2 \times ... \times a_N = M$? Find the count modulo $10^9+7$.
翻译中…
Here, two sequences $a'$ and $a''$ are considered different when there exists some $i$ such that $a_i' \neq a_i''$.
翻译中…
Constraints
翻译中…
- All values in input are integers.
$1 \leq N \leq 10^5$$1 \leq M \leq 10^9$
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
N M
翻译中…
Output
翻译中…
Print the number of the sequences consisting of positive integers that satisfy the condition, modulo $10^9 + 7$.
翻译中…
样例
Input #1
2 6
Output #1
4
Four sequences satisfy the condition: $\{a_1, a_2\} = \{1, 6\}, \{2, 3\}, \{3, 2\}$ and $\{6, 1\}$.
Input #2
3 12
Output #2
18
Input #3
100000 1000000000
Output #3
957870001
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。