The population of a town increased by 10% per year in 2009, 2010, and 2011. If the population of the town at the beginning of 2009 was 40,000, what was it at the end of 2011?