On the periodic solutions of a perturbed double pendulum