How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Characterisation of primitive sums of two squares
Statement
A positive integer has a primitive two-square representation if and only if and no prime divides .
Facts & Assumptions
Given: A positive integer .
A two-square representation is primitive when its coordinate gcd is (Representations and primitive representations as sums of two squares).
If is prime and , then and (A prime congruent to modulo divides both coordinates of a divisible two-square sum).
If and are primitive representations with , then the Brahmagupta–Fibonacci construction gives a primitive representation of (Coprime primitively represented factors have a primitive product representation).
Every natural power of a prime congruent to modulo has a primitive two-square representation (Powers of primes congruent to modulo have primitive two-square representations).
A positive integer is the finite product of the powers of its prime divisors with their canonical valuations (For and any injective list of primes containing every prime divisor of , one has ; the exponents are determined by , and for every prime outside the list).
For a prime and a nonzero integer , and every : if and only if ; in particular if and only if (For a prime and a nonzero integer : and ; holds exactly for ; exactly when ; ; and ).
For a finite pairwise-coprime list with partial products , one has whenever (For a finite pairwise-coprime list of positive integers, the product divides every common multiple, and each initial product is coprime to every remaining modulus).
If a prime divides , then or (Euclid's lemma: if is prime and then or ).
If a property holds at and passes from to , it holds for every (The principle of mathematical induction).
Proof
For the forward direction, if primitively and a prime divided , [L1] would make divide both coordinates, contrary to [F1].
Squares modulo show that forces both and even. Thus a primitive representation has , and the divisibility clause of [L5] at , makes that equivalent to .
For the reverse direction, assume the two stated prime conditions. In [L4], no three-mod-four prime occurs, the factor occurs with exponent at most one, and all remaining nontrivial factors are powers of distinct primes congruent to one modulo four. The factors are pairwise coprime by uniqueness and [L7].
The possible factor has the primitive representation , and every one-mod-four prime power has a primitive representation by [L3].
Combine these pairwise-coprime primitive representations one at a time using [L2]. The partial product is coprime to the next factor by [L6], so [L8] completes the finite induction. If the factor list is empty, and is primitive.
Steps 1.1 and 1.2 prove necessity, while step 3.1 proves sufficiency.
Depends on
- Representations and primitive representations as sums of two squares
- A prime congruent to $3$ modulo $4$ divides both coordinates of a divisible two-square sum
- Coprime primitively represented factors have a primitive product representation
- Powers of primes congruent to $1$ modulo $4$ have primitive two-square representations
- For $n \ge 1$ and any injective list $p : r \to \mathbb{Z}$ of primes containing every prime divisor of $n$, one has $n = \prod_{i<r} p_i^{\,v_{p_i}(n)}$; the exponents are determined by $n$, and $v_q(n) = 0$ for every prime $q$ outside the list
- For a prime $p$ and a nonzero integer $a$: $p^{v_p(a)} \mid a$ and $p^{v_p(a)+1} \nmid a$; $p^{k} \mid a$ holds exactly for $k \le v_p(a)$; $v_p(a) \ge 1$ exactly when $p \mid a$; $v_p(1) = v_p(-1) = 0$; and $v_p(p) = 1$
- For a finite pairwise-coprime list of positive integers, the product divides every common multiple, and each initial product is coprime to every remaining modulus
- Euclid's lemma: if $p$ is prime and $p \mid ab$ then $p \mid a$ or $p \mid b$
- The principle of mathematical induction
Used by
- Divisors greater than one of primitively represented integers are primitively represented Corollary
- Primitive sums of two squares are closed under products unless both factors are even Corollary
- Squarefree sums of two squares Corollary
- 68=8²+2² is representable but has no primitive two-square representation Counterexample
- The primitive two-square criterion distinguishes 289, 34, and 833 Example
Dependency tree · two levels
50 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- P. Hackman, Elementary Number Theory, Chapter E, Theorem E.II.4 and Lemmas E.II.5–E.II.6 (standard reference, not scraped)