One mole of an ideal gas is contained within a cylinder by a frictionless piston and is initially at temperature T. The pressure of the gas is kept constant while it is heated and its volume doubles. If R is molar gas constant, the work done by the gas in increasing its volume is: