For a standard deck of 52 cards, lay down all 52 cards in a line. What is the probability that the card immediately to the right of the first queen is a queen or a seven?
I tried 51!*28/52! but I dont think that I'm accounting for finding the first queen.
51! ways to order the items so that queen is next to another queen or seven (treat as 1 item).
28 ways to rearrange first queen with another queen or seven
52! possible outcomes.
Break into cases:
The first queen is followed by another queen.
First, pick the order that the queens arrive in: $4!$ choices
Next, gluing the first two queens together, pick the three positions occupied by the queens in the $51$ positions for the deck: $\binom{51}{3}$ choices
Finally, from front to back, choose how all other positions are occupied by the remaining cards: $48!$ choices, giving then a total of $4!\cdot \binom{51}{3}\cdot 48!$ in this case
The first queen is followed by a $7$.
First, pick which queen appears first and which $7$ it was: $4^2$ choices.
Gluing the $7$ to that queen, choose the order in which the remaining queens occur: $3!$ choices.
Choose the positions occupied by the queens (remembering the $7$ is glued to the queen in the front): $\binom{51}{4}$ choices.
Finally, choose how the remaining cards are arranged in the remaining positions: $47!$ choices, for a total of $4^2\cdot 3!\cdot \binom{51}{4}\cdot 47!$ choices.
This is out of the $52!$ different options for how the deck could be arranged for a final probability of:
$$\frac{4!\cdot\binom{51}{3}\cdot 48!+4^2\cdot 3!\cdot \binom{51}{4}\cdot 47!}{52!}$$