| 2022 SYSU School Contest |
|---|
| Finished |
How many positive integer sequences of length $$$n$$$ satisfy that $$$1 \le a_i \le m$$$, and the adjacent elements are coprime.
The answer maybe too large, so you only need to output the result of its modulo of 998244353.
Two positive ingeter $$$n(1\le n \le 1000)$$$,$$$m(1\le m \le 1000)$$$.
An integer represents the answer.
2 5
19
| Name |
|---|


