Good arrays | 프로그래밍의 벗 PivotOJ
PivotOJ

Good arrays

시간 제한: 2000ms메모리 제한: 1024MB출처: MOOI 2021-22 finalBOJ 30668

문제

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 a={a1,a2,,an}a=\{a_1,a_2,\ldots,a_n\} good iff for every ii from 11 to n1n-1, aia_i is divisible by ai+1a_{i+1}. Please help him count the number of good arrays of length nn consisting of integer numbers not greater than cc.

입력

The only input line contains two integers nn and cc (1n,c51071 \le n, c \le 5 \cdot 10^7) --- the length of the array and the maximum allowed value.

출력

Output a single integer --- the total number of good arrays of length nn consisting of positive integers not greater than cc. As this number might be quite large, please output its remainder modulo 998244353998\,244\,353.

예제

예제 1

입력
3 3
출력
7

예제 2

입력
2 6
출력
14
코드를 제출하려면 로그인하세요.