Spectral and structural properties of some pentadiagonal symmetric matrices