50 point. a challange for brainy moderators! <br />4 boxes are there A,B,C,D<br />box A contains n1 different objects<br /> box B contains n2 different objects<br />box C contains n3 identical objects<br />box D contains n4 identical objects <br />where,<br />n1>n2>n3>n4<br />find the no. of ways to choose the objects such that<br />1: no restrictions<br />2: at least 1 objects from each box<br />3: equal no. of objects from A and B 4:Equal no. of objects from A and C GIVE EXPLAINATION
#REAL CHALLANGE
Answers
Answered by
8
Given a value N, if we want to make change for N cents, and we have infinite supply of each of S = { S1, S2, .. , Sm} valued coins, how many ways can we make the change? The order of coins doesn’t matter.
For example, for N = 4 and S = {1,2,3}, there are four solutions: {1,1,1,1},{1,1,2},{2,2},{1,3}. So output should be 4. For N = 10 and S = {2, 5, 3, 6}, there are five solutions: {2,2,2,2,2}, {2,2,3,3}, {2,2,6}, {2,3,5} and {5,5}. So the output should be 5.
Answered by
0
Similar questions