On the global attractivity and the periodic character of some difference equations