An eccentric mathematician has a ladder with
![n](/media/m/a/e/5/ae594d7d1e46f4b979494cf8a815232b.png)
rungs that he always ascends and descends in the following way: When he ascends, each step he takes covers
![a](/media/m/6/d/2/6d2832265560bb67cf117009608524f6.png)
rungs of the ladder, and when he descends, each step he takes covers
![b](/media/m/e/e/c/eec0d7323095a1f2101fc1a74d069df6.png)
rungs of the ladder, where
![a](/media/m/6/d/2/6d2832265560bb67cf117009608524f6.png)
and
![b](/media/m/e/e/c/eec0d7323095a1f2101fc1a74d069df6.png)
are fixed positive integers. By a sequence of ascending and descending steps he can climb from ground level to the top rung of the ladder and come back down to ground level again. Find, with proof, the minimum value of
![n,](/media/m/5/f/2/5f26ebab144fee216fbc733cb1fa2f2b.png)
expressed in terms of
![a](/media/m/6/d/2/6d2832265560bb67cf117009608524f6.png)
and
%V0
An eccentric mathematician has a ladder with $n$ rungs that he always ascends and descends in the following way: When he ascends, each step he takes covers $a$ rungs of the ladder, and when he descends, each step he takes covers $b$ rungs of the ladder, where $a$ and $b$ are fixed positive integers. By a sequence of ascending and descending steps he can climb from ground level to the top rung of the ladder and come back down to ground level again. Find, with proof, the minimum value of $n,$ expressed in terms of $a$ and $b.$