Under construction

Still being built. Things may change

Good arrays

Time limit2sMemory limit1024 MB

Summary
Count arrays of length n with values up to c where each element is divisible by the next one, modulo 998244353.
Level

Medium6 of 10

Topics
Number theory, Combinatorics, Math
Solved
No attempts yet

Problem

Recently Vasya learned about integer division. Inspired by this sacred knowledge, he decided to learn more about arrays of positive integers that satisfy some divisibility conditions. More precisely, Vasya calls an array a={a1,a2,…,an}a=\{a_1,a_2,\ldots,a_n\} good if for every ii from 11 to n−1n-1, aia_i is divisible by ai+1a_{i+1}. Count the number of good arrays of length nn consisting of integers not greater than cc.

Input

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

Output

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

Examples2

  1. Example 1

    Input
    3 3
    
    Expected output
    7
    
  2. Example 2

    Input
    2 6
    
    Expected output
    14