HALLOOO so within the past 2 days, i've encountered this standard QR trick (or, more like, technique ig?) NUMEROUS times while doing NT, but i missed it like 2 weeks ago during a mock ripp, so yea why not dump it here? :D
p.s. familiarity with QRs + legendre symbol is assumed
(1) the "trick"
some things to look out for:
- is amazing bcs of fermat's christmas theorem
- is pretty good too
- is not as good but not bad, depending on the number
- could work well too, but ideally such that its legendre symbol can be easily calculated
- can also work by multiplying so that we get
the reason that is so good is cuz if we take some odd prime s.t. but , then this implies that so is a QR . taking legendre symbols, this means . note that we must have , so and it's well-known that this implies .
so the trick is basically this: given some equation with (ideally) one of those above expressions, consider a prime dividing that expression then juice out info abt (mod smth, usually 4 or 8) by considering its legendre symbol and applying well-known results. common examples are
- if and i.e. -1 is a QR (aka fermat's christmas theorem)
- if and i.e. 2 is a QR
- if , and i.e. -1 is a QR
now here's an example of how the trick works: suppose u've proven that all prime divisors of LHS are , or in other words, every factor of LHS is . but suppose there's a factor on RHS that's . then BOOM u hv a contradiction yippee. okay hope that made sense. otherwise just ignore this horrible explanation and check out the examples :D
(2) examples
these 4 problems use a very direct application of this trick. btw i'll gloss over a lot of details, but the point is to demonstrate the main idea of the technique.
IMOSL 1984: Prove that if are positive integers, then can not be a perfect square.
suppose , which can be rewritten as . observing the familiar form on RHS, we employ our trick. suppose is a prime dividing . then, by fermat's christmas theorem, so every factor of RHS is . but this is clearly a contradiction bcs on the LHS, the factor . BOOM. ✨
IZhO 2005 P1: Prove that the equation has no integer solution.
naturally, we to both sides to obtain . then, mod 4 analysis (which is natural to determine parity) shows us that we must have and even. RHS is familiar so it's time for our trick yay. suppose is a prime dividing . note that is odd bcs is odd, so by fermat's christmas theorem, implying that every factor of RHS is . but on the LHS, is a factor of and . TADAAA the desired contradiction. ✨
USA TST 2008 P4: Prove that for no integer is a perfect square.
yup same technique. (this is boring by now, huh?) suppose , then to both sides to obtain . again, mod 4 analysis shows us that . yep RHS is familiar so suppose is a prime dividing . then, . but on the LHS, is a factor of and , so contradiction if 11 doesn't divide . thus, 11 divides and we can finish off with LTE (which i'll skip here) yayyy. ✨
IMOLL 1992: Let be integers. Prove that is never an integer.
suppose for some integer . analysing parities shows that must be odd. what next? u guessed it, we apply our trick again yaaaaay. suppose is a prime dividing , implying that divides . hence, 2 is a QR , so . yeap so every factor of LHS is . but on the RHS, the factor . contradictionnnn. ✨
(3) the problem i failed to solve
Indian-Iranian Friendly Competition 2024 P4: Prove that there are no integers satisfying the equation
the first natural thing to do is probably observe parities, and it's possible to show that at most one of is even. (this was literally the only thing i did during the mock LMAO.) then, we shd rewrite the expression as a quadratic in , and consider its discriminant which has to be a perfect square by our contrary assumption (bcs are symmetric, so taking the discriminant of the quadratic in will give us a nice symmetric equation). hence, suppose discriminant .
from here on, it's much easier, and we proceed with the standard trick after recognising the sum of squares i.e. . recall that at most one of is even. hence, assume WLOG that is odd, so only has odd factors. suppose is a prime dividing , which would imply . then, we also have that divides , implying that 2 is a QR , so . thus, we conclude . in other words, every factor of is . however, , which is our desired contradiction. ✨
yepp damn can't believe i've been blind to this standard trick for so long. but better late than never ig 😭