Text this: Folding and unfolding in periodic difference equations