Hover over the matrix A(n,q,r) to see how the window q < d < n captures divisors of m = q*n + r.
A(n,q,r)
q < d < n
m = q*n + r