Calculate the sum of the series :

INPUT:

First line contains the number of test cases t, for each test case a single line representing m and n with two space separated integers.

OUTPUT:

For each test case, a single line representing thee sum of the series in the form of p/q.

Constraints:

1 ≤ t ≤ 100

1 ≤ m, n ≤ 30

SAMPLE INPUT
1
2 3

SAMPLE OUTPUT
31/224
def gcd(x, y):
    while y != 0:
        (x, y) = (y, x % y)
    return x
t=(int)(raw_input())
for i in range(t):
   m, n = [int(x) for x in raw_input().split()]
   result=pow(2,m+n)
   result1=(pow(2,n)-1)*(result);
     
   result-=1
   print str(result)+str('/')+str(result1)