Slide 15 of 16
Notes:
When n=0, the light from every slit interferes constructively at every wavelength. However, if n is some other integer, different wavelengths interfere constructively at different angles, producing a spectrum when white light is diffracted by the grating.