Discrete Spectral Synthesis and Its Applications