To raise the temperature of a certain mass of gas by C at a constant pressure, 160 calories of heat is required. When the same mass of gas is cooled by C at constant volume, 240 calories of heat is released. How many degrees of freedom does each molecule of this gas have (assume gas to ideal)?
At constant pressure
At constant volume