What will be the chemical formula for an ionic compound containing Na+ and SO42-

Na + and SO4 -- needs 2 Na + ions per SO4 -- to become neutral

Na2SO4