When an ideal diatomic gas is heated at constant pressure, the fraction of the heat energy supplied which increases the internal energy of the gas is -
When a gas is heated at constant pressure then it's one part goes to increase the internal energy and another part for work done against external pressure
So the fraction of energy that goes to increase the internal energy,