Ch2.0.5 — Of the Cases in which the Formula can never become a Square

Summary: Uses residue-class analysis modulo 3, 4, 5, and 7 to identify infinite families of two-term formulas that can never be perfect squares, providing a practical impossibility test before attempting Diophantine solutions.

Sources: chapter-2.0.5

Last updated: 2026-05-08


Reduction to Two Terms (§63)

Any three-term formula can be stripped of its middle term by the substitution , which transforms it into

Setting this equal to gives . Writing , the original formula is a square if and only if is a square. Because this two-term form is easier to analyse, all impossibility arguments reduce to it.


Mod-3 Analysis (§65–68)

Every integer belongs to one of three residue classes , , . Computing squares:

ClassSquareMod-3 remainder

Conclusion: squares mod 3 are only or ; residue is impossible for a square.

Application (§66): can never be a square, for any integer or fraction .

  • If is an integer: dividing by 3 leaves remainder 2.
  • If in lowest terms: clearing denominators gives . If is divisible by 3 then is not, and is divisible by 3 but not 9. If is not divisible by 3 then , so and the whole expression has remainder 2.

Generalization (§67–68): The argument extends to for all integers (including negative), proving that formulas whose second coefficient is are never squares.


Mod-4/8 Analysis (§69–71)

Every number belongs to one of , , , . Squares:

ClassSquareRemainder

Conclusions (§70):

  • Even squares are of the form or ; forms , , , , , are never squares.
  • Odd squares are all ; forms , , are never squares.

Second impossibility proof for (§71): and cannot both be even (they share a divisor 2, contradicting the lowest-terms assumption). If both odd: and , giving remainder — not a square. If even and odd: and , remainder — not a square. Similarly for odd and even. Hence is never a square.

The same argument proves that can never be a square for any integers , .


Mod-5 Analysis (§72–73)

Numbers fall into five classes mod 5. Squares of non-multiples of 5:

ClassSquare mod 5

Non-zero squares mod 5 are only or ; residues and are impossible.

Application (§73): Neither nor can ever be a square. If is divisible by 5, these are divisible by 5 but not 25, so not squares. If : leaves and leaves . If : the remainders swap (3 and 2 respectively). In all cases, neither expression is a square.


General Divisor (§75–77)

For any divisor , the residue classes of squares satisfy the symmetry: and both give remainder when squared. Thus the distinct square residues mod correspond to taken mod .

Mod-7 table (§75–76):

ClassSquareRemainder mod 7

Non-zero squares mod 7 are only , , ; residues , , are impossible.

Application (§78): , , and can never be squares; dividing by 7 gives only remainders , , , but multiplying by , , or always leaves residues outside .


Combined Criterion (§74)

Since all odd squares are , the general formula

can never be a square: if both and are odd, the remainder is ; if one is even, the remainder is . Neither 2 nor 3 is a square residue mod 4.


Practical Summary

Before attempting to find integer solutions to :

  1. Reduce to the two-term form by the substitution of §63.
  2. Check whether this form can leave only non-square residues modulo some divisor .
  3. If so, the formula is permanently impossible — no rational or integer solution exists.
  4. If not, a single solution (if found) generates infinitely many via the method of ch2.0.6-integer-solutions-quadratic-squares.

The quadratic-residues concept page collects the full residue tables used here.