Spectral decomposition of Kac-Murdock-Szego matrices