The crystal structure described by Na4MgIn(PO4)3 crystallizes in the trigonal R3c space group. There are two inequivalent Na sites. In the first Na site, Na(1) is bonded in a 8-coordinate geometry to two equivalent O(1), two equivalent O(2), two equivalent O(3), and two equivalent O(4) atoms. In the second Na site, Na(2) is bonded in a distorted hexagonal planar geometry to three equivalent O(3) and three equivalent O(4) atoms. Mg(1) is bonded to three equivalent O(1) and three equivalent O(3) atoms to form MgO6 octahedra that share corners with six equivalent P(1)O4 tetrahedra. In(1) is bonded to three equivalent O(2) and three equivalent O(4) atoms to form InO6 octahedra that share corners with six equivalent P(1)O4 tetrahedra. P(1) is bonded to one O(1), one O(2), one O(3), and one O(4) atom to form PO4 tetrahedra that share corners with two equivalent Mg(1)O6 octahedra and corners with two equivalent In(1)O6 octahedra. The corner-sharing octahedral tilt angles range from 28-39°. There are four inequivalent O sites. In the first O site, O(3) is bonded to one Na(2), two equivalent Na(1), one Mg(1), and one P(1) atom to form distorted ONa3MgP trigonal bipyramids that share corners with six equivalent O(4)Na3InP trigonal bipyramids,  an edgeedge with one O(4)Na3InP trigonal bipyramid, and faces with two equivalent O(3)Na3MgP trigonal bipyramids. In the second O site, O(4) is bonded to one Na(2), two equivalent Na(1), one In(1), and one P(1) atom to form distorted ONa3InP trigonal bipyramids that share corners with six equivalent O(3)Na3MgP trigonal bipyramids,  an edgeedge with one O(3)Na3MgP trigonal bipyramid, and faces with two equivalent O(4)Na3InP trigonal bipyramids. In the third O site, O(1) is bonded in a 3-coordinate geometry to two equivalent Na(1), one Mg(1), and one P(1) atom. In the fourth O site, O(2) is bonded in a 4-coordinate geometry to two equivalent Na(1), one In(1), and one P(1) atom. is represented by the CIF card [CIF]
data_Na4MgIn(PO4)3
_symmetry_space_group_name_H-M   'P 1'
_cell_length_a   9.049
_cell_length_b   9.049
_cell_length_c   9.049
_cell_angle_alpha   60.610
_cell_angle_beta   60.610
_cell_angle_gamma   60.610
_symmetry_Int_Tables_number   1
_cell_volume   531.200
_cell_formula_units_Z   2
loop_
 _symmetry_equiv_pos_site_id
 _symmetry_equiv_pos_as_xyz
  1  'x, y, z'
loop_
 _atom_site_type_symbol
 _atom_site_label
 _atom_site_symmetry_multiplicity
 _atom_site_fract_x
 _atom_site_fract_y
 _atom_site_fract_z
 _atom_site_occupancy
  In  In0  1  0.655  0.655  0.655  1.0
  In  In1  1  0.155  0.155  0.155  1.0
  Mg  Mg2  1  0.349  0.349  0.349  1.0
  Mg  Mg3  1  0.849  0.849  0.849  1.0
  Na  Na4  1  0.885  0.619  0.242  1.0
  Na  Na5  1  0.619  0.242  0.885  1.0
  Na  Na6  1  0.242  0.885  0.619  1.0
  Na  Na7  1  0.385  0.742  0.119  1.0
  Na  Na8  1  0.742  0.119  0.385  1.0
  Na  Na9  1  0.119  0.385  0.742  1.0
  Na  Na10  1  0.497  0.497  0.497  1.0
  Na  Na11  1  0.997  0.997  0.997  1.0
  O  O12  1  0.517  0.118  0.284  1.0
  O  O13  1  0.118  0.284  0.517  1.0
  O  O14  1  0.284  0.517  0.118  1.0
  O  O15  1  0.017  0.784  0.618  1.0
  O  O16  1  0.784  0.618  0.017  1.0
  O  O17  1  0.618  0.017  0.784  1.0
  O  O18  1  0.464  0.888  0.725  1.0
  O  O19  1  0.888  0.725  0.464  1.0
  O  O20  1  0.725  0.464  0.888  1.0
  O  O21  1  0.964  0.225  0.388  1.0
  O  O22  1  0.225  0.388  0.964  1.0
  O  O23  1  0.388  0.964  0.225  1.0
  O  O24  1  0.429  0.225  0.585  1.0
  O  O25  1  0.225  0.585  0.429  1.0
  O  O26  1  0.585  0.429  0.225  1.0
  O  O27  1  0.929  0.085  0.725  1.0
  O  O28  1  0.085  0.725  0.929  1.0
  O  O29  1  0.725  0.929  0.085  1.0
  O  O30  1  0.577  0.773  0.415  1.0
  O  O31  1  0.773  0.415  0.577  1.0
  O  O32  1  0.415  0.577  0.773  1.0
  O  O33  1  0.077  0.915  0.273  1.0
  O  O34  1  0.915  0.273  0.077  1.0
  O  O35  1  0.273  0.077  0.915  1.0
  P  P36  1  0.553  0.951  0.251  1.0
  P  P37  1  0.951  0.251  0.553  1.0
  P  P38  1  0.251  0.553  0.951  1.0
  P  P39  1  0.053  0.751  0.451  1.0
  P  P40  1  0.751  0.451  0.053  1.0
  P  P41  1  0.451  0.053  0.751  1.0
[/CIF]
.
The crystal structure described by Na4MgIn(PO4)3 crystallizes in the trigonal R3c space group. There are two inequivalent Na sites. In the first Na site, Na(1) is bonded in a 8-coordinate geometry to two equivalent O(1), two equivalent O(2), two equivalent O(3), and two equivalent O(4) atoms. In the second Na site, Na(2) is bonded in a distorted hexagonal planar geometry to three equivalent O(3) and three equivalent O(4) atoms. Mg(1) is bonded to three equivalent O(1) and three equivalent O(3) atoms to form MgO6 octahedra that share corners with six equivalent P(1)O4 tetrahedra. In(1) is bonded to three equivalent O(2) and three equivalent O(4) atoms to form InO6 octahedra that share corners with six equivalent P(1)O4 tetrahedra. P(1) is bonded to one O(1), one O(2), one O(3), and one O(4) atom to form PO4 tetrahedra that share corners with two equivalent Mg(1)O6 octahedra and corners with two equivalent In(1)O6 octahedra. The corner-sharing octahedral tilt angles range from 28-39°. There are four inequivalent O sites. In the first O site, O(3) is bonded to one Na(2), two equivalent Na(1), one Mg(1), and one P(1) atom to form distorted ONa3MgP trigonal bipyramids that share corners with six equivalent O(4)Na3InP trigonal bipyramids,  an edgeedge with one O(4)Na3InP trigonal bipyramid, and faces with two equivalent O(3)Na3MgP trigonal bipyramids. In the second O site, O(4) is bonded to one Na(2), two equivalent Na(1), one In(1), and one P(1) atom to form distorted ONa3InP trigonal bipyramids that share corners with six equivalent O(3)Na3MgP trigonal bipyramids,  an edgeedge with one O(3)Na3MgP trigonal bipyramid, and faces with two equivalent O(4)Na3InP trigonal bipyramids. In the third O site, O(1) is bonded in a 3-coordinate geometry to two equivalent Na(1), one Mg(1), and one P(1) atom. In the fourth O site, O(2) is bonded in a 4-coordinate geometry to two equivalent Na(1), one In(1), and one P(1) atom. is represented by the CIF card [CIF]
data_Na4MgIn(PO4)3
_symmetry_space_group_name_H-M   'P 1'
_cell_length_a   9.049
_cell_length_b   9.049
_cell_length_c   9.049
_cell_angle_alpha   60.610
_cell_angle_beta   60.610
_cell_angle_gamma   60.610
_symmetry_Int_Tables_number   1
_cell_volume   531.200
_cell_formula_units_Z   2
loop_
 _symmetry_equiv_pos_site_id
 _symmetry_equiv_pos_as_xyz
  1  'x, y, z'
loop_
 _atom_site_type_symbol
 _atom_site_label
 _atom_site_symmetry_multiplicity
 _atom_site_fract_x
 _atom_site_fract_y
 _atom_site_fract_z
 _atom_site_occupancy
  In  In0  1  0.655  0.655  0.655  1.0
  In  In1  1  0.155  0.155  0.155  1.0
  Mg  Mg2  1  0.349  0.349  0.349  1.0
  Mg  Mg3  1  0.849  0.849  0.849  1.0
  Na  Na4  1  0.885  0.619  0.242  1.0
  Na  Na5  1  0.619  0.242  0.885  1.0
  Na  Na6  1  0.242  0.885  0.619  1.0
  Na  Na7  1  0.385  0.742  0.119  1.0
  Na  Na8  1  0.742  0.119  0.385  1.0
  Na  Na9  1  0.119  0.385  0.742  1.0
  Na  Na10  1  0.497  0.497  0.497  1.0
  Na  Na11  1  0.997  0.997  0.997  1.0
  O  O12  1  0.517  0.118  0.284  1.0
  O  O13  1  0.118  0.284  0.517  1.0
  O  O14  1  0.284  0.517  0.118  1.0
  O  O15  1  0.017  0.784  0.618  1.0
  O  O16  1  0.784  0.618  0.017  1.0
  O  O17  1  0.618  0.017  0.784  1.0
  O  O18  1  0.464  0.888  0.725  1.0
  O  O19  1  0.888  0.725  0.464  1.0
  O  O20  1  0.725  0.464  0.888  1.0
  O  O21  1  0.964  0.225  0.388  1.0
  O  O22  1  0.225  0.388  0.964  1.0
  O  O23  1  0.388  0.964  0.225  1.0
  O  O24  1  0.429  0.225  0.585  1.0
  O  O25  1  0.225  0.585  0.429  1.0
  O  O26  1  0.585  0.429  0.225  1.0
  O  O27  1  0.929  0.085  0.725  1.0
  O  O28  1  0.085  0.725  0.929  1.0
  O  O29  1  0.725  0.929  0.085  1.0
  O  O30  1  0.577  0.773  0.415  1.0
  O  O31  1  0.773  0.415  0.577  1.0
  O  O32  1  0.415  0.577  0.773  1.0
  O  O33  1  0.077  0.915  0.273  1.0
  O  O34  1  0.915  0.273  0.077  1.0
  O  O35  1  0.273  0.077  0.915  1.0
  P  P36  1  0.553  0.951  0.251  1.0
  P  P37  1  0.951  0.251  0.553  1.0
  P  P38  1  0.251  0.553  0.951  1.0
  P  P39  1  0.053  0.751  0.451  1.0
  P  P40  1  0.751  0.451  0.053  1.0
  P  P41  1  0.451  0.053  0.751  1.0
[/CIF]
.