DR.WANG Mathematics中文

2020 AIME I · Question 11

Algebra · polynomial · Vieta’s Formulas · casework · problem-solving

Problem outline

For integers a,b,c,da,b,c,d, let f(x)=x2+ax+bf(x)=x^2+ax+b and g(x)=x2+cx+dg(x)=x^2+cx+d. Count ordered triples (a,b,c)(a,b,c) with ∣a∣,∣b∣,∣c∣≤10|a|,|b|,|c|\le10 for which some integer dd makes g(f(2))=g(f(4))=0g(f(2))=g(f(4))=0.

Show answer and methods 1 methods

Answer

510

Method 1 Separate equal and distinct roots of the outer quadratic

f(2)=4+2a+bf(2)=4+2a+b and f(4)=16+4a+bf(4)=16+4a+b. They are equal exactly when a=−6a=-6. Then arbitrary b,cb,c work after choosing d=−f(2)2−cf(2)d=-f(2)^2-cf(2), contributing 212=44121^2=441 triples.

Otherwise these values are the two roots of gg, so Vieta gives c=−(20+6a+2b)c=-(20+6a+2b). The bound ∣c∣≤10|c|\le10 becomes −15≤3a+b≤−5-15\le3a+b\le-5.

For each of the 1111 integers h=3a+bh=3a+b in this interval, exactly 77 of the 2121 choices of bb have b≡h(mod3)b\equiv h\pmod3, and the resulting aa remains in range. This gives 7777 pairs, but 88 have a=−6a=-6 and were already counted. The total is 441+77−8=510441+77-8=510.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)