One winning ticket was sold in Indiana in the Mega Millions lottery on Friday, earning the jackpot worth $540mn, the seventh largest in US lottery history, lottery officials said.