The rational component of the solution of a first-order linear recurrence relation with a rational right side