MathLabs

Problem 6

In a sports contest, mm medals were awarded on nn successive days (n>1n>1). On the first day, one medal and 17\frac17 of the remaining m−1m-1 medals were awarded. On the second day, two medals and 17\frac17 of the then remaining medals were awarded, and so on. On the nn-th and last day, the remaining nn medals were awarded. Find mm and nn.
Step 2 of 6: Write the recurrence
mr+1=mr−(r+mr−r7)=67(mr−r)m_{r+1}=m_r-\left(r+\frac{m_r-r}{7}\right)=\frac67(m_r-r)
Detailed analysis

For r<nr<n, day rr awards r+(mr−r)/7r+(m_r-r)/7 prizes. Subtracting this from mrm_r yields mr+1=67(mr−r)m_{r+1}=\frac67(m_r-r).