On a non-homogeneous difference equation from probability theory