In a sports meeting a total of

medals were awarded over

days. On the first day one medal and

of the remaining medals were awarded. On the second day two medals and

of the remaining medals were awarded, and so on. On the last day, the remaining

medals were awarded. How many medals did the meeting last, and what was the total number of medals ?
%V0
In a sports meeting a total of $m$ medals were awarded over $n$ days. On the first day one medal and $\frac{1}{7}$ of the remaining medals were awarded. On the second day two medals and $\frac{1}{7}$ of the remaining medals were awarded, and so on. On the last day, the remaining $n$ medals were awarded. How many medals did the meeting last, and what was the total number of medals ?