I looked up "QR decomposition" and it seems to be concerned with factoring matrices.
https://en.wikipedia.org/wiki/QR_decomposition It may be related, but I don't see how at the moment. Quadratic reciprocity, which we abbreviated here as QR, is about whether an integer x is a square modulo a prime p, that is, does there exist an integer r such that r
2 = x mod p? If so (x|p), the Legendre notation for whether x is a quadratic residue mod p, would equal 1.
What I am looking at is the Artin's conjecture which says given a number, m>1, there are infinitely many primes for which m is a primitive root. That is, multiply m by itself over and over again and all the elements of the reduced residue system mod that prime are generated. If m is a primitive root then it is also a quadratic non-residue, otherwise it would not generate all the elements, but stop half way through.
Desiresjab is interested in quadratic reciprocity and in particular Eisenstein's proof of it. I find that interesting also, because the more I learn about that the more I understand why Artin's conjecture is hard to solve.
Here is an outline of a proof of quadratic reciprocity using Eisenstein's lattice points:
http://math.ucr.edu/home/baez/136/quadratic.pdf
The article doesn't prove anything. It just states the propositions, which is frustrating, but it only claimed to offer a "big picture". The proposition that gets me stuck is called in that paper "Baby Eisenstein's Lemma". It says that the number of points in the lattice in the lower triangle in Eisenstein's drawing has the same parity (even or odd) as the number of elements in Gauss Lemma that fall in the negative part of the reduced residue system from -(p-1)/2 to (p-1)/2). If we know how many there are then m is a quadratic residue if that number is even and a quadratic non-residue if that number is odd. So, it is not that they match one-to-one but that they have the same parity.
That's the clue I am following at the moment. It is only a parity issue between those lattice points and the elements in Gauss Lemma. However, I don't know how to prove that which means I don't understand it.