Ch2.0.6 — Of the Cases in Integer Numbers, in which the Formula becomes a Square

Summary: Given a seed integer solution to and integer values , satisfying the pell-equation , derives a recurrence that produces infinitely many further integer solutions; applies the method to triangular, pentagonal, and hexagonal numbers that are simultaneously squares.

Sources: chapter-2.0.6

Last updated: 2026-05-08


Setup (§79–80)

After reducing by the substitution of ch2.0.5-impossibility-quadratic-squares (§63), the problem is to find all integer making . Two pre-conditions are required:

  1. A seed solution: integers , with .
  2. A Pell pair: integers , with (see ch2.0.7-pell-equation-method).

Without a seed, there may be no integer solutions at all; the method cannot create them from nothing.


Derivation (§81–86)

Long method (§81–83)

Since and , subtracting:

Introducing auxiliary integers , , then setting and , and solving for and yields fractional expressions. To make them integers, set and . Computing shows it equals , so and must satisfy the Pell equation.

Short method (§86)

Since and , multiply both equations:

Expanding the right side and setting forces

Thus and , an entirely integer result.


The Core Recurrence (§83–84, §94)

Given a Pell pair with , every known solution yields a new one:

Substituting the new solution back in place of produces yet another, giving an infinite sequence. The sequence satisfies the second-order recurrence (§95):

(and identically for ), so each term is determined by the two preceding terms without needing the -sequence at all.


Worked Examples

Question 1 (§87):

, . Seed: , (). Pell pair: gives , .

Recurrences: , . Starting from :

The -values follow with each term .

Question 2 (§88): Triangular numbers that are squares

The -th triangular number is a square iff . So , . Seed: , . Pell: gives , .

The triangular squares are , , , , , , (source: chapter-2.0.6, §88)

Question 3 (§89): Pentagonal numbers that are squares

The -th pentagon is . Setting equal to leads to . , . Seed: , . Pell: gives , .

Integer pentagons that are squares: , , (source: chapter-2.0.6, §89)

Question 4 (§90):

Seed: , (). Pell: gives , .

Question 5 (§91): Triangular numbers that are pentagons

Equating -th triangle to -th pentagon reduces (via a completing-the-square step) to , with , . Seed: , . Pell: gives , .

(triangular root) (pentagonal root)
(not integer)
(not integer)

Extension to Formula with Middle Term (§92–93)

For , with known seed , subtract and factor:

The same procedure applies, introducing . The integer formulas become:

Hexagonal squares (§93): (, , ). Seed: , . Pell: gives , .