On the motion of a triple pendulum system under the influence of excitation force and torque