Epsom salt MgSO4⋅7H2O has correct formation as
MgH2O4SO4⋅3H2O
MgH2O6SO4⋅H2O
MgH2O7SO4
MgH2O3SO4⋅4H2O
The formation of octahedral complex.