Symmetries and alternative lagrangians in higher-order mechanics