0 votes 0 votes https://gateoverflow.in/?qa=blob&qa_blobid=14775353093279358576 I'm unable to understand how the value of K, is equivalent to selecting m integers with repetition allowed, out of n integers (1,2,3,...,n). Kindly explain in detail, preferably visual detail. Mathematical Logic counting discrete-mathematics + – nick17india asked May 25, 2017 nick17india 323 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply Akriti sood commented May 25, 2017 reply Follow Share for n=4 and m =3,i am getting k =20..so how is it equal to selecting 3 out of 4? 0 votes 0 votes bhuv commented Jun 3, 2017 reply Follow Share It is explained in paragraph just below that example. Note: try to run the loop for m=2 n={1,2}. You we get it by seeing the value of i in each loop and reading that paragraph again. 0 votes 0 votes Please log in or register to add a comment.