The pressure, $p$, of the atmosphere at an altitude $z$ is given by
$$
\frac{\mathrm{d} p}{\mathrm{~d} z}=-k p^{\frac{1}{\gamma}}(k \neq 0)
$$
where $\gamma$ is the specific heat constant $(\gamma>1)$ and $k$ is a constant. Show that
$$
z=\frac{\gamma p^{\frac{\gamma-1}{\gamma}}}{k(1-\gamma)}+A
$$
(where $A$ is a constant).