
A Geometric Journey Through
Integer Factorisation
Geometric Reformulations of Fermat’s Method
and Why They Meet the Same Wall
S.A. Basson
June 2026
Abstract
This paper documents a systematic exploration of integer factorisation through
geometric arrangements of the integers. Over the course of the investigation, a series
of grid-based constructions — the extended square-row grid, the diagonal polynomial
grid, square-number ladders, the visitor parabola, GCD column scans, the
√
N
window, and the prime-free column index — were developed and each shown to
reformulate the factorisation problem geometrically. The central finding is a negative
one, established from many independent angles: every such construction is derived
from a single generating function and therefore encodes exactly the information
contained in
N
itself, reducing to Fermat’s identity
N
=
a
2
− b
2
. Consequently all
meet the same
O
(
N
1/4
) complexity wall for balanced semiprimes. We present the
constructions, the exact identities they yield, and rigorous explanations of why each
fails to break the wall. The value of the work lies in mapping, precisely and honestly,
the boundary between what geometric structure can and cannot do for factorisation.
1. Introduction and philosophy
Integer factorisation underlies modern public-key cryptography: the security of RSA rests
on the difficulty of recovering
p, q
from
N
=
pq
for large balanced semiprimes. Classical
methods — trial division, Fermat’s difference of squares, Pollard’s rho, the quadratic
sieve — are well understood, and balanced semiprimes present an
O
(
N
1/4
) barrier to all
elementary approaches.
This paper takes a deliberately geometric route. The guiding question throughout was:
can arranging the integers in a structured grid expose the factorisation of
N
as a directly
readable geometric property? The answer, arrived at repeatedly and from independent
directions, is that geometric structure faithfully encodes factorisations but does not reveal
them: every construction reduces to N = a
2
− b
2
and inherits its complexity.
We record the journey in full — including the constructions that looked promising
before their equivalence to Fermat’s method became clear — because the negative result
is itself a precise and, we believe, useful characterisation. Throughout, the operative test
for any new idea is: does it introduce information independent of the single generating
function (r − 1)
2
+ c?
2. The extended square-row grid and Fermat’s method
Definition 1 (Extended square-row grid). The extended square-row grid assigns to cell
(
r, c
),
r ∈ Z
,
c ≥
1, the value
cell
(
r, c
) = (
r −
1)
2
+
c
. Integer
N
occupies row
r
=
⌈
√
N⌉
,
1