THERMODYNAMICALLY EQUIVALENT HAMILTONIAN FOR SOME MANY-BODY PROBLEMS