when he was working out universal gravitation he had worked sixteen- , eighteen- , twenty-hour days for weeks on end , sleeping only when sleep became unavoidable , snatching brief naps and awakening ready and eager for work , with his mind still bubbling with the equations he had left unfinished a little while before .