Page actions
instrument / verified-clean
Prime Factorization & Divisor Explorer
The current ledger marks this instrument verified clean within the source-bound verification corpus.
Inspectable records
Ledger state
The current ledger marks this instrument verified clean within the source-bound verification corpus.
- Area
- Mathematics — arithmetic through advanced (algebra, matrices, calculus, sequences/series, number theory, combinatorics, graphing, complex numbers, geometry, logic, sets)
- Tranche
- tranche-6
- Evidence ID
- t6-046
- Ledger rows
- 1
No ledger note is attached.
Review findings
The named approaches and divisor-function mathematics are standard and correct, but the specification needs exact definitions for σ, d, and the classification convention, plus an explicit BigInt/arbitrary-precision requirement and a fully specified Pollard-rho/primality implementation. The honest label is appropriate, especially for large semiprimes and complete divisor-list generation.
Formula and scope findings
- The formulas field names σ(n) and d(n) but does not explicitly define them: for n=∏p_i^a_i, d(n)=∏(a_i+1) and σ(n)=∏(p_i^(a_i+1)-1)/(p_i-1), equivalently ∏(1+p_i+...+p_i^a_i).
- Perfect/abundant/deficient classification must explicitly use the proper-divisor sum σ(n)-n: perfect if σ(n)=2n, abundant if σ(n)>2n, and deficient if σ(n)<2n. The convention that n=1 is deficient should be stated.
- Pollard's rho is a correct standard factorization method, but the spec does not define the primality test, recursion/termination criteria, or deterministic handling of its randomized iteration.
Unit assumptions
- Input is an exact positive integer n≥1 with no physical units.
- Large integers must use exact arbitrary-precision arithmetic such as JavaScript BigInt; IEEE-754 Number arithmetic is unsafe above 9,007,199,254,740,991.
- Divisors are returned as positive divisors in ascending order.
- For n=1, the factorization is conventionally represented as 1, its sole divisor is 1, and it is deficient because its proper-divisor sum is 0.
Boundary hardening
Recorded hazards
- Reject zero, negative values, nonintegers, and non-finite inputs; n=0 has infinitely many divisors and would make the requested functions undefined.
- A divisor-count or divisor-sum implementation that uses ordinary JavaScript Number values can silently lose precision for integers above 2^53−1.
- Trial division can be impractically slow for large semiprimes; Pollard's rho can also require unbounded retries and needs a correct primality test and factor-completion logic.
- Pollard's rho is commonly randomized; an unseeded random implementation is not reproducible, so deterministic testing requires a specified seed or deterministic test properties.
- Generating the complete divisor list can require substantial memory even when factorization itself is fast.
- Classification requires computing or comparing σ(n) against 2n exactly, not using floating-point arithmetic.
Errata and corrections
No applied erratum is attached to this unique-name record.
Inspectable example
4 review vectors are recorded. One source-bound sample is shown below.
{
"inputs": {
"n": 1
},
"expected_outputs": {
"factorization": "1",
"divisors": [
"1"
],
"divisor_count": "1",
"divisor_sum": "1",
"proper_divisor_sum": "0",
"classification": "deficient"
},
"working": "1 has no prime factors. Its positive divisor list is [1]. Therefore d(1)=1 and σ(1)=1. The proper-divisor sum is σ(1)-1=1-1=0. Since 0<1, 1 is deficient."
}Related workflows
No source-defined multi-instrument workflow membership is recorded.
Sources and evidence
These pointers bind the page to evidence. They do not grant authority or collapse verification into deployment.
VERIFIED_LEDGER.json · VERIFIED_CLEANevidence-tranche6/tranche6-results.json