This is a follow up to the following question: Bounded Quadratic Congruence Problem Variant (for some specific Residue)
As indicated that for square residue the problem is solvable in polynomial time. Let us consider a modified version of the same problem:
Given: 3 positive integers $a,b,L$. Problem: Is there a positive integer $x<L$ such that $(M*x)^2≡a(mod\ b)$?
where $M$ is some positive integer constant, $a$ is a residue that is also a square.
Can the same approach be used to solve this slightly modified problem easily? It seems so but I am not sure.