Before any technique, the shape of the claim. Run x and y over all the integers, form x squared plus four y squared, and you get a set of integers; the sentence on the board says that four thousand six hundred and forty three is not an element of it.
Writing it that way makes it falsifiable, and I want the falsification in front of me: one pair, one x and one y, and the statement is dead. So part of my time goes into hunting for that pair, not into building a proof.
It also rules out a whole family of attempts. There are infinitely many pairs, so no amount of checking, however diligent, ever finishes. Anything that works has to dispose of all of them at once, which means it has to be about a property of the shape of the left-hand side rather than about the size of x and y.
The tool for handling infinitely many integers at once is congruence. Fix a modulus m: every integer falls into one of m boxes, and addition and multiplication respect the boxes, so which box x squared plus four y squared lands in is decided by which boxes x and y are in.
So for a fixed modulus there are only finitely many residues the form can take, and I can check them. If the residue of four thousand six hundred and forty three is not among them, the number itself is not a value of the form, and I am done.
Which modulus do I want? The one where the left-hand side gets simpler. The term four y squared is divisible by four for every y, not merely for even y, and that is the point: modulo four it disappears altogether and the whole form collapses to x squared. So four is the modulus to try, and I will check afterwards whether anything else works.
Reduce once. Four y squared is zero mod four, always, so the equation would force x squared to be congruent to four thousand six hundred and forty three mod four. And four times one thousand one hundred and sixty is four thousand six hundred and forty, so the number is four thousand six hundred and forty plus three: it lives in class three.
Now the four boxes on the board. A square lands in box zero when its root is even and in box one when its root is odd, and those are the only two boxes the form ever reaches. Box three, where the printed number sits, is empty of squares. That is the whole argument, and it is already a proof.
Notice what I have not done. I have not bounded x or y, not taken a square root, not tested a single pair. The reasoning is about which box a number is in, and boxes do not care how big the number behind them is. That is exactly the collapse the question is asking for: infinitely many pairs, four cases.
Let me write the case check out instead of asserting it. Every integer is either two k or two k plus one. If it is two k, its square is four k squared, zero mod four. If it is two k plus one, its square is four k squared plus four k plus one, that is four times k times k plus one, plus one. Two cases, and together they are all the integers, so this is not a sample, it is an exhaustion.
That gives the proof. For every pair the left-hand side is congruent to zero or one mod four; the right-hand side is congruent to three. Equal integers are congruent integers, so no pair of equal integers exists.
The conclusion is the one I set out to test: the equation has no integer solutions, because the left-hand side is zero or one mod four for every pair and the right-hand side is three.
The same line excludes half of all integers: no number that is two or three mod four is ever a value of this form. That is the whole answer to the question. Everything else I can say about the problem is follow-up material, and it belongs after the answer, not inside it.
No, and the reason is worth being precise about, because this is where the question separates people who ran a trick from people who understand it. Modulo three the term four y squared does not vanish: four is one mod three, so the form is x squared plus y squared, and one plus one is two. So the congruence does have solutions mod three, the value set is everything, all three residues.
Modulo five and modulo seven the same thing happens in a busier way: the form takes every residue, all five and all seven respectively. There is nothing to separate four thousand six hundred and forty three from the values of the form there.
And four is not just a lucky pick. The number sits in class three at modulus eight, sixteen and thirty two as well, and the value set misses class three at every one of them: two residues out of four, four out of eight, seven out of sixteen, thirteen out of thirty two. At modulus eight the reason is the same two-case check one level up: an odd square is one, because its square is one more than four times k times k plus one and that product is even; four y squared is zero or four; so the form is one or five, and the number is three. Modulus two is the only smaller case, and it cannot separate: the value set is zero or one, and the number is one, so its residue is inside. So four is the smallest modulus above one that separates the number from the form.
Modulus four works for one structural reason: four divides the coefficient four, so the whole second term disappears and I am left asking whether three is a square. That is the design principle: choose the modulus that deletes the easiest term, then check that the surviving residue is a non-residue.
No. Twenty one is one mod four, and the only things to try are y equal to zero, one or two, which leave twenty one, seventeen and five as x squared. None is a square, so twenty one is not a value of the form. Twelve is the same story on the even side: y can only be zero or one, because four times two squared is already sixteen, too big, and both cases leave a non-square, twelve for y zero and eight for y one.
The real criterion is the two squares theorem wearing a hat. The form is x squared plus the square of two y, so a value is a sum of two squares with the even square automatically divisible by four. A non-negative integer is a sum of two squares exactly when every prime congruent to three mod four occurs to an even power, and then the extra condition is just that the number is not two mod four, because if it is odd one summand is even and if it is zero mod four I can divide the four out.
So for a non-negative integer n, the answer is: n is a value if and only if n is zero or one mod four and every prime three mod four has even exponent in n. I tested that against an exhaustive sweep of the first four hundred positive integers and there was no disagreement at all, but I would not state it as a guess, and I would not state the weaker mod four condition as if it were the answer.
The congruence and the search answer different halves of this, which is why I ran both. A change of one downward gives four thousand six hundred and forty two, which is two mod four, and the same one-line argument kills it. A change of one upward gives four thousand six hundred and forty four, which is zero mod four, it passes the congruence test, and the exhaustive search says it is still not a value of the form, and so is four thousand six hundred and forty one.
So the smallest change is not one, and it is not three down either. Downward the first hit is four thousand six hundred and forty, which is sixty eight squared plus four times two squared, four thousand six hundred and twenty four plus sixteen: a change of minus three. Upward the first hit is four thousand six hundred and forty five, which is sixty three squared plus four times thirteen squared, three thousand nine hundred and sixty nine plus six hundred and seventy six: a change of plus two.
So the least change that makes it soluble is two, upward. And I would flag what that number means: the mod four obstruction alone only guarantees a gap of at least one, because it excludes classes two and three; the extra work at four thousand six hundred and forty one and forty four is not congruence information at all, it is the two squares criterion biting. Two different reasons, and only the search shows me both.
Without congruences the search is still finite. A solution forces x squared to be at most four thousand six hundred and forty three, so the size of x is at most sixty eight; four y squared is at most the same, so the size of y is at most thirty four. That is one hundred and thirty seven values of x and sixty nine values of y, nine thousand four hundred and fifty three pairs, and each pair is settled by integer arithmetic alone: subtract four y squared, take the integer square root, square it back and compare.
I would not grind through nine thousand pairs by hand in an interview, and I would say that plainly. The proof is the mod four line; this is a check, not a proof. What this route gives is a finite, auditable check that shares no step with the congruence, so a machine can run it and I can state exactly what was run: nine thousand four hundred and fifty three pairs, zero solutions.
Two controls. A deliberately wider frame, the size of x up to seventy five and the size of y up to forty, twelve thousand two hundred and thirty one points, still zero. And the rim of the box is clean: on the edge x equals sixty eight the equation would need y squared to be nineteen quarters, and on the edge y equals thirty four it would need x squared to be nineteen, which is not a square, so neither edge of the box contains an exact integer solution.
It depends on four in one place: four y squared is divisible by four, so the second term vanishes mod four. That is a property of the coefficient, not of the proof. Swap four for seven and the very same number is represented: forty six squared plus seven times nineteen squared, two thousand one hundred and sixteen plus two thousand five hundred and twenty seven, so the answer flips.
Primality is not the reason either. Thirteen is prime and it is a value of the form, three squared plus four times one squared. What matters is that four thousand six hundred and forty three is prime, which I check by trial division against the primes up to sixty seven, and it is congruent to three mod four, so it is not a sum of two squares at all, while x squared plus four y squared is x squared plus the square of two y, a sum of two squares.
So the honest scope is narrow: this modulus works because four divides the coefficient and the number sits in class three. It is one modulus and one residue class, not a theory of the whole form.