Credit for this problem goes to me. Thanks!

Piano Test

A piano student is preparing for an exam. The way the exam works is that the student will record himself playing four songs and submit the video to pass the exam. Here are the rules in order to pass:

For the sake of making this problem well defined, let’s also stipulate the following:

What is the optimal strategy if your goal is to minimize the total number of songs the student has to play before getting a video that will pass the exam? And how many songs will the student have to play in expectancy?

Solution