The drunkard who wants to climb one step uphill
Asked at Jane Street, Optiver
A walker stands at position on a number line. Each second he steps (uphill) with probability and (downhill) with probability , independently. Because he drifts uphill, he will eventually stand at position .
On average, how many seconds pass before the first time he reaches ?