Which of the following represents five hundred four thousand, forty-seven written in expanded form?

500,000 + 4,000 + 40 + 7