#P13541. [OOI 2022] Good arrays
[OOI 2022] Good arrays
题目描述
Recently Vasya learned about integer division. Inspired by this sacred knowledge, he decided to learn more about arrays of positive integers which satisfy some divisibility conditions. More precisely, Vasya calls an array iff for every from to , is divisible by . Please help him count the number of good arrays of length consisting of integer numbers not greater than .
输入格式
The only input line contains two integers and () --- the length of the array and the maximum allowed value.
输出格式
Output a single integer --- the total number of good arrays of length consisting of positive integers not greater than . As this number might be quite large, please output its remainder modulo .
3 3
7
2 6
14
提示
The testset for this problem consists of 7 test groups. You get points for a group only if your solution passes all tests from this group and from all the required groups.
means that you will not get immediate feedback for this group and you will be able to see the outcome only after the end of the competition.
Group | Points | Additional constraints | < | Required groups | Comment |
---|---|---|---|---|---|
0 | -- | Sample test cases. | |||
1 | |||||
2 | |||||
3 | -- | ||||
4 | -- | ||||
5 | -- | ||||
6 | -- | ||||
7 | -- | -- | Offline-evaluation. |