Sum of Series

0

0 votes
Problem

Calculate the sum of the series :

enter image description here

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

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?