Trial Division¶
Test a complete, carrier-bounded cover of candidate divisors by exact division to find a factor or rule out reducibility.
Core Idea¶
Trial division tests candidate proper divisors by exact division. A factor found is a witness that the target is reducible; if a complete bounded candidate set is exhausted without a factor, the target is prime or irreducible under the declared algebraic setting. Finding the first factor is not yet the same as finding every factor.[ref-26b3739acb63][ref-07480829b045]
Scope of Application¶
For a positive integer \(n>1\), test candidates through \(\lfloor\sqrt n\rfloor\): a composite integer has a factor no larger than that. For \(f\in\mathbb F_p[T]\) of degree \(d\ge2\), Keith Conrad's polynomial version tests nonconstant monic candidates through degree \(\lfloor d/2\rfloor\). The square-root and half-degree cutoffs do the same structural job but are not interchangeable formulas. Units, zero and degree-one polynomials require separate boundary treatment.[ref-26b3739acb63][ref-07480829b045]
Clarity¶
Choose the target, its nonunit divisor class, a complete candidate cover and an exact zero-remainder test. Testing primes only is an integer optimization; testing all eligible integers also works. Over \(\mathbb F_p[T]\), monic representatives prevent duplicate tests of scalar associates. An early search that finds nothing says only “none among those tried”; the prime/irreducible conclusion requires the full carrier-specific bound.[ref-26b3739acb63][ref-07480829b045]
Manages Complexity¶
The factor-pair theorem converts a seemingly unlimited divisibility question into finitely many verifiable trials. It also identifies where the method may become costly: candidate count grows with integer magnitude or polynomial degree and field size. Optimized enumeration saves tests only when it preserves coverage, and a handoff to a different algorithm is optional rather than part of trial division's identity.[ref-26b3739acb63][ref-07480829b045]
Abstract Reasoning¶
For $1001\(, tests by \$2,3,5\) fail and $7$ divides, leaving $143\(; continuing on the residual finds \$11\) and $13$. The first hit proves compositeness, whereas \(1001=7\cdot11\cdot13\) is the later complete result. For \(f=T^4+T^2+1\) over \(\mathbb F_2[T]\), the degree-two monic candidate \(g=T^2+T+1\) divides because \(f=g^2\) in characteristic two. The polynomial candidate falls within \(\lfloor4/2\rfloor=2\), not an integer square-root bound.[ref-26b3739acb63][ref-07480829b045]
Knowledge Transfer¶
The same method travels literally from integers to finite-field polynomials: bounded adequate candidates, exact divisibility, factor witness or exhaustive no-factor certificate. Its carrier-specific units and bounds must be rederived. Live Algorithm is the proposed strict parent; live Factorization and Integer Factorization concern decomposition outcomes or a narrower target, not this cross-carrier method.
[^ref-26b3739acb63]: Number Theory: In Context, §12.5.2 “Trial division” and Algorithm 12.5.7, original textbook author text (2017 edition). [^ref-07480829b045]: Keith Conrad, “Irreducibility Tests in \(\mathbb F_p[T]\)”, original author notes, §2 Theorem 2.1 and Example 2.2, PDF p.1.
Relationships to Other Abstractions¶
Current abstraction Trial Division Domain-specific
Parents (1) — more general patterns this builds on
-
Trial Division is a kind of Algorithm Prime
Trial division is a finite exact-search algorithm over bounded proper-divisor candidates.
Hierarchy paths (2) — routes to 2 parentless roots
- Trial Division → Algorithm → Function (Mapping)
Neighborhood in Abstraction Space¶
Trial Division sits in a moderately populated region (55th percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.
Family — Number-Theoretic Properties & Tests (20 abstractions)
Nearest neighbors
- Semiperfect Number — 0.89
- Square-Free Integer — 0.88
- Primitive Semiperfect Number — 0.85
- Achilles Number — 0.85
- Hensel's Lemma — 0.84
Computed from structural-signature embeddings · 2026-10-08