IMO 1966 LL ROM31

Solve the equation |x2 −1| + |x2 −4| = mx as a function of the

IMO 1966 LL ROM31

Origin: ROM

Problem

Solve the equation |x2 −1| + |x2 −4| = mx as a function of the parameter m. Which pairs (x, m) of integers satisfy this equation?