On the recursive sequence xn+1=(α−βxn−k)/g(xn,xn−1,...,xn−k+1)