The common ratio of a G.P. is 3, and the last term is 486. If the sum of these terms be 728, find the first term.