An ideal gas is heated at constant volume until its pressure doubles. Which one of the following statements is correct?