Suppose that I have N different sets, Each set contains some numbers such that :
First set contains only ones., Second set contains only twos, and so on.
It's not necessarily that all sets have the same number of elements.
If I want to calculate how many ways to choose K distinct numbers of those sets, Is there any rule for that ?
Example :
I have 4 sets : {1, 1, 1}, {2, 2}, {3, 3, 3, 3}, {4}.
and K = 3
Then I can choose for example : {1, 2, 3} in 24 different ways.
choose : {1, 2, 4} in 6 different ways.
choose : {2, 3, 4} in 8 different ways.
So I choose 3 different numbers in 24 + 6 + 8 = 38 ways.
The same thing but I don't want to do like this, I want some equation to calculate the answer