100 atcoder#ABC110D. [ABC110D] Factorization
[ABC110D] Factorization
Score : points
Problem Statement
You are given positive integers and .
How many sequences of length consisting of positive integers satisfy ? Find the count modulo .
Here, two sequences and are considered different when there exists some such that .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the number of the sequences consisting of positive integers that satisfy the condition, modulo .
2 6
4
Four sequences satisfy the condition: and .
3 12
18
100000 1000000000
957870001