Fermi resonances in the one-dimensional algebraic model