Let (a,b,c):=(P(1),P(P(1)),P(P(P(1)))), so P(t)=at2+bt+c and we wish to maximize P(c). Then we have that abc=P(1)=a+b+c=P(a)=a3+ab+c=P(b)=ab2+b2+c The first equation implies c=−b. The third equation implies b2(a+1)=0, so a=−1 or b=0. If b=0, then (a,b,c)=(0,0,0). If a=−1, then b=(−1)3+(−1)b+(−b) or b=−31, so c=31 and (a,b,c)=(−1,−31,31). The first tuple gives P(c)=0, while the second tuple gives P(c)=−321−321+31=91, which is the answer.