Given two unequal positive integers and , we define a self-describing sequence consisting of alternating runs of s and s. The first element is and the sequence of run lengths is the original sequence.
For , the sequence is:
The sequence begins with twos and twos, then threes and threes, so the run lengths are given by the original sequence.
Let be the sum of the first elements of the sequence. You are given , , .