Exact time evolution of a classical harmonic-oscillator chain