Exact treatment of operator difference equations with nonconstant and noncommutative coefficients