Problem

Source: Tournament of towns, Senior B-Level paper, Fall 2004

Tags: algebra, polynomial, algebra solved



P(x) and Q(x) are polynomials of positive degree such that for all x P(P(x))=Q(Q(x)) and P(P(P(x)))=Q(Q(Q(x))). Does this necessarily mean that P(x)=Q(x)?