Let's assume that A = {1,2,3,4,5,6}.
3 numbers are selected from A in a repeated manner. Therefore, there are 6x6x6=216 possibilities which are;
111,112,113,...,166,
211,212,213,...,266,
311,312,313,...,366,
411,412,413,...,466,
511,512,513,...,566,
611,612,613,...,666.
How many of them contain 2 AND 5 ?
When calculated manually, the result is 30. However, how to get 30 by calculating with permutation and combination?
For this type of questions, I want to extract a general formula with permutation and combination.
Thanks in advance.