By using the index theory for linear bounded self-adjoint operators in a Hilbert space related to a fixed self-adjoint operator A with compact resolvent,the authors discuss the existence and multiplicity of solutions for(nonlinear) operator equations,and give some applications to some boundary value problems of first order Hamiltonian systems and second order Hamiltonian systems.