Another way of calculating the earth - sun distance is to look at the centrifugal and the gravitational force. This solution assumes that one already knows the mass of the sun, but thats a different problem ;-). More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.