Given $n$ red and $n$ black cards, what is the expected length of the longest sequence after the $2n$ cards are shuffled? A sequence here is defined as the number of consecutive cards of the same color.
For example, if $n = 2$, and suppose that the shuffling results in red, black, black, red, then the longest sequence is 2.
For the $n = 2$ case, we have the following possibilities
$$ BRBR \\ RBRB \\ BRRB \\ RBBR \\ BBRR \\ RRBB \\ $$
And the expectation of the longest sequence is $1/6 * (1 + 1 + 2 + 2 + 2 + 2) = 10/6$. But I am lost on how to extend this to the generic $n$ case. Is the derivation actually straightforward/simple?
One idea that just popped up is that we can consider all possible locations at which we can form a longest sequence of $n/2. n/2 -1, n/2-2, etc...$. This seems rather tedious however but perhaps it's the only suitable approach here?