On the global attractivity and the periodic character of a recursive sequence