<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.4 20241031//EN" "JATS-journalpublishing1-4.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="1.4" xml:lang="en">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">apm</journal-id>
      <journal-title-group>
        <journal-title>Advances in Pure Mathematics</journal-title>
      </journal-title-group>
      <issn pub-type="epub">2160-0384</issn>
      <issn pub-type="ppub">2160-0368</issn>
      <publisher>
        <publisher-name>Scientific Research Publishing</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.4236/apm.2026.169033</article-id>
      <article-id pub-id-type="publisher-id">apm-154008</article-id>
      <article-categories>
        <subj-group>
          <subject>Article</subject>
        </subj-group>
        <subj-group>
          <subject>Physics</subject>
          <subject>Mathematics</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Elaborating the Condition in Fermat’s Two Square Theorem</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <contrib-id contrib-id-type="orcid">0009-0008-8824-3387</contrib-id>
          <name name-style="western">
            <surname>Lin</surname>
            <given-names>Nianrui</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
      </contrib-group>
      <aff id="aff1"><label>1</label> Department of Systems Engineering, City University of Hong Kong, Hong Kong, China </aff>
      <author-notes>
        <fn fn-type="conflict" id="fn-conflict">
          <p>The author declares no conflicts of interest regarding the publication of this paper.</p>
        </fn>
      </author-notes>
      <pub-date pub-type="epub">
        <day>02</day>
        <month>09</month>
        <year>2026</year>
      </pub-date>
      <pub-date pub-type="collection">
        <month>09</month>
        <year>2026</year>
      </pub-date>
      <volume>16</volume>
      <issue>09</issue>
      <fpage>678</fpage>
      <lpage>681</lpage>
      <history>
        <date date-type="received">
          <day>21</day>
          <month>08</month>
          <year>2026</year>
        </date>
        <date date-type="accepted">
          <day>17</day>
          <month>09</month>
          <year>2026</year>
        </date>
        <date date-type="published">
          <day>20</day>
          <month>09</month>
          <year>2026</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>© 2026 by the authors and Scientific Research Publishing Inc.</copyright-statement>
        <copyright-year>2026</copyright-year>
        <license license-type="open-access">
          <license-p> This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license ( <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link> ). </license-p>
        </license>
      </permissions>
      <self-uri content-type="doi" xlink:href="https://doi.org/10.4236/apm.2026.169033">https://doi.org/10.4236/apm.2026.169033</self-uri>
      <abstract>
        <p>It is a well-known result that prime numbers congruent to 1 modulo 4 are representable as a sum of two squares. A recent article shows that the number of representations can imply the primality of square-free integers congruent to 1 modulo 4. However, the authors did not clarify the distinctness of the construction of representations in the proof of the main theorem. We provide a complementary proof to clarify this construction and also present an alternative proof based on Jacobi’s two square theorem.</p>
      </abstract>
      <kwd-group kwd-group-type="author-generated" xml:lang="en">
        <kwd>Fermat’s Two Square Theorem</kwd>
        <kwd>Primality</kwd>
        <kwd>Sum of Two Squares</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec1">
      <title>1. Introduction</title>
      <p>Fermat’s two square theorem states that an odd prime <inline-formula><mml:math><mml:mi> p </mml:mi></mml:math></inline-formula> can be represented as a sum of two squares if and only if <inline-formula><mml:math><mml:mrow><mml:mi> p </mml:mi><mml:mo> ≡ </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:math></inline-formula> (mod 4) [<xref ref-type="bibr" rid="B1">1</xref>]. However, this classical theorem only reveals the property of representability as a sum of two squares for primes congruent to 1 modulo 4, while little attention has been paid to the complete picture: using the number of such representations to detect primality for a general positive integer congruent to 1 modulo 4.</p>
      <p>The recent article [<xref ref-type="bibr" rid="B2">2</xref>] presents a criterion for testing the primality of square-free positive integers congruent to 1 modulo 4, based on the uniqueness of representations as a sum of two squares. It goes beyond Fermat’s theorem and establishes a two-way connection between uniqueness of representation as a sum of two squares and primality. Modern primality tests include the deterministic, polynomial-time AKS algorithm [<xref ref-type="bibr" rid="B3">3</xref>] and the probabilistic Miller-Rabin test [<xref ref-type="bibr" rid="B4">4</xref>][<xref ref-type="bibr" rid="B5">5</xref>], whose error probability can be reduced through repeated rounds. Unlike these computational algorithms, the theorem in [<xref ref-type="bibr" rid="B2">2</xref>] connects primality to the uniqueness of representation as a sum of two squares.</p>
      <p>Unfortunately, the proof of the main theorem relies on the implicit assumption that the constructed representations are pairwise distinct, but a justification was not provided.</p>
      <p>In this paper, we further clarify the counting step in the proof of the main theorem in [<xref ref-type="bibr" rid="B2">2</xref>], showing that the representations generated in Step 2 of Section 3 are pairwise distinct up to order and signs. </p>
    </sec>
    <sec id="sec2">
      <title>2. Two Supplementary Proofs of the Theorem</title>
      <p>We first recall the main theorem of [<xref ref-type="bibr" rid="B2">2</xref>].</p>
      <p>Two integer pairs are regarded as equivalent if one can be obtained from the other by changing order and signs independently. The representation of an integer <inline-formula><mml:math><mml:mi> a </mml:mi></mml:math></inline-formula> as a sum of two squares is considered unique if all integer solutions of <inline-formula><mml:math><mml:mrow><mml:mi> a </mml:mi><mml:mo> = </mml:mo><mml:msup><mml:mi> c </mml:mi><mml:mn> 2 </mml:mn></mml:msup><mml:mo> + </mml:mo><mml:msup><mml:mi> d </mml:mi><mml:mn> 2 </mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> form exactly one equivalence class under this relation.</p>
      <p><bold>Theorem</bold> Let <inline-formula><mml:math><mml:mi> a </mml:mi></mml:math></inline-formula> be a square-free positive integer larger than 1 and <inline-formula><mml:math><mml:mrow><mml:mi> a </mml:mi><mml:mo> ≡ </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:math></inline-formula> (mod 4). If <inline-formula><mml:math><mml:mrow><mml:mi> a </mml:mi><mml:mo> = </mml:mo><mml:msup><mml:mi> c </mml:mi><mml:mn> 2 </mml:mn></mml:msup><mml:mo> + </mml:mo><mml:msup><mml:mi> d </mml:mi><mml:mn> 2 </mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> has a unique representation as a sum of two squares for a pair of integers <inline-formula><mml:math><mml:mi> c </mml:mi></mml:math></inline-formula> and <inline-formula><mml:math><mml:mi> d </mml:mi></mml:math></inline-formula> , then <inline-formula><mml:math><mml:mi> a </mml:mi></mml:math></inline-formula> is prime.</p>
      <p>The authors of [<xref ref-type="bibr" rid="B2">2</xref>] prove the theorem by offering the following method to construct <inline-formula><mml:math><mml:mrow><mml:msup><mml:mn> 2 </mml:mn><mml:mrow><mml:mi> k </mml:mi><mml:mo> − </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> candidate representations as a sum of two squares for <inline-formula><mml:math><mml:mrow><mml:mi> a </mml:mi><mml:mo> = </mml:mo><mml:msub><mml:mi> p </mml:mi><mml:mn> 1 </mml:mn></mml:msub><mml:msub><mml:mi> p </mml:mi><mml:mn> 2 </mml:mn></mml:msub><mml:mo> ⋯ </mml:mo><mml:msub><mml:mi> p </mml:mi><mml:mi> k </mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> . Since such a representation exists, every prime factor congruent to 3 modulo 4 must occur with an even exponent. Combined with the fact that <inline-formula><mml:math><mml:mi> a </mml:mi></mml:math></inline-formula> is square-free, <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mi> j </mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> ’s are all distinct primes congruent to 1 modulo 4.</p>
      <p>The first factor <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mn> 1 </mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> has a representation <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mn> 1 </mml:mn></mml:msub><mml:mo> = </mml:mo><mml:msubsup><mml:mi> x </mml:mi><mml:mn> 1 </mml:mn><mml:mn> 2 </mml:mn></mml:msubsup><mml:mo> + </mml:mo><mml:msubsup><mml:mi> y </mml:mi><mml:mn> 1 </mml:mn><mml:mn> 2 </mml:mn></mml:msubsup></mml:mrow></mml:math></inline-formula> by Fermat’s two square theorem.</p>
      <p>Assume that <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mi> j </mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> has a representation <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mi> j </mml:mi></mml:msub><mml:mo> = </mml:mo><mml:msubsup><mml:mi> x </mml:mi><mml:mi> j </mml:mi><mml:mn> 2 </mml:mn></mml:msubsup><mml:mo> + </mml:mo><mml:msubsup><mml:mi> y </mml:mi><mml:mi> j </mml:mi><mml:mn> 2 </mml:mn></mml:msubsup></mml:mrow></mml:math></inline-formula> , where <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> x </mml:mi><mml:mi> j </mml:mi></mml:msub><mml:mo> , </mml:mo><mml:msub><mml:mi> y </mml:mi><mml:mi> j </mml:mi></mml:msub><mml:mo> &gt; </mml:mo><mml:mn> 0 </mml:mn></mml:mrow></mml:math></inline-formula> , and a representation <inline-formula><mml:math><mml:mrow><mml:msup><mml:mi> A </mml:mi><mml:mn> 2 </mml:mn></mml:msup><mml:mo> + </mml:mo><mml:msup><mml:mi> B </mml:mi><mml:mn> 2 </mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> of <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mn> 1 </mml:mn></mml:msub><mml:mo> ⋯ </mml:mo><mml:msub><mml:mi> p </mml:mi><mml:mrow><mml:mi> j </mml:mi><mml:mo> − </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> has already been obtained. The Brahmagupta-Fibonacci Identity gives two representations for <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mn> 1 </mml:mn></mml:msub><mml:mo> ⋯ </mml:mo><mml:msub><mml:mi> p </mml:mi><mml:mi> j </mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> :</p>
      <disp-formula id="FD1">
        <mml:math>
          <mml:mrow>
            <mml:mrow>
              <mml:mo>(</mml:mo>
              <mml:mrow>
                <mml:msup>
                  <mml:mi>A</mml:mi>
                  <mml:mn>2</mml:mn>
                </mml:msup>
                <mml:mo>+</mml:mo>
                <mml:msup>
                  <mml:mi>B</mml:mi>
                  <mml:mn>2</mml:mn>
                </mml:msup>
              </mml:mrow>
              <mml:mo>)</mml:mo>
            </mml:mrow>
            <mml:mrow>
              <mml:mo>(</mml:mo>
              <mml:mrow>
                <mml:msubsup>
                  <mml:mi>x</mml:mi>
                  <mml:mi>j</mml:mi>
                  <mml:mn>2</mml:mn>
                </mml:msubsup>
                <mml:mo>+</mml:mo>
                <mml:msubsup>
                  <mml:mi>y</mml:mi>
                  <mml:mi>j</mml:mi>
                  <mml:mn>2</mml:mn>
                </mml:msubsup>
              </mml:mrow>
              <mml:mo>)</mml:mo>
            </mml:mrow>
            <mml:mo>=</mml:mo>
            <mml:msup>
              <mml:mrow>
                <mml:mrow>
                  <mml:mo>(</mml:mo>
                  <mml:mrow>
                    <mml:mi>A</mml:mi>
                    <mml:msub>
                      <mml:mi>x</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:msub>
                    <mml:mo>−</mml:mo>
                    <mml:mi>B</mml:mi>
                    <mml:msub>
                      <mml:mi>y</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:msub>
                  </mml:mrow>
                  <mml:mo>)</mml:mo>
                </mml:mrow>
              </mml:mrow>
              <mml:mn>2</mml:mn>
            </mml:msup>
            <mml:mo>+</mml:mo>
            <mml:msup>
              <mml:mrow>
                <mml:mrow>
                  <mml:mo>(</mml:mo>
                  <mml:mrow>
                    <mml:mi>A</mml:mi>
                    <mml:msub>
                      <mml:mi>y</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:msub>
                    <mml:mo>+</mml:mo>
                    <mml:mi>B</mml:mi>
                    <mml:msub>
                      <mml:mi>x</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:msub>
                  </mml:mrow>
                  <mml:mo>)</mml:mo>
                </mml:mrow>
              </mml:mrow>
              <mml:mn>2</mml:mn>
            </mml:msup>
            <mml:mo>=</mml:mo>
            <mml:msup>
              <mml:mrow>
                <mml:mrow>
                  <mml:mo>(</mml:mo>
                  <mml:mrow>
                    <mml:mi>A</mml:mi>
                    <mml:msub>
                      <mml:mi>x</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:msub>
                    <mml:mo>+</mml:mo>
                    <mml:mi>B</mml:mi>
                    <mml:msub>
                      <mml:mi>y</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:msub>
                  </mml:mrow>
                  <mml:mo>)</mml:mo>
                </mml:mrow>
              </mml:mrow>
              <mml:mn>2</mml:mn>
            </mml:msup>
            <mml:mo>+</mml:mo>
            <mml:msup>
              <mml:mrow>
                <mml:mrow>
                  <mml:mo>(</mml:mo>
                  <mml:mrow>
                    <mml:mi>A</mml:mi>
                    <mml:msub>
                      <mml:mi>y</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:msub>
                    <mml:mo>−</mml:mo>
                    <mml:mi>B</mml:mi>
                    <mml:msub>
                      <mml:mi>x</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:msub>
                  </mml:mrow>
                  <mml:mo>)</mml:mo>
                </mml:mrow>
              </mml:mrow>
              <mml:mn>2</mml:mn>
            </mml:msup>
            <mml:mo>.</mml:mo>
          </mml:mrow>
        </mml:math>
      </disp-formula>
      <p>After incorporating all <inline-formula><mml:math><mml:mi> k </mml:mi></mml:math></inline-formula> factors, this process generates <inline-formula><mml:math><mml:mrow><mml:msup><mml:mn> 2 </mml:mn><mml:mrow><mml:mi> k </mml:mi><mml:mo> − </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> candidate representations.</p>
      <p>In [<xref ref-type="bibr" rid="B2">2</xref>], these <inline-formula><mml:math><mml:mrow><mml:msup><mml:mn> 2 </mml:mn><mml:mrow><mml:mi> k </mml:mi><mml:mo> − </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> candidate representations are regarded as pairwise distinct up to order and signs in the proof of the main theorem, but this does not immediately follow. We now provide two ways to justify this counting step.</p>
      <p>The first is to justify that the candidate representations are pairwise distinct up to order and signs by the following lemma.</p>
      <p><bold>Lemma</bold> The <inline-formula><mml:math><mml:mrow><mml:msup><mml:mn> 2 </mml:mn><mml:mrow><mml:mi> k </mml:mi><mml:mo> − </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> candidate representations as a sum of two squares are pairwise distinct, where we consider two representations the same if they differ only in the order of the summands or in signs.</p>
      <p>Proof:</p>
      <p>We prove the lemma by induction. The first prime factor <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mn> 1 </mml:mn></mml:msub></mml:mrow></mml:math></inline-formula> has a unique representation class by Fermat’s Theorem. Suppose that <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mn> 1 </mml:mn></mml:msub><mml:mo> ⋯ </mml:mo><mml:msub><mml:mi> p </mml:mi><mml:mrow><mml:mi> j </mml:mi><mml:mo> − </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> has <inline-formula><mml:math><mml:mrow><mml:msup><mml:mn> 2 </mml:mn><mml:mrow><mml:mi> j </mml:mi><mml:mo> − </mml:mo><mml:mn> 2 </mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> distinct representation classes <inline-formula><mml:math><mml:mrow><mml:mrow><mml:mo> ( </mml:mo><mml:mrow><mml:mi> A </mml:mi><mml:mo> , </mml:mo><mml:mi> B </mml:mi></mml:mrow><mml:mo> ) </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> . Using the construction in [<xref ref-type="bibr" rid="B2">2</xref>], we obtain <inline-formula><mml:math><mml:mrow><mml:msup><mml:mn> 2 </mml:mn><mml:mrow><mml:mi> j </mml:mi><mml:mo> − </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> representations of <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mn> 1 </mml:mn></mml:msub><mml:mo> ⋯ </mml:mo><mml:msub><mml:mi> p </mml:mi><mml:mrow><mml:mi> j </mml:mi><mml:mo> − </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:msub><mml:msub><mml:mi> p </mml:mi><mml:mi> j </mml:mi></mml:msub><mml:mo> = </mml:mo><mml:mrow><mml:mo> ( </mml:mo><mml:mrow><mml:msup><mml:mi> A </mml:mi><mml:mn> 2 </mml:mn></mml:msup><mml:mo> + </mml:mo><mml:msup><mml:mi> B </mml:mi><mml:mn> 2 </mml:mn></mml:msup></mml:mrow><mml:mo> ) </mml:mo></mml:mrow><mml:mrow><mml:mo> ( </mml:mo><mml:mrow><mml:msubsup><mml:mi> x </mml:mi><mml:mi> j </mml:mi><mml:mn> 2 </mml:mn></mml:msubsup><mml:mo> + </mml:mo><mml:msubsup><mml:mi> y </mml:mi><mml:mi> j </mml:mi><mml:mn> 2 </mml:mn></mml:msubsup></mml:mrow><mml:mo> ) </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> . We show that each of these <inline-formula><mml:math><mml:mrow><mml:msup><mml:mn> 2 </mml:mn><mml:mrow><mml:mi> j </mml:mi><mml:mo> − </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> representations <inline-formula><mml:math><mml:mrow><mml:mrow><mml:mo> ( </mml:mo><mml:mrow><mml:mi> s </mml:mi><mml:mo> , </mml:mo><mml:mi> t </mml:mi></mml:mrow><mml:mo> ) </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> is generated uniquely from a pair <inline-formula><mml:math><mml:mrow><mml:mrow><mml:mo> ( </mml:mo><mml:mrow><mml:mi> A </mml:mi><mml:mo> , </mml:mo><mml:mi> B </mml:mi></mml:mrow><mml:mo> ) </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> along with one of the two Brahmagupta-Fibonacci identities.</p>
      <p>Any representation <inline-formula><mml:math display="inline"><mml:mrow><mml:mrow><mml:mo> ( </mml:mo><mml:mrow><mml:mi> A </mml:mi><mml:mo> , </mml:mo><mml:mi> B </mml:mi></mml:mrow><mml:mo> ) </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> of <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mn> 1 </mml:mn></mml:msub><mml:mo> ⋯ </mml:mo><mml:msub><mml:mi> p </mml:mi><mml:mrow><mml:mi> j </mml:mi><mml:mo> − </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> that generates representation <inline-formula><mml:math><mml:mrow><mml:mrow><mml:mo> ( </mml:mo><mml:mrow><mml:mi> s </mml:mi><mml:mo> , </mml:mo><mml:mi> t </mml:mi></mml:mrow><mml:mo> ) </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> of <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mn> 1 </mml:mn></mml:msub><mml:mo> ⋯ </mml:mo><mml:msub><mml:mi> p </mml:mi><mml:mi> j </mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> must satisfy</p>
      <disp-formula id="FD2">
        <mml:math>
          <mml:mrow>
            <mml:mi>s</mml:mi>
            <mml:mo>=</mml:mo>
            <mml:mi>A</mml:mi>
            <mml:msub>
              <mml:mi>y</mml:mi>
              <mml:mi>j</mml:mi>
            </mml:msub>
            <mml:mo>+</mml:mo>
            <mml:mi>B</mml:mi>
            <mml:msub>
              <mml:mi>x</mml:mi>
              <mml:mi>j</mml:mi>
            </mml:msub>
            <mml:mo>,</mml:mo>
            <mml:mtext>
            </mml:mtext>
            <mml:mi>t</mml:mi>
            <mml:mo>=</mml:mo>
            <mml:mrow>
              <mml:mo>|</mml:mo>
              <mml:mrow>
                <mml:mi>A</mml:mi>
                <mml:msub>
                  <mml:mi>x</mml:mi>
                  <mml:mi>j</mml:mi>
                </mml:msub>
                <mml:mo>−</mml:mo>
                <mml:mi>B</mml:mi>
                <mml:msub>
                  <mml:mi>y</mml:mi>
                  <mml:mi>j</mml:mi>
                </mml:msub>
              </mml:mrow>
              <mml:mo>|</mml:mo>
            </mml:mrow>
          </mml:mrow>
        </mml:math>
      </disp-formula>
      <p>or</p>
      <disp-formula id="FD3">
        <mml:math>
          <mml:mrow>
            <mml:mi>s</mml:mi>
            <mml:mo>=</mml:mo>
            <mml:mrow>
              <mml:mo>|</mml:mo>
              <mml:mrow>
                <mml:mi>A</mml:mi>
                <mml:msub>
                  <mml:mi>y</mml:mi>
                  <mml:mi>j</mml:mi>
                </mml:msub>
                <mml:mo>−</mml:mo>
                <mml:mi>B</mml:mi>
                <mml:msub>
                  <mml:mi>x</mml:mi>
                  <mml:mi>j</mml:mi>
                </mml:msub>
              </mml:mrow>
              <mml:mo>|</mml:mo>
            </mml:mrow>
            <mml:mo>,</mml:mo>
            <mml:mtext>
            </mml:mtext>
            <mml:mi>t</mml:mi>
            <mml:mo>=</mml:mo>
            <mml:mi>A</mml:mi>
            <mml:msub>
              <mml:mi>x</mml:mi>
              <mml:mi>j</mml:mi>
            </mml:msub>
            <mml:mo>+</mml:mo>
            <mml:mi>B</mml:mi>
            <mml:msub>
              <mml:mi>y</mml:mi>
              <mml:mi>j</mml:mi>
            </mml:msub>
            <mml:mo>.</mml:mo>
          </mml:mrow>
        </mml:math>
      </disp-formula>
      <p>By solving four linear systems arising from the sign choices in the absolute values, we obtain the following two possible solutions of <inline-formula><mml:math><mml:mrow><mml:mrow><mml:mo> ( </mml:mo><mml:mrow><mml:mi> A </mml:mi><mml:mo> , </mml:mo><mml:mi> B </mml:mi></mml:mrow><mml:mo> ) </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> (the remaining two candidates have non-positive components and are discarded):</p>
      <disp-formula id="FD4">
        <mml:math>
          <mml:mrow>
            <mml:mrow>
              <mml:mo>(</mml:mo>
              <mml:mrow>
                <mml:mi>A</mml:mi>
                <mml:mo>,</mml:mo>
                <mml:mi>B</mml:mi>
              </mml:mrow>
              <mml:mo>)</mml:mo>
            </mml:mrow>
            <mml:mo>=</mml:mo>
            <mml:mrow>
              <mml:mo>(</mml:mo>
              <mml:mrow>
                <mml:mfrac>
                  <mml:mrow>
                    <mml:msub>
                      <mml:mi>y</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:msub>
                    <mml:mi>s</mml:mi>
                    <mml:mo>+</mml:mo>
                    <mml:msub>
                      <mml:mi>x</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:msub>
                    <mml:mi>t</mml:mi>
                  </mml:mrow>
                  <mml:mrow>
                    <mml:msub>
                      <mml:mi>p</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:msub>
                  </mml:mrow>
                </mml:mfrac>
                <mml:mo>,</mml:mo>
                <mml:mtext>
                   
                </mml:mtext>
                <mml:mfrac>
                  <mml:mrow>
                    <mml:mrow>
                      <mml:mo>|</mml:mo>
                      <mml:mrow>
                        <mml:msub>
                          <mml:mi>x</mml:mi>
                          <mml:mi>j</mml:mi>
                        </mml:msub>
                        <mml:mi>s</mml:mi>
                        <mml:mo>−</mml:mo>
                        <mml:msub>
                          <mml:mi>y</mml:mi>
                          <mml:mi>j</mml:mi>
                        </mml:msub>
                        <mml:mi>t</mml:mi>
                      </mml:mrow>
                      <mml:mo>|</mml:mo>
                    </mml:mrow>
                  </mml:mrow>
                  <mml:mrow>
                    <mml:msub>
                      <mml:mi>p</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:msub>
                  </mml:mrow>
                </mml:mfrac>
              </mml:mrow>
              <mml:mo>)</mml:mo>
            </mml:mrow>
            <mml:mo>,</mml:mo>
            <mml:mtext>
               
            </mml:mtext>
            <mml:mrow>
              <mml:mo>(</mml:mo>
              <mml:mrow>
                <mml:mfrac>
                  <mml:mrow>
                    <mml:mrow>
                      <mml:mo>|</mml:mo>
                      <mml:mrow>
                        <mml:msub>
                          <mml:mi>y</mml:mi>
                          <mml:mi>j</mml:mi>
                        </mml:msub>
                        <mml:mi>s</mml:mi>
                        <mml:mo>−</mml:mo>
                        <mml:msub>
                          <mml:mi>x</mml:mi>
                          <mml:mi>j</mml:mi>
                        </mml:msub>
                        <mml:mi>t</mml:mi>
                      </mml:mrow>
                      <mml:mo>|</mml:mo>
                    </mml:mrow>
                  </mml:mrow>
                  <mml:mrow>
                    <mml:msub>
                      <mml:mi>p</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:msub>
                  </mml:mrow>
                </mml:mfrac>
                <mml:mo>,</mml:mo>
                <mml:mtext>
                   
                </mml:mtext>
                <mml:mfrac>
                  <mml:mrow>
                    <mml:msub>
                      <mml:mi>x</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:msub>
                    <mml:mi>s</mml:mi>
                    <mml:mo>+</mml:mo>
                    <mml:msub>
                      <mml:mi>y</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:msub>
                    <mml:mi>t</mml:mi>
                  </mml:mrow>
                  <mml:mrow>
                    <mml:msub>
                      <mml:mi>p</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:msub>
                  </mml:mrow>
                </mml:mfrac>
              </mml:mrow>
              <mml:mo>)</mml:mo>
            </mml:mrow>
            <mml:mo>.</mml:mo>
          </mml:mrow>
        </mml:math>
      </disp-formula>
      <p>If both of the solutions for A and B are feasible, then <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mi> j </mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> divides both <inline-formula><mml:math><mml:mi> s </mml:mi></mml:math></inline-formula> and <inline-formula><mml:math><mml:mi> t </mml:mi></mml:math></inline-formula> . Hence <inline-formula><mml:math><mml:mrow><mml:msubsup><mml:mi> p </mml:mi><mml:mi> j </mml:mi><mml:mn> 2 </mml:mn></mml:msubsup></mml:mrow></mml:math></inline-formula> divides <inline-formula><mml:math><mml:mrow><mml:msup><mml:mi> s </mml:mi><mml:mn> 2 </mml:mn></mml:msup><mml:mo> + </mml:mo><mml:msup><mml:mi> t </mml:mi><mml:mn> 2 </mml:mn></mml:msup><mml:mo> = </mml:mo><mml:msub><mml:mi> p </mml:mi><mml:mn> 1 </mml:mn></mml:msub><mml:mo> ⋯ </mml:mo><mml:msub><mml:mi> p </mml:mi><mml:mrow><mml:mi> j </mml:mi><mml:mo> − </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:msub><mml:msub><mml:mi> p </mml:mi><mml:mi> j </mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> , which forces <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mi> j </mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> to divide <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mn> 1 </mml:mn></mml:msub><mml:mo> ⋯ </mml:mo><mml:msub><mml:mi> p </mml:mi><mml:mrow><mml:mi> j </mml:mi><mml:mo> − </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> , contradicting that the prime factors <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> p </mml:mi><mml:mn> 1 </mml:mn></mml:msub><mml:mo> , </mml:mo><mml:msub><mml:mi> p </mml:mi><mml:mn> 2 </mml:mn></mml:msub><mml:mo> , </mml:mo><mml:mo> ⋯ </mml:mo><mml:mo> , </mml:mo><mml:msub><mml:mi> p </mml:mi><mml:mi> j </mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> are distinct. Therefore, <inline-formula><mml:math><mml:mrow><mml:mrow><mml:mo> ( </mml:mo><mml:mrow><mml:mi> s </mml:mi><mml:mo> , </mml:mo><mml:mi> t </mml:mi></mml:mrow><mml:mo> ) </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> is generated in exactly one way. Hence each induction step doubles the number of distinct representation classes. This proves the lemma. ■</p>
      <p>The lemma justifies the distinctness, up to order and signs, of the representations generated by the iterative construction in [<xref ref-type="bibr" rid="B2">2</xref>]. Therefore, at least <inline-formula><mml:math><mml:mrow><mml:msup><mml:mn> 2 </mml:mn><mml:mrow><mml:mi> k </mml:mi><mml:mo> − </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> representations are found by this construction. From this, unique representation as a sum of two squares leads to primality.</p>
      <p>Another direct way is to prove the main theorem of [<xref ref-type="bibr" rid="B2">2</xref>] without the construction. In fact, we can get the number of representations from Jacobi’s two square theorem [<xref ref-type="bibr" rid="B6">6</xref>][<xref ref-type="bibr" rid="B7">7</xref>]. Jacobi’s theorem states that the number of integer solutions <inline-formula><mml:math><mml:mrow><mml:mrow><mml:mo> ( </mml:mo><mml:mrow><mml:mi> x </mml:mi><mml:mo> , </mml:mo><mml:mi> y </mml:mi></mml:mrow><mml:mo> ) </mml:mo></mml:mrow><mml:mo> ∈ </mml:mo><mml:msup><mml:mi> ℤ </mml:mi><mml:mn> 2 </mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> of <inline-formula><mml:math><mml:mrow><mml:mi> a </mml:mi><mml:mo> = </mml:mo><mml:msup><mml:mi> x </mml:mi><mml:mn> 2 </mml:mn></mml:msup><mml:mo> + </mml:mo><mml:msup><mml:mi> y </mml:mi><mml:mn> 2 </mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> is <inline-formula><mml:math><mml:mrow><mml:mn> 4 </mml:mn><mml:mrow><mml:mo> ( </mml:mo><mml:mrow><mml:msub><mml:mi> d </mml:mi><mml:mn> 1 </mml:mn></mml:msub><mml:mrow><mml:mo> ( </mml:mo><mml:mi> a </mml:mi><mml:mo> ) </mml:mo></mml:mrow><mml:mo> − </mml:mo><mml:msub><mml:mi> d </mml:mi><mml:mn> 3 </mml:mn></mml:msub><mml:mrow><mml:mo> ( </mml:mo><mml:mi> a </mml:mi><mml:mo> ) </mml:mo></mml:mrow></mml:mrow><mml:mo> ) </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> , where <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> d </mml:mi><mml:mn> 1 </mml:mn></mml:msub><mml:mrow><mml:mo> ( </mml:mo><mml:mi> a </mml:mi><mml:mo> ) </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> d </mml:mi><mml:mn> 3 </mml:mn></mml:msub><mml:mrow><mml:mo> ( </mml:mo><mml:mi> a </mml:mi><mml:mo> ) </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> denote the numbers of positive divisors of <inline-formula><mml:math><mml:mi> a </mml:mi></mml:math></inline-formula> congruent to 1 and 3 (mod 4) respectively. As demonstrated in Step 1 of [<xref ref-type="bibr" rid="B2">2</xref>], the integer <inline-formula><mml:math><mml:mrow><mml:mi> a </mml:mi><mml:mo> = </mml:mo><mml:msub><mml:mi> p </mml:mi><mml:mn> 1 </mml:mn></mml:msub><mml:msub><mml:mi> p </mml:mi><mml:mn> 2 </mml:mn></mml:msub><mml:mo> ⋯ </mml:mo><mml:msub><mml:mi> p </mml:mi><mml:mi> k </mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> in the main theorem has only distinct prime factors congruent to 1 modulo 4. Therefore, the number of such solutions is</p>
      <disp-formula id="FD5">
        <mml:math>
          <mml:mrow>
            <mml:mn>4</mml:mn>
            <mml:mrow>
              <mml:mo>(</mml:mo>
              <mml:mrow>
                <mml:msub>
                  <mml:mi>d</mml:mi>
                  <mml:mn>1</mml:mn>
                </mml:msub>
                <mml:mrow>
                  <mml:mo>(</mml:mo>
                  <mml:mi>a</mml:mi>
                  <mml:mo>)</mml:mo>
                </mml:mrow>
                <mml:mo>−</mml:mo>
                <mml:msub>
                  <mml:mi>d</mml:mi>
                  <mml:mn>3</mml:mn>
                </mml:msub>
                <mml:mrow>
                  <mml:mo>(</mml:mo>
                  <mml:mi>a</mml:mi>
                  <mml:mo>)</mml:mo>
                </mml:mrow>
              </mml:mrow>
              <mml:mo>)</mml:mo>
            </mml:mrow>
            <mml:mo>=</mml:mo>
            <mml:mn>4</mml:mn>
            <mml:mo>×</mml:mo>
            <mml:mrow>
              <mml:mo>(</mml:mo>
              <mml:mrow>
                <mml:msup>
                  <mml:mn>2</mml:mn>
                  <mml:mi>k</mml:mi>
                </mml:msup>
                <mml:mo>−</mml:mo>
                <mml:mn>0</mml:mn>
              </mml:mrow>
              <mml:mo>)</mml:mo>
            </mml:mrow>
            <mml:mo>=</mml:mo>
            <mml:msup>
              <mml:mn>2</mml:mn>
              <mml:mrow>
                <mml:mi>k</mml:mi>
                <mml:mo>+</mml:mo>
                <mml:mn>2</mml:mn>
              </mml:mrow>
            </mml:msup>
            <mml:mo>.</mml:mo>
          </mml:mrow>
        </mml:math>
      </disp-formula>
      <p>On the other hand, if the representation of <inline-formula><mml:math><mml:mi> a </mml:mi></mml:math></inline-formula> as a sum of two squares is unique, then it has exactly eight integer solutions <inline-formula><mml:math><mml:mrow><mml:mrow><mml:mo> ( </mml:mo><mml:mrow><mml:mi> x </mml:mi><mml:mo> , </mml:mo><mml:mi> y </mml:mi></mml:mrow><mml:mo> ) </mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> , since neither coordinate can be zero when <inline-formula><mml:math><mml:mi> a </mml:mi></mml:math></inline-formula> is square-free, and their absolute values cannot be equal when <inline-formula><mml:math><mml:mi> a </mml:mi></mml:math></inline-formula> is odd. Thus, <inline-formula><mml:math><mml:mrow><mml:msup><mml:mn> 2 </mml:mn><mml:mrow><mml:mi> k </mml:mi><mml:mo> + </mml:mo><mml:mn> 2 </mml:mn></mml:mrow></mml:msup><mml:mo> = </mml:mo><mml:mn> 8 </mml:mn></mml:mrow></mml:math></inline-formula> leads to <inline-formula><mml:math><mml:mrow><mml:mi> k </mml:mi><mml:mo> = </mml:mo><mml:mn> 1 </mml:mn></mml:mrow></mml:math></inline-formula> . This proves the theorem.</p>
    </sec>
    <sec id="sec3">
      <title>3. Conclusion</title>
      <p>We justify that the representations constructed in the proof of [<xref ref-type="bibr" rid="B2">2</xref>] are pairwise distinct, and we also provide an alternative proof based on Jacobi’s two square theorem. The main contribution of [<xref ref-type="bibr" rid="B2">2</xref>], together with the supplementary proofs presented in this paper, is to extend the scope of Fermat’s two square theorem by developing the representability of integers as sums of two squares from a property of primes into a criterion for primality testing.</p>
    </sec>
    <sec id="sec4">
      <title>Acknowledgements</title>
      <p>The author thanks Way Kuo for insightful discussions. This research is supported by City University of Hong Kong project No. 9610556.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <title>References</title>
      <ref id="B1">
        <label>1.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Zagier, D. (1990) A One-Sentence Proof That Every Prime (mod 4) Is a Sum of Two Squares. <italic>The</italic><italic>American</italic><italic>Mathematical</italic><italic>Monthly</italic>, 97, 144. https://doi.org/10.2307/2323918 <pub-id pub-id-type="doi">10.2307/2323918</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.2307/2323918">https://doi.org/10.2307/2323918</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Zagier, D.</string-name>
            </person-group>
            <year>1990</year>
            <article-title>A One-Sentence Proof That Every Prime (mod 4) Is a Sum of Two Squares</article-title>
            <source>The American Mathematical Monthly</source>
            <volume>97</volume>
            <pub-id pub-id-type="doi">10.2307/2323918</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B2">
        <label>2.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Li, H.-L., Fang, S.-C. and Kuo, W. (2026) A Sufficient Condition for the Primality of the Sum of Two Squares. <italic>Advances</italic><italic>in</italic><italic>Pure</italic><italic>Mathematics</italic>, 16, 412-415. https://doi.org/10.4236/apm.2026.166022 <pub-id pub-id-type="doi">10.4236/apm.2026.166022</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.4236/apm.2026.166022">https://doi.org/10.4236/apm.2026.166022</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Li, H.</string-name>
              <string-name>Fang, S.</string-name>
              <string-name>Kuo, W.</string-name>
            </person-group>
            <year>2026</year>
            <article-title>A Sufficient Condition for the Primality of the Sum of Two Squares</article-title>
            <source>Advances in Pure Mathematics</source>
            <volume>16</volume>
            <pub-id pub-id-type="doi">10.4236/apm.2026.166022</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B3">
        <label>3.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Agrawal, M., Kayal, N. and Saxena, N. (2004) Primes Is in P. <italic>Annals</italic><italic>of</italic><italic>Mathematics</italic>, 160, 781-793. https://doi.org/10.4007/annals.2004.160.781 <pub-id pub-id-type="doi">10.4007/annals.2004.160.781</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.4007/annals.2004.160.781">https://doi.org/10.4007/annals.2004.160.781</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Agrawal, M.</string-name>
              <string-name>Kayal, N.</string-name>
              <string-name>Saxena, N.</string-name>
            </person-group>
            <year>2004</year>
            <article-title>Primes Is in P</article-title>
            <source>Annals of Mathematics</source>
            <volume>160</volume>
            <pub-id pub-id-type="doi">10.4007/annals.2004.160.781</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B4">
        <label>4.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Miller, G.L. (1975) Riemann’s Hypothesis and Tests for Primality. <italic>Proceedings of</italic>7 <italic>th Annual ACM Symposium on Theory of Computing</italic>— <italic>STOC</italic> ‘75, Albuquerque, 5-7 May 1975, 234-239. https://doi.org/10.1145/800116.803773 <pub-id pub-id-type="doi">10.1145/800116.803773</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1145/800116.803773">https://doi.org/10.1145/800116.803773</ext-link></mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Miller, G.L.</string-name>
            </person-group>
            <year>1975</year>
            <article-title>Riemann’s Hypothesis and Tests for Primality</article-title>
            <source>Proceedings of 7th Annual ACM Symposium on Theory of Computing—STOC ‘75</source>
            <volume>5</volume>
            <pub-id pub-id-type="doi">10.1145/800116.803773</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B5">
        <label>5.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Rabin, M.O. (1980) Probabilistic Algorithm for Testing Primality. <italic>Journal</italic><italic>of</italic><italic>Number</italic><italic>Theory</italic>, 12, 128-138. https://doi.org/10.1016/0022-314x(80)90084-0 <pub-id pub-id-type="doi">10.1016/0022-314x(80)90084-0</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/0022-314x(80)90084-0">https://doi.org/10.1016/0022-314x(80)90084-0</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Rabin, M.O.</string-name>
            </person-group>
            <year>1980</year>
            <article-title>Probabilistic Algorithm for Testing Primality</article-title>
            <source>Journal of Number Theory</source>
            <volume>12</volume>
            <pub-id pub-id-type="doi">10.1016/0022-314x(80)90084-0</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B6">
        <label>6.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Hirschhorn, M.D. (1985) A Simple Proof of Jacobi’s Two-Square Theorem. <italic>The</italic><italic>American</italic><italic>Mathematical</italic><italic>Monthly</italic>, 92, 579-580. https://doi.org/10.1080/00029890.1985.11971686 <pub-id pub-id-type="doi">10.1080/00029890.1985.11971686</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1080/00029890.1985.11971686">https://doi.org/10.1080/00029890.1985.11971686</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Hirschhorn, M.D.</string-name>
            </person-group>
            <year>1985</year>
            <article-title>A Simple Proof of Jacobi’s Two-Square Theorem</article-title>
            <source>The American Mathematical Monthly</source>
            <volume>92</volume>
            <pub-id pub-id-type="doi">10.1080/00029890.1985.11971686</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B7">
        <label>7.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Jacobi, C. (1829) Fundamenta Nova Theoriae Functionum Ellipticarum. Bornträger.</mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Jacobi, C.</string-name>
            </person-group>
          </element-citation>
        </citation-alternatives>
      </ref>
    </ref-list>
  </back>
</article>