SP27496 EIDSALAMI2 - Again Eid Salami
Description
Mahbub has N-1 cousins. Mahbub is the oldest among them. Now they come to their uncle for "EID SALAMI" . But they decided that the older one will strictly get more money than the younger.But their uncle has another plan . He told them that he will give them an amount of money and they have to tell them how many ways they can collect money so that the elder gets more money than the younger and they have to take all the money.
As they have to meet with their other relatives, so they come to you, as they know that you are a great programmer , and if you can solve their problem they will give you some SALAMI :)
Input Format
Input starts with an integer T, denoting the number of test cases.
Each case starts with a line containing two integers M & N. M denotes the amount of money their uncle wants to give them. N denotes the number of cousins of Mahbub (including himself).
Output Format
N/A