Which of these historical factors contributed to Indonesia having the largest Muslim population of any nation in the world?

Which of these historical factors contributed to Indonesia having the largest Muslim population of any nation in the world?