Diffusion and Trapping on a one-dimensional lattice