#t313. 放苹果

放苹果

Putting Apples

Problem Background

Special for beginners, ^_^

Problem Description

Put MM identical apples into NN identical plates, where some plates may be left empty. How many different ways of distribution are there (denoted by KK)? Note that 5,1,15,1,1 and 1,5,11,5,1 are considered the same distribution.

Input Format

The first line is the number of test cases tt (0≤t≤200 \le t \le 20). Each of the following tt lines contains two integers MM and NN, separated by a space (1≤M,N≤101 \le M, N \le 10).

Output Format

For each input case with MM and NN, output the corresponding KK on a single line.

Sample Input

1
7 3

Sample Output

8

Constraints

1s, 1024KiB for each test case.