How many nondecreasing sequences of length 10 can you make from the set {0,1,2,...,100}? An example is 0,0,5,10,10,10,15,25,35,92.
Let i = 1,2,3...10 and let each of i appear ni number of
times in a non decreasing sequence of length 10. As the sequence
should be non decreasing it should look like this:
{...n1 number of 1's.....n2 number of
2's..........n100number of 100's...}
with subject to constraint: n1 + n2 +
n3 +.....+ n100 = 10
n1 + n2 + n3 +.....+
n100 = 10
The number of non-negative solutions to the above
equation gives the total number of non-decreasing sequences. Each
solution gives a unique sequence.
Number of non-negative solution :
Get Answers For Free
Most questions answered within 1 hours.