Efficient computation of lattice Green functions for models with longer range hopping