logo AlgoBeat OnlineJudge
登录 注册

#213674. [OOI 2022] Good arrays

内存限制:1024 MiB 时间限制:2000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

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 .

样例

样例输入 1

3 3

样例输出 1

7

样例输入 2

2 6

样例输出 2

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.