From the given information regarding the equation, we can infer the following :
If the roots of the equation are a,ar,ar2,ar3;
a+ar+ar2+ar3=16 i.e. a(1+r+r2+r3)=16
a2r+a2r2+a2r3+a2r3+a2r4+a2r5=p i.e. a2r(1+r+r2+2r3+r4)=p
a3r3+a3r4+a3r5+a3r6=256 i.e. a3r3(1+r+r2+r3)=256
a4r6=q
Dividing third and first equations, we get a2r3 to be 16, implying q to be 256.
Also, a=4r32