Peierls instability for the Holstein model with rational density