Solve linear homogeneous recurrence (#722)