In a sports contest, there were mm medals awarded on nn successive days (n>1n > 1). On the first day, one medal and 1/71/7 of the remaining m1m - 1 medals were awarded. On the second day, two medals and 1/71/7 of the now remaining medals were awarded; and so on. On the nn-th and last day, the remaining nn medals were awarded. How many days did the contest last, and how many medals were awarded altogether?