Equations for periodic solutions of a logistic difference equation