On the global attractivity and the solution of recursive sequence