- #1
Awlad Hossain
- 2
- 0
we have to make n with k integers.k integers will have to be choosen from k ranges.Every range has a minimum value and a maximum value.In how many ways we can make n
according to the conditions.For example,k=4,n=10
and the ranges are :
1 1
2 2
3 3
4 4
we can make n in only one way.Another example is k=2,n=10
and the ranges are:
1 10
1 10
Here,the result will be 9How can I find the number of ways by using inclusion-exclusion principle.Can anyone give me hints with better explanation?
according to the conditions.For example,k=4,n=10
and the ranges are :
1 1
2 2
3 3
4 4
we can make n in only one way.Another example is k=2,n=10
and the ranges are:
1 10
1 10
Here,the result will be 9How can I find the number of ways by using inclusion-exclusion principle.Can anyone give me hints with better explanation?