A deck contains six cards, one pair labelled '1', another pair labelled '2' and the last labelled '3'. The deck is shuffled and you a pair of cards at a time until there are no cards left. A pair of cards $(i,j)$ is called acceptable if $|i-j|\leq1$. What is the probability you have drawn only acceptable pairs? How does your answer change if there are $n$ pairs and the condition becomes $|i-j|\leq k$?
I'm quite stuck on the last bit of the problem. Here's my approach to the first part:
My solution so far: My idea is that as long as a pair $(1,3)$ or $(3,1)$ is drawn, then set contains an unacceptable pair. The probability $(1,3)$ or $(3,1)$ is drawn first is $$2\left(\frac26\times\frac25\right)=\frac4{15},$$
the probability $(1,3)$ or $(3,1)$ is drawn second is $$\left(1-\frac4{15}\right)\frac4{15}=\frac{44}{225},$$
and the probability $(1,3)$ or $(3,1)$ is drawn last is $$\left(1-\frac4{15}-\frac{44}{225}\right)\frac4{15}=\frac{484}{3375},$$
so the probability of having only acceptable pairs is $$1-\frac4{15}-\frac{44}{225}-\frac{484}{3375}=1-\frac{900}{3375}-\frac{660}{3375}-\frac{484}{3375}=\frac{1331}{3375}.$$
(Correct me if this is wrong please!)
However, I am unsure of how to extend this to a more general number of cards and relaxed constraint. Taking the complement seems to be less efficient compared to finding the actual probability, but I'm not sure if there's a closed form. Qualitatively, all I can see is the probability dropping to zero as the number of cards increases. Could someone provide better insight? Cheers!
Not a complete answer, but it might help.
Let $[n]=\{1,2,\ldots,n\}$ . The deck of cards is represented by the multiset $D_n=[n]\cup[n]$. For each $m$, let $S_m^n$ be a partitioning of $D_n$ into subsets of $2$, and $S^n=\bigcup_m S_m^n$ (note that the order in which the pairs are drawn doesn't actually matter, so it isn't necessary to count the permutations).
Call the $m^\text{th}$ partitioning $k$-acceptable iff, for all $\{i,j\}\in S_m^n$, $|i-j|\le k$, and $k$-unacceptable otherwise. The task is now to find the total number of partitionings (the largest $m$) for each $n$, and the subset of $k$-acceptable partitionings.
The first part is relatively easy. I'm not great with combinatorics, so I just used the formula from this question, played with Mathematica, and searched the OEIS until I got this:
$$|S^n|=(2n-1)!!$$
For the second part, let $A_k^n$ be the set of $k$-acceptable partitionings of $D_n$. Then, the probability that a particular partitioning is $k$-acceptable is:
$$P(k,n)=\frac{|A_k^n|}{|S^n|}=\frac{|A_k^n|}{(2n-1)!!}$$
All that's left is to determine the size of $A_k^n$.
Note:
Assuming that I haven't made any mistakes, if Christopher Well's answer is correct and $P(1,3)=\frac{1}{3}$, then $|A_1^3|=5$.