Develop a C program in no more than 20 lines of code that takes two integer value M and Q and print how many anding-tuples
Develop a C program in no more than 20 lines of code that takes two integer value M and Q and print how many anding-tuples of size Q exist such that the addition of the elements of the tuple is M. Anding-tuple criteria:A pair of integers (A,B) is called anding-tuple if A&B=B. Similarly, a tuple of X non-negative integers (A1,A2,A3 .. AX) is called anding-tuple if Ai&Ai+1 = Ai+1 for 1≤i≤X-1.Input:First line contains the number of testcases(T), then T lines follow. Each of the following lines contain two space-separated integers M and Q.Example Input:14 3Example Output:2

How it Works

1
It only takes a couple of minutes to fill in your details, select the type of paper you need (essay, term paper, etc.), give us all necessary information regarding your assignment.


2
Once we receive your request, one of our customer support representatives will contact you within 24 hours with more specific information about how much it'll cost for this particular project.


3
After receiving payment confirmation via PayPal or credit card – we begin working on your detailed outline, which is based on the requirements given by yourself upon ordering.


4
Once approved, your order is complete and will be emailed directly to the email address provided before payment was made!