Closed-form expression for the characteristic polynomial of the multiple pendulum (Archive of Applied Mechanics, 2026)