While studying some of the course materials of thermodynamics, I came across the expression of Internal Energy of gas as U= (n/2)RT where n is DoF and R and T are Characteristic Gas Constant and temperature. Can someone explain the origin of this expression?