Number of atoms in 1 mole of compound = 6.022 x 1023
Number of atoms in 0.5 mol = 0.5 x 6.022 x 1023
= 3.011 x 1023
For a hexagonal closed packed structure,
Number of octahedral voids = number of atoms in the compound
Therefore, the number of octahedral voids =3.011 x 1023
And
Number of tetrahedral voids = 2 x octahedral voids
= 2 x 3.011 x 1023
= 6.022 x 1023
The total number of voids = (6.022 + 3.011) x 1023
= 9.033 x 1023