Periodic solutions with alternating singularities in the collinear four-body problem