Exact State and Fugacity Equations for the Ideal Quantum Gases