Exponential polynomials as solutions of certain nonlinear difference equations