Equations for Green functions with the use of the exact Hamiltonian in the quasiparticle-phonon nuclear model