The Setup: Two quadratics crossed with a geometric progression. Assign standard GP terms to the four roots, pull sum and product relations out with Vieta, and let the integrality of p and q pick the branch.
Step 1: Assign the GP terms. The stem lists the roots in the order α,β,γ,δ, so writing the progression as a,ar,ar2,ar3:
α=a,β=ar(roots of the first quadratic),γ=ar2,δ=ar3(roots of the second)
Step 2: Apply Vieta to the sums. For x2−x+p=0 the roots sum to 1; for x2−4x+q=0 they sum to 4:
a+ar=a(1+r)=1,ar2+ar3=ar2(1+r)=4
**Step 3: Divide to isolate r.** The first equation says a(1+r)=1, which is non-zero, so dividing by it is safe:
a(1+r)ar2(1+r)=14⟹r2=4⟹r=2 or r=−2
Step 4: Let integrality choose the branch. Both roots of r2=4 satisfy the *sum* equations, so the deciding constraint is that p and q are integers:
* r=2: then a(1+2)=1 gives a=31, and the roots are 31,32,34,38. This yields p=31⋅32=92 and q=34⋅38=932 - neither an integer, so this branch is rejected.
* r=−2: then a(1−2)=1 gives −a=1, so a=−1, and the roots are −1, 2, −4, 8.
**Step 5: Compute p and q from the products.**
p=αβ=(−1)(2)=−2,q=γδ=(−4)(8)=−32
p+q=−2+(−32)=−34
Step 6: Verify the whole construction. The four roots −1,2,−4,8 do form a GP with common ratio −2 throughout. And they genuinely solve their quadratics: x2−x−2=(x+1)(x−2) has roots −1 and 2 ✓, while x2−4x−32=(x+4)(x−8) has roots −4 and 8 ✓. A negative ratio is what makes the signs alternate, which is exactly why the integer branch is the one most people discard by reflex.
Final Answer: -34