#P7857. Absolute Math
Absolute Math
Absolute Math
Problem Description
Let , where is Mobius function . Output .
Input
The first line contains an integer - the number of test cases. Each line of the following lines contains two integers .
Output
Print the answer modulo for each test case.
Sample Input
3
6 3
6 2
1 4
Sample Output
12
8
7
Source
2020 Multi-University Training Contest 9