Cycles of the logistic map