Entropy changes don't depend on a process pathway. For an ideal gas, the entropy is $S=N k \ln V$ (see above).
(a) Express $\Delta S_{V}=S_{2}\left(V_{2}\right)-S_{1}\left(V_{1}\right)$, the entropy change upon changing the volume from $V_{1}$ to $V_{2}$, at fixed particle number $N$.
(b) Express $\Delta S_{N}=S_{2}\left(N_{2}\right)-S_{1}\left(N_{1}\right)$, the entropy change upon changing the particle number from $N_{1}$ to $N_{2}$, at fixed volume $V$.
(c) Write an expression for the entropy change, $\Delta S$, for a two-step process $\left(V_{1}, N_{1}\right) \rightarrow\left(V_{2}, N_{1}\right) \rightarrow\left(V_{2}, N_{2}\right)$ in which the volume changes first at fixed particle number, then the particle number changes at fixed volume.
(d) Show that the entropy change $\Delta S$ above is exactly the same as for the two-step process in reverse order: changing the particle number first, then the volume.