Solution (source code)

= Solution

At constant volume, the <First law of thermodynamics> gives
$$
\delta Q=dE=C_V\,dT.
$$
At constant pressure,
$$
\delta Q=C_p\,dT=dE+p\,dV.
$$
Differentiating $pV=Nk_BT$ at fixed $p$ gives
$$
p\,dV=Nk_B\,dT.
$$
Consequently,
$$
C_p\,dT=(C_V+Nk_B)dT,
$$
and the <Mayer relation> is
$$
\boxed{C_p-C_V=Nk_B}.
$$
The <specific-heat ratio> is therefore
$$
\boxed{
\gamma=\frac{C_p}{C_V}
=1+\frac{Nk_B}{C_V}}.
$$