The first line of input contains an integer T, indicating the number of test cases.
Each test case contains a line of two integers, respectively n, k.
It is guaranteed that the sum of n does not exceed.
For each test case output an integer, indicating f(n,k).