A playlist has $10$ songs. Two musics players ($A$ and $B$) implement the "shuffle and repeat" feature a little differently. In $B$, no song will be played twice in a row, but it is possible in $A$. For each music player, find the probability that at least one song is played $3$ or more times before every song is played at least once.
By the pigeonhole principle, all complete playing of the playlist in which no song repeated $3$ times, lasts $10$ to $19$ songs. The approach for $A$ I'm thinking to consider different lengths of a playlist in which it's possible for playlist to finish before a three-peat. The last song to play must play exactly once, and there are $10$ options for the last song. So using permutation with repeats, and considering the number of combinations of songs of a certain length, the number of plays of length $k$ that finishes without a three-peat is
$$n(k) = 10(k-1)!\frac{^9C_{k-10}}{2^{k-10}}$$
with $k-10$ songs played twice. I can normalize everything to $19$ songs, by using $N(k) = n(k)\cdot(10^{19-k})$. My intent is to use $N(k)$ as the number of complement events, for music player $A$. Incidentally, if a song is to play three times before all songs play once, its three times must be within the first 19 songs.
So my answer to part $A$ is $\displaystyle 1 - \frac{\sum_{k=10}^{19}N(k)}{10^{19}} \approx 0.9786$
But I am not sure if that's sound and if there is better method that scales better with the number of songs. I have no idea how to get started with $B$, but I suspect some inclusion-exclusion can be applied, by modifying the solution to $A$.