Let N denote the number of tosses required to obtain the first head.
Since the probability of obtaining a head is 41 and the probability of obtaining a tail is 43, N follows a geometric distribution with
P(N=n)=(43)n−1(41)
The quadratic equation is
64x2+5Nx+1=0
For the equation to have no real roots, its discriminant must be negative.
Δ=(5N)2−4(64)(1)<0
25N2−256<0
25N2<256
N2<25256
N2<10.24
Since N is a positive integer,
N∈1,2,3
Therefore, the required probability is
P(N≤3)=P(1)+P(2)+P(3)
P(1)=(43)0(41)=41
P(2)=(43)1(41)=163
P(3)=(43)2(41)=649
Hence,
P(N≤3)=41+163+649
P(N≤3)=6416+6412+649
P(N≤3)=6437
Thus,
qp=6437
giving
p=37,q=64
Therefore,
q−p=64−37=27
Hence, the correct answer is
27