The problem statement is simple, given A and B, find the sum of maximum odd divisor of the numbers between A and B (inclusive).
INPUT:
There are several test cases per file. Each file begins with T, number of test cases and the next T lines contain two values A and B.
CONSTRAINTS:
For the 1st file, .
For the 2nd file, .
For the 3rd file, .
For the 4th file, .
OUTPUT:
For each test case, print the answer. Since the answer can be huge, print it modulo .