On the connection between quantum-mechanical green’s functions and the darwin-fowler method in statistical mechanics