When X-rays are scattered from a crystal lattice, peaks of scattered intensity are observed when the path difference between the rays scattered from parallel planes of atoms is a whole number of wavelengths: nλ=2dsinθ.
The total electrical resistivity of a metal is the sum of the resistivity due to thermal agitation of the metal ions and the resistivity due to the presence of imperfections in the crystal lattice.