Periodic Sturm–Liouville problems related to two Riccati equations of constant coefficients