97 points · by lourencoo · 10y ago · 45 comments
Hey, I just noticed something. 1729 is the smallest positive integer that can be written as the sum of two cubes in two different ways.
4^3 + (+3)^3 = 64 + 27 = 91
0^3 + (-0)^3 = 0
^_^
Here's the approach I prefer for clarity and understanding:
First, recognize that prime p can be written as a sum of two squares just in case A^2 + B^2 = 0 (mod p) has a nonzero solution. In one direction (left to right), this is obvious; in the other direction (right to left), given A^2 + B^2 = kp with A and B indivisible by p, we can compute A' + B'i = gcd(A + Bi, p) in the Gaussian integers using the Euclidean algorithm. The result is a proper factor of p; however, it is not 1, as A + Bi is not co-prime to p (if it were, so would be its conjugate, and therefore so would be their product A^2 + B^2 = kp, which clearly isn't). Thus, |A' + B'i|^2 = A'^2 + B'^2 is a nontrivial proper factor of |p|^2 = p^2, which means A'^2 + B'^2 = p on the nose.
Next, recognize that A^2 + B^2 = 0 (mod p) just in case (A/B)^2 = -1 (mod p). [Recall that we can do division in arithmetic modulo a prime; in jargon, such arithmetic comprises a "field"].
Thus, the question of which primes can be written as a sum of two squares reduces to the question of which primes admit a square root of -1 in their modular arithmetic.
Finally, we can apply Euler's criterion to this, which tells us x is a square modulo odd prime p just in case x^((p + 1)/2) = x (mod p) [I can expound on why this is true in more detail if readers are interested; essentially, there are (p + 1)/2 many squares modulo p (one is 0, and other (p - 1)/2 come from the other values mod p paired off under negation), and Fermat's Little Theorem tells us they're all solutions to this equation]. Applying this criterion with x = -1, we see that -1 has a square root modulo odd prime p just in case p is 1 (mod 4), which, by all the above, means an odd prime is a sum of two squares just in case it is 1 (mod 4).
Pushing further on the ideas above by thinking about factorization of Gaussian integers more generally gives us more: it gives us a convenient formula for exactly how many ways there are to write an arbitrary integer N as a sum of two squares. (And by carrying out the analogue with quaternions rather than complex numbers, we get a formula for four square representations as well). But, again, all this I will leave to followup discussion if desired.
For example, proof that real numbers are not countable:
If r_n is the n-th real number in [0,1) and n{k} is kth digit of n in base 3, then consider sum(3 - r_j{j})/3^j (QED)
[0] http://research.microsoft.com/en-us/um/people/lamport/pubs/l...
[1] http://research.microsoft.com/en-us/um/people/lamport/pubs/p...
[2] https://news.ycombinator.com/item?id=10689391
[edit: formatting]
Like that time someone solved an unsolved problem or two because it was on his homework:
Anyway, whether something counts as a proof is a matter of whether you (logically) accept it as irrefutable evidence. As with any genre, you have to consider your audience. I hear gauge theorists are content to have as a proof a couple of references to a couple papers which have techniques which apply, with minor alteration, to the current problem.
That said, I wouldn't have minded if Zagier actually demonstrated it was an involution with exactly one fixed point!
The approach I used was the one that works through the Gaussian integers, which relies mainly on the facts:
-- Both the Gaussian integers and the usual integers are Euclidean domains, and hence in particular are unique factorization domains. -- Integer primes congruent to 1 or 2 (mod 4) are the norms of Gaussian primes. -- Integer primes congruent to 3 (mod 4) just are Gaussian primes.
There are various ways to show that integer primes congruent to 1 (mod 4) are non-prime in the Gaussian integers. My currently favored approach is to show that x^2 + 1 is reducible in the ring of polynomials over Zp (the finite field of size p), which follows quickly from the fact that x^p - x factors completely over that field, which in turn follows immediately from Fermat's Little Theorem.
And Fermat's Little Theorem can be quickly proved by induction.
We really don't have a good terminology for distinguishing between efficient constructive proofs (those corresponding to efficient algorithms) and inefficient ones...
This is thus more a property of the theorem than a distinctive property of the proof. But, yes, the theorem is valid even in intuitionistic mathematics.
This is not a very helpful way to think about these things though. What I meant is that all principles used in this proof are constructive. You could, for example, literally translate this proof into a proof in type theory.
In some sense, this is just what you were saying, but my point is, this phenomenon ends up arising inevitably from the nature of the proposition being proven itself, and isn't surprising or distinctive for any particular proof of it (even if phrased ostensibly classically, such a proof might well be regarded as implicitly constructive regardless).
"Note that the proof is not constructive: it does not give a method to actually find the representation of p as a sum of two squares"
We do: the complexity classes P and NP. Ok, technically this is a polynomial time decidable language (does there exist etc. etc.), so perhaps consider FP and FNP (the function variants of P & NP).
I'm only nitpicking here, because I'm seeing this a lot...
However, I noted a few more steps in my post.
https://gowers.wordpress.com/2011/11/18/proving-the-fundamen...
http://mathoverflow.net/questions/31113/zagiers-one-sentence...
they also find a involution based proof that p = x² + 2y² if and only if p = 8k+1 or p = 8k+3
it is possible to turn this existence proof into a constructive proof. as in section 2 of this paper:
http://www.math.tugraz.at/~elsholtz/WWW/papers/papers30natha...