Pattern-Based Factorization Method
(P.F.M.)
Author: Marlon Fernando Polegato
Consolidated version based on the original document and updated computational tests.
1. Introduction
The Pattern-Based Factorization Method (P.F.M.) aims to identify primes and composites
with high precision, using decimal redistribution with fixed multipliers. It is a deterministic,
efficient method capable of returning actual divisors without relying on prime lists or
classical factorization.
2. Structural Definition of the Method
Given n ∈ ℕ and fixed multipliers k ∈ {1, 3, 7, 9, 11}, define nk = 10A + d, with A = ⌊nk / 10⌋
and d = nk mod 10. Iteratively, update the values: A ← A - i and d ← d + 10i. If d > 1 and d
divides both A and n, then d is a real divisor.
3. General Formulation of P.F.M.
For each fixed k, define:
• nk = 10A + d
• A = ⌊nk / 10⌋, d = nk % 10
• A_i = A - i, d_i = d + 10i
Compositeness criterion: if there exists i ∈ ℕ such that d_i > 1, d_i | A_i and d_i | n, then n is
composite.
4. Theorem of Correctness
If n is composite and ∃ real d such that d | n, then ∃ k ∈ {1, 3, 7, 9, 11} and i ∈ ℕ such that:
• A = dq
• nk = 10A + d
• A mod d = 0 and n mod d = 0 ⇒ d is detected as a real divisor.
Proof: If A = dq, then nk = 10dq + d = d(10q + 1) ⇒ n = nk / k = d(10q + 1)/k.
If k divides (10q + 1), then n ∈ ℕ and d | n. Since k is fixed and d ≤ √nk, the method finds d
within √nk / 10 iterations.