If an ideal gas has a pressure of 5.63 × 105 Pa, a temperature of 401 K, and a volume of 0.0313 m3, how many moles of gas are in the sample?

Use PV = nRT. Substitute and solve for n = mols gas.

I would convert Pa to atm (1 atm = 101.325 kPa) and m^3 to L )1m^3 = 1000 L).