I have one more thing to add. If the molar flow rate of air through the compressor is ##\dot{m}##, then your equation for the power becomes: $$\dot{W}=\dot{m}\left[\frac{n}{(n-1)}P_{in}v_{in}\left(R^{\frac{(n-1)}{n}}-1\right)\right]$$where ##P_{in}## is the inlet pressure to the stage, ##v_{in}## is the inlet molar volume of the air to the stage, and R is the compression (pressure) ratio. The inlet molar volume is related to the inlet pressure and inlet temperature ##T_{in}## by$$v=\frac{RT_{in}}{P_{in}}$$. Substituting this, we get:
$$\dot{W}=\dot{m}\left[\frac{n}{(n-1)}RT_{in}\left(R^{\frac{(n-1)}{n}}-1\right)\right]$$Since both stages have the same inlet temperature, molar flow rate, and compression ratio, the power for the two stages must be the same.