A certain ball is dropped from an altitude of 1 meter and rebounds one-half of it's previous altitude. What is the total distance the ball has traveled when it hits the floor the 40th time?