We call polynomials A(x)=anxn+...+a1x+a0 and B(x)=bmxm+...+b1x+b0
(anbm=0) similar if the following conditions hold:
(i)n=m;
(ii) There is a permutation π of the set {0,1,...,n} such that bi=aπ(i) for each i∈0,1,...,n.
Let P(x) and Q(x) be similar polynomials with integer coefficients. Given that
P(16)=32012, find the smallest possible value of ∣Q(32012)∣.Proposed by Milos Milosavljevic