the equation comes out to be xw+yd=p. if p%gcd(w,d) = 0 => solution exits. From here why we can not use the method of extended euclidean for finding x and y (using the recursive relation of x=y’ y=x’-(a/b)y’)?
What is the requirement of using this method ( modulo inverse method discussed in the lecture)?