3.38. The lateral faces of a triangular pyramid are equal in area and form angles $\alpha, \beta$ and $\gamma$ with the base. Find the ratio of the radius of the sphere inscribed in this pyramid to the radius of the sphere that touches the base of the pyramid and the extensions of the lateral faces.
3.38. Let $r$ and $r^{\prime}$ be the radii of the inscribed and exscribed spheres, $S$ the area of the lateral face, $s$ the area of the base, and $V$ the volume of the pyramid. Then $V=(3 S+s) r / 3$. Similarly, it can be shown that $V=(3 S-s) r^{\prime} / 3$. Moreover, $s=(\cos \alpha + \cos \beta + \cos \gamma) S$ (see problem 2.13). Therefore,

$$
\frac{r}{r^{\prime}}=\frac{3 S-s}{3 S+s}=\frac{3-\cos \alpha-\cos \beta-\cos \gamma}{3+\cos \alpha+\cos \beta+\cos \gamma}
$$