An ideal gas is heated from temperature T1 to T2 by keeping its volume constant. The gas is expanded back to its initial temperature according to the law pvn= constant. If the entropy changes in the two processes are equal, find the value of n in terms of the adiabatic index $\gamma$ .