You are given an integer interval $$$[l,r]$$$. At first, your score $$$sco$$$ is equal to $$$0$$$.
Repeat the following process:
Your task is to find the expected value of $$$sco$$$. Output the answer modulo $$$998\,244\,353$$$.
Formally, let $$$M = 998\,244\,353$$$. It can be shown that the answer can be expressed as an irreducible fraction $$$\frac{p}{q}$$$, where $$$p$$$ and $$$q$$$ are integers and $$$q \not \equiv 0 \pmod{M}$$$. Output the integer equal to $$$p \cdot q^{-1} \bmod M$$$. In other words, output such an integer $$$x$$$ that $$$0 \le x \lt M$$$ and $$$x \cdot q \equiv p \pmod{M}$$$.
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^5$$$). The description of the test cases follows.
The only line of each testcase contains two integers $$$l$$$ and $$$r$$$ ($$$1 \le l \le r \le 2 \cdot 10^6$$$).
For each test case, print a single integer — the answer modulo $$$998\,244\,353$$$.
42 31 15 81 2000000
51454755778881266578
In the first test case, the initial interval is $$$[2,3]$$$. The following events occur with equal probability:
Thus, the expected value of $$$sco$$$ is $$$\frac{4+5+5+6}{4}=5$$$.
| Name |
|---|


