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 the set of values the form can take is finite, at most m residues, and I can list them by checking m squared pairs. That list is the whole engine: if the residue of four thousand six hundred and forty three is not on the list, then 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.
And one notch further, essentially for free, which also shows modulus four was not luck. The number is odd and four y squared is even, so x squared is odd, so x is odd. An odd square is one mod eight, because k times k plus one is even, so four times it is divisible by eight. Four y squared is zero or four mod eight according as y is even or odd. So the form is congruent to one or five mod eight, and four thousand six hundred and forty three is eight times five hundred and eighty plus three, class three again, still outside. The obstruction is real, not an artefact of the modulus I happened to pick.
Before I trust the reduction I want the exact numbers, because the interesting claim is not just that modulus four works. It is that four is the smallest modulus that separates this number from the values of this form, and that some nearby moduli cannot separate them at all.
Four thousand six hundred and forty three is four times one thousand one hundred and sixty plus three, eight times five hundred and eighty plus three, sixteen times two hundred and ninety plus three, the residue three follows it up every power of two. The value sets shrink as fractions of the modulus: two residues out of four, four out of eight, seven out of sixteen, thirteen out of thirty two, and three is outside every one of them.
But mod three, mod five and mod seven are hopeless: the form takes every residue there. This is the trap in the question, and I want to name it out loud. Two is not a square mod three, so a hurried attempt says "x squared plus y squared is never two mod three" and stops, but four is one mod three, so four y squared is y squared, and one plus one is two. The congruence does have solutions mod three. Anyone who announces a proof modulo three or modulo five has made that mistake.
So the pinned facts are these: the obstruction is the residue class three mod four; it survives at moduli eight, sixteen and thirty two; and it fails at three, five and seven. That is a much stronger statement than "mod four works", and it cost only a few more tables.
Now a second route that shares no step with the first: I will reduce nothing and simply look, but I will make looking finite. If a solution exists then x squared is at most four thousand six hundred and forty three, and sixty eight squared is four thousand six hundred and twenty four while sixty nine squared is four thousand seven hundred and sixty one, so the size of x is at most sixty eight. Likewise four y squared is at most the same number; four times one thousand one hundred and sixty one is four thousand six hundred and forty four, already too big, so y squared is at most one thousand one hundred and sixty, thirty four squared is one thousand one hundred and fifty six and thirty five squared is one thousand two hundred and twenty five, so the size of y is at most thirty four.
That box is one hundred and thirty seven columns by sixty nine rows: nine thousand four hundred and fifty three pairs. Each one is settled by integer arithmetic alone, subtract four y squared, take the integer square root of what is left, square it back and compare. No rounding, no judgement call. The answer is zero solutions. Note what this route is for: it does not explain anything, it is the direct check of the claim, and if either route had a hole the two verdicts would not match.
The search also returns numbers the congruence never gives me. The closest the form gets from below is four thousand six hundred and forty, from sixty eight squared plus four times four, a gap of three. From above it is four thousand six hundred and forty five, sixty three squared plus four times one hundred and sixty nine, a gap of two. And the gap is not a coincidence of my modulus: four thousand six hundred and forty one, four thousand six hundred and forty two and four thousand six hundred and forty four are all missed too, so the least distance from four thousand six hundred and forty three to a value of the form is exactly two.
Two controls, because I do not want to trust my own box. I reran it on a deliberately wider frame, size of x up to seventy five and size of y up to forty, twelve thousand two hundred and thirty one points: still zero. And the boundary itself is clean, on the edge x equals sixty eight the equation wants y squared to be nineteen quarters, and on the edge y equals thirty four it wants x squared to be nineteen, and nineteen is not a square, so no lattice point on the rim of the box is even a near miss.
The conclusion is the one I set out to test: the equation has no integer solutions, because the left-hand side is congruent to zero or one mod four for every pair and the right-hand side is congruent to three.
The same one line disposes of half of all integers at once: no number congruent to two or to three mod four is of the form x squared plus four y squared, ever. That is the generalisation the question is pointing at, and it is worth stating because it shows the argument was never about the digits of four thousand six hundred and forty three.
The converse is where I want to be careful rather than elegant. Is every number that passes the mod four test actually a value of the form? No. Twenty one is one mod four, and subtracting four times zero, one or four squared leaves twenty one, seventeen and five, none of them squares, so twenty one is missed, it is the smallest odd example, and twelve is the smallest even one. The exact criterion is the two squares one: n is a value if and only if n is zero or one mod four and every prime congruent to three mod four occurs to an even power in it. I checked that criterion against a brute-force sweep of the first four hundred positive integers and it agreed on every single one.
Two last things, both of which keep me honest about what did the work. Primality is not the reason: thirteen is prime and thirteen 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 a prime congruent to three mod four, so it is not a sum of two squares at all, and four y squared is just the square of two y, so the form is a sum of two squares. And the coefficient four is doing most of the work: swap it 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. Same number, different form, opposite answer. That is the honest scope of the method.
Change the coefficient from four to seven and the answer flips: this very number is 46 squared plus 7 times 19 squared.
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.
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 number 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 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.