Squares and fourth powers modulo k

This post was first published on WordPress at
https://explainingmaths.wordpress.com/2021/07/26/squares-and-fourth-powers-modulo-k/

Here is another post from my Autumn 2020 introductory pure maths module's Piazza Forum, continuing the discussion of squares and other powers in modular arithmetic. This has quite a lot in common with my post on squares modulo \(k\).

Workshop 7, questions 2 and 3

Hi everyone,

I've been asked to explain Workshop 7, questions 2 and 3 a bit further.
There is quite a lot in common here with the previous question on squares modulo \(k\).

Here are the questions:

Question2

Question3

Let's start with question 2. Rather than repeating the annotations from the Workshop, let's look at a table similar to the one used in my post on squares modulo \(k\). Again this table is larger than needed, but shows the usual repeating patterns we expect to see.

\(n\) \(-2\) \(-1\) \(0\) \(1\) \(2\) \(3\) \(4\) \(5\) \(6\) \(7\) \(8\) \(9\) \(10\)
\(n^2\) \(4\) \(1\) \(0\) \(1\) \(4\) \(9\) \(16\) \(25\) \(36\) \(49\) \(64\) \(81\) \(100\)
\(n^2~~(\textrm{mod}~5)\) \(4\) \(1\) \(0\) \(1\) \(4\) \(4\) \(1\) \(0\) \(1\) \(4\) \(4\) \(1\) \(0\)
\(n^4=(n^2)^2 ~(\textrm{mod}~5)\) \(1\) \(1\) \(0\) \(1\) \(1\) \(1\) \(1\) \(0\) \(1\) \(1\) \(1\) \(1\) \(0\)

In fact, for similar reasons to those in my post on squares modulo \(k\), because the powers we are considering are even powers (\(2\) and \(4\)), you only really need to check the squares and fourth powers of \(0\), \(1\) and \(2\) modulo \(5\). The rest are repeats modulo \(5\). Because:
(i) every integer is congruent to one of  \(0\), \(1\), \(2\) , \(3\) or \(4\) modulo \(5\), so we only need to check squares and fourth powers of those numbers modulo \(5\);
(ii) \(4\equiv -1\), \(3 \equiv -2\) modulo \(5\), so even powers of \(3\) and \(4\) don't give us anything new either.
(See my post on squares modulo \(k\) for further discussion.)
The conclusions?
(a) \(0\), \(1\) and \(4\) are squares modulo \(5\) and \(2\) and \(3\) are not squares modulo \(5\).
(b) \(0\) and \(1\) are fourth powers modulo \(5\); \(2\), \(3\) and \(4\) are not fourth powers modulo \(5\).
In fact, the shortage of fourth powers modulo \(5\) is not a fluke. This happens modulo \(p\) when raising integers to the power \(p-1\) whenever \(p\) is prime, by a result known as Fermat's Little Theorem.

Armed with this, we can look at Question 3.
Now the full solution to Question 3 is in the annotated slides from the workshop, so again it might be good to say something a bit different. But, as mentioned in the annotations, this proof is really an example of Fermat's method of descent (or "proof by infinite descent"). See https://en.wikipedia.org/wiki/Proof_by_infinite_descent for more details and more examples, including yet another way to show that \(\sqrt 2\) is irrational!

So, let's have another look at the equation in question, and call it equation (1).

(1 )     \(x^4 - 4y^4 = 3 z^4\)

Here we are looking for solutions \(x\), \(y\), \(z\) which are integers. Obviously \(x=y=z=0\) is a solution here. Let's call this the trivial solution. This question is about showing that the trivial solution is the only solution to equation (1) (with integers \(x\), \(y\) and \(z\)).

The "method of descent" proof here is based on showing that, whenever you find a solution with integers \(x\), \(y\), \(z\), then all three of these integers must be divisible by \(5\), and \(x/5\), \(y/5\), \(z/5\) also solve the same equation. But then the same argument applies to these new integers, and then (by induction) for all natural numbers \(n\), \(x/5^n\), \(y/5^n\) and \(z/5^n\) will also be integers satisfying equation (1). In particular, these are all integers, which somehow looks unlikely for large \(n\). Of course this can happen if \(x=y=z=0\), but not otherwise. So the only solution is the trivial solution (with integers \(x\), \(y\) and \(z\)).

This just leaves the problem of showing that, if integers \(x\), \(y\) and \(z\) satisfy (1), then they are all divisible by \(5\).

To make life a bit simpler, we note that the LHS of (1) is congruent to \(x^4+y^4\) modulo \(5\) (since \(4 \equiv -1\) modulo 5).
By question 2, \(x^4\) and \(y^4\) are congruent to \(0\) or \(1\) modulo \(5\), so \(x^4+y^4\) can only be congruent to \(0\), \(1\) or \(2\) modulo \(5\). Moreover, the only way for the LHS to be congruent to \(0\) modulo \(5\) is if both \(x^4\) and \(y^4\) are congruent to \(0\) modulo \(5\), and (since \(5\) is prime) this happens if and only if \(x\) and \(y\) are both divisible by \(5\).

Now the RHS of (1) is \(3 z^4\). This is congruent to \(0\) or \(3\) modulo \(5\) (by question 2 again), and is congruent to \(0\) modulo \(5\) if and only if \(z\) is divisible by \(5\). (There are various ways to show the "only if": for example, if \(z\) is not divisible by \(5\), then \(z^4\) must be congruent to \(1\) modulo 5.)

Now (1) says LHS=RHS, and so, in particular, LHS is congruent to RHS modulo \(5\).
But LHS can only be congruent to \(0\), \(1\) or \(2\) and RHS can only be congruent to \(0\) or \(3\) (all modulo \(5\)).
So if LHS is congruent to RHS modulo \(5\), we must have that both are congruent to \(0\) modulo \(5\).
(No other combination works! Neither of \(1\) or \(2\) is congruent to \(3\) modulo \(5\).)
As noted above, this can only happen when all three of \(x\), \(y\) and \(z\) are divisible by \(5\), and that is what we wanted to show.
Best wishes,
Dr Feinstein

Comments

Popular posts from this blog

Sums and integration against counting measure: Part I

Discussion of the proof that the uniform norm really is a norm

Revisiting liminf and limsup