Let the four numbers be in the same order as stated: α,β,γ,δ form a geometric progression (G.P.) with common ratio r.
Hence
β=αr,γ=αr2,δ=αr3
The roots of the first equation x2−x+p=0 satisfy
α+β=1,αβ=p
The roots of the second equation x2−4x+q=0 satisfy
γ+δ=4,γδ=q
Using the G.P. relations, write the two sums in terms of α and r:
α+β=α+αr=α(1+r)=1−(1)
γ+δ=αr2+αr3=αr2(1+r)=4−(2)
Divide (2) by (1):
α(1+r)αr2(1+r)=r2=4⟹r=±2
Case 1: r=2
From (1), α=1+21=31.
Then p=α2r=(31)2⋅2=92∈/Z.
This violates the condition p∈Z, so r=2 is rejected.
Case 2: r=−2
From (1), α=1−21=−1.
Now compute the required products:
p=α2r=(−1)2(−2)=−2
q=γδ=(αr2)(αr3)=α2r5=(−1)2(−2)5=−32
Both p and q are integers, so this case is admissible.
Finally,
p+q=−2+(−32)=−34⟹∣p+q∣=34
Therefore, the required value is 34.
Option C which is: 34