Consider the packing of hard spheres of radius $R$ in a primitive cubic lattice, a facecentered cubic lattice, and a body-centered cubic lattice. Show that $a$, the length of the unit cell, and $f$, the fraction of the volume of the unit cell occupied by the spheres, are given as listed.
\begin{tabular}{lcc}
Unit cell & $a$ & $f$ \\
\hline Primitive cubic & $2 R$ & $\pi / 6$ \\
Face-centered cubic & $4 R / \sqrt{2}$ & $\pi \sqrt{2} / 6$ \\
Body-centered cubic & $4 R / \sqrt{3}$ & $\pi \sqrt{3} / 8$
\end{tabular}