A nontrivial square root of 1 gives a factor by a gcd. Failure forces the 2-adic valuations of the orders modulo each prime-power factor to coincide, and by the Chinese remainder theorem and cyclicity each valuation takes any given value with probability at most 1/2, independently.
Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01
AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.
Two standard facts from elementary number theory are used (Appendix 4 of
Nielsen and Chuang): the Chinese remainder theorem, by which
a↦(amodp1α1,…,amodpmαm) is a group isomorphism
ZN∗≅Zp1α1∗×⋯×Zpmαm∗; and
the fact that for an odd prime p the group Zpα∗ is cyclic, of
order φ(pα)=pα−1(p−1).
The gcd step. Suppose r is even and b=ar/2≡−1. Also
b≡1, since r/2<r and r is the least exponent with ar≡1. Then
N∣b2−1=(b−1)(b+1) while N∤b−1 and N∤b+1. So N shares a
factor with b−1 but is not contained in it: 1<gcd(b−1,N)<N, and likewise for
b+1.
Failure forces equal valuations. Let rj be the order of a modulo
pjαj, so that r=lcm(r1,…,rm), and let dj be the
exponent of the largest power of 2 dividing rj; let d be that of r, so
d=maxjdj. The procedure fails when r is odd or ar/2≡−1.
If r is odd, every rj is odd and d1=⋯=dm=0.
If r is even and ar/2≡−1(modN), then ar/2≡−1≡1
modulo each pjαj (as pj is odd), so rj∤r/2. Since rj∣r,
this means rj contains the full power 2d, i.e. dj=d for every j.
In both cases all dj are equal.
Each valuation is spread out. By the Chinese remainder theorem, a uniform on
ZN∗ means that the components aj=amodpjαj are independent and
uniform on Zpjαj∗, and dj depends only on aj. Fix j, let g be
a generator of the cyclic group Zpjαj∗ of order φj, and let
2D be the largest power of 2 dividing φj; D≥1 because pj−1 is even.
The element gk has order φj/gcd(k,φj), whose 2-adic exponent is D
when k is odd and less than D when k is even. As k ranges uniformly over
{0,…,φj−1} exactly half the values are odd, so Pr[dj=D]=1/2 and
consequently Pr[dj=c]≤1/2 for every value c.
Conclusion. Conditioning on a1 and using independence,
For m≥2 this is at most 1/2. The structure of the argument follows the proof of
Theorem 5.3 in Nielsen and Chuang; counting the conditioning
on d1 explicitly gives the exponent m−1.
Claude (AI drafting assistant)Writing, original draft (CRediT roles)
Review history
Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)
Every step re-derived: gcd step from b^2 = 1 with b not +-1; failure forces equal 2-adic valuations of the r_j (both cases); for a generator g of the cyclic group Z*_{p^alpha} (odd p), g^k has full 2-adic order exactly when k is odd, so each valuation value has probability at most 1/2; CRT independence gives 1/2^(m-1). Numerical check: exhaustive enumeration over all odd N < 1200 with m >= 2 confirmed the bound with minimum 1/2 at N = 21. Bound and its corrected exponent compared with arXiv:2308.05047, Appendix eq. (A26). Nielsen-Chuang Appendix 4 (A4.3 Reduction of factoring to order-finding) confirmed in the publisher's table of contents.
Revision history
2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10
Current revision 39760c451e2d9ba1. Source file knowledge/records/proof/factoring-reduces-to-order-finding.md in the content repository (readable there once it is public).