Now Yoshinow2001 is concerned that this algorithm is not random enough ------ after all, if you want to randomize a permutation, the expected number of elements for ai=i should be n−1. So he wants to ask what the mathematical expectation of the final ans is.
The first line of input is a positive integer T(1≤T≤10^5) representing the number of data cases.
For each cases consists of a single line of two integers n,m, separated by a space. Where 1≤n≤10^18,0≤m≤10^18, ensure that n is not a multiple of 998 244 353998 244 353.
3
1 0
1 1
2 1
0
0
1