Binary numbers and their pattern of bits are always very interesting to computer programmers. In this problem you need to count the number of positive binary numbers that have the following properties:
The numbers are exactly N bits wide and they have no leading zeros.
The frequency of zeros and ones are equal.
The numbers are multiples of K.
The input file contains several test cases. The first line of the input gives you the number of test cases, T ( 1T100). Then T test cases will follow, each in one line. The input for each test case consists of two integers, N ( 1N64) and K ( 0K100).
For each set of input print the test case number first. Then print the number of binary numbers that have the property that we mentioned.