Alphabeta Math
Session-authored (Fable 5 assisted)
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.

10 results · all verified · 10 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs; all 10 also cleared it.

Lagrange Four Square Theorem — Examples

1 · Prerequisites

2 · Summary

3 · Logical flowchart

4 · Definitions, theorems and proofs

None yet.

5 · Examples, counterexamples and false statements

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

715=105 through all four bilinear coordinates

Example

Take the representations 7=22+12+12+12 and 15=32+22+12+12, so x=(2,1,1,1) and y=(3,2,1,1). The four bilinear forms of Euler's four-square product identity evaluate to

z1=10,z2=1,z3=2,z4=0,

and 102+12+(2)2+02=100+1+4+0=105=715. Every coordinate is computed below, the vanishing one included: z4=0 is a value the formula returns and not a coordinate that has been left out.

Facts & Assumptions

Given: The quadruples x=(2,1,1,1) and y=(3,2,1,1).

[F1]

A representation of a nonnegative integer n as a sum of four squares is an ordered quadruple (a,b,c,d)Z4 with n=a2+b2+c2+d2 (Representations as sums of four squares).

[L1]

For all integers x1,,x4,y1,,y4, setting z1=x1y1+x2y2+x3y3+x4y4, z2=x1y2x2y1x3y4+x4y3, z3=x1y3+x2y4x3y1x4y2 and z4=x1y4x2y3+x3y2x4y1 gives (x12+x22+x32+x42)(y12+y22+y32+y42)=z12+z22+z32+z42 (Euler's four-square product identity).

Verification

technique · direct
1.1

The two data are representations: 22+12+12+12=4+1+1+1=7 and 32+22+12+12=9+4+1+1=15.

givenF1algebra
2.1

Substituting x=(2,1,1,1) and y=(3,2,1,1) into the formulas of [L1] gives z1=23+12+11+11=6+2+1+1=10, z2=221311+11=431+1=1, z3=21+111312=2+132=2 and z4=2111+1213=21+23=0.

step 1.1L1algebra
3.1

Their squares sum to 100+1+4+0=105, and 715=105, so (10,1,2,0) is a representation of 105 in the sense of [F1] and the identity is confirmed on this pair.

step 2.1F1algebra

Remarks

A negative coordinate is not a defect. The third coordinate is 2, and only its square enters the sum, so (10,1,2,0) represents the same integer as (10,1,2,0) and the two representations are equivalent up to signs. They are distinct ordered quadruples. The formulas are not arranged to produce nonnegative outputs, and no step of the identity or of the descent needs them to be.

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

The two intersecting square sets modulo 11 give 12+32+1=11

Example

Let p=11 and work with the representatives 0,1,,10. Put

Q={r:0r10 and ry2(mod11) for some yZ},R={r:0r10 and r1y2(mod11) for some yZ}.

Then Q={0,1,3,4,5,9} and R={1,5,6,7,9,10}, each with 6=(11+1)/2 elements, and QR={1,5,9}. Taking the common value 1, which is 12 and is also congruent to 132, gives

12+32+1=110(mod11).

This is the mechanism behind Every nonzero residue modulo an odd prime is a sum of two squares at a=1, written out at p=11: two subsets of the 11 residues, each of size 6, cannot be disjoint. That proposition supplies such a common value for every odd prime, and For every prime p the congruence x2+y2+10(modp) is solvable cites it rather than repeating the count.

Facts & Assumptions

Given: The prime p=11 and the sets Q and R displayed above.

[F1]

For a,b,nZ, ab(modn) means n(ab) (Congruence modulo an integer: ab(modn) when n(ab), including the moduli 0 and 1).

[L1]

For every prime p there are integers x,y with x2+y2+10(modp) (For every prime p the congruence x2+y2+10(modp) is solvable).

[L2]

Let p be an odd prime and let aZ with pa. Then there are integers x,y such that x2+y2a(modp) (Every nonzero residue modulo an odd prime is a sum of two squares).

Verification

technique · direct
1.1

Since y and y have the same square and yy+11 modulo 11, every square residue is y2 for some y with 0y5; computing, 02=0, 12=1, 22=4, 32=9, 42=165 and 52=253, so Q={0,1,3,4,5,9}.

givenF1algebra
2.1

For the same six values of y, 10=110, 11=29, 14=56, 19=101, 116=175 and 125=267 modulo 11, so R={1,5,6,7,9,10}.

step 1.1F1algebra
3.1

Comparing the two displayed lists, QR={1,5,9}; taking r=1 with 112 from step 1.1 and 1132 from step 2.1 gives 12+321(mod11), hence 12+32+1=1+9+1=110(mod11), an instance of [L1] at p=11.

step 1.1step 2.1L1F1algebra
4.1

The nonempty intersection exhibited in step 3.1 is exactly what [L2] asserts at a=1 for an arbitrary odd prime, since R is the set of residues of ay2 at a=1; the argument at p=11 therefore instantiates the cited proposition rather than adding to it.

step 3.1L2

Remarks

Why 11 is a good modulus for this. Here 113(mod4) and 110 is not in Q, so 1 is not itself a square modulo 11 and no pair with y=0 works. The example is therefore not a disguised one-square case: two squares are genuinely needed, which is what the cited proposition provides.

Other solutions exist. The intersection has the further common values 5 and 9: the value 5 is 42 and also 142 modulo 11, giving 42+42+1=33=311, and the value 9 is 32 and also 112, giving 32+12+1=11. So the solution pair is not unique; the cited proposition asserts that at least one common value exists and says nothing about how many do.

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Least absolute remainders modulo 7 and modulo 8

Example

Write rm(a) for the least absolute remainder of a modulo m (The least absolute remainder modulo a positive integer). For a=0,1,2,3,4,5,6,7:

r7(a):0, 1, 2, 3, 3, 2, 1, 0,

r8(a):0, 1, 2, 3, 4, 3, 2, 1.

Modulo the odd modulus 7 every entry satisfies 4r2<49 strictly, the largest value of 4r2 being 36. Modulo the even modulus 8 the entry r8(4)=4 attains 2r=m and hence 4r2=64=82; here 4 and 4 are congruent modulo 8, and the normalisation m<2rm is what selects 4 rather than 4.

Facts & Assumptions

Given: The moduli 7 and 8 and the integers 0,1,2,3,4,5,6,7.

[F1]

For a,b,nZ, ab(modn) means n(ab) (Congruence modulo an integer: ab(modn) when n(ab), including the moduli 0 and 1).

[L1]

For an integer m1 and aZ there is exactly one integer r with ar(modm) and m<2rm, and consequently 4r2m2 (The least absolute remainder modulo a positive integer).

Verification

technique · direct
1.1

For m=7 the condition of [L1] is 7<2r7, that is r{3,2,1,0,1,2,3}; each listed value is congruent to its argument, since 4(3)=7, 5(2)=7, 6(1)=7 and 70=7 are multiples of 7 while 0,1,2,3 are their own remainders, so the first table is correct and 4r236<49 throughout.

givenL1F1algebra
1.2

For m=8 the condition of [L1] is 8<2r8, that is r{3,2,1,0,1,2,3,4}; the listed values are congruent to their arguments because 5(3)=8, 6(2)=8 and 7(1)=8 are multiples of 8 while 0,1,2,3,4 are their own remainders, so the second table is correct.

givenL1F1algebra
2.1

At a=4 and m=8 the value r=4 gives 2r=8=m, so the bound 4r2m2 of [L1] is attained with equality; the alternative 4 is congruent to 4 modulo 8 and satisfies 2r=8, which the strict left-hand inequality of [L1] excludes, so the normalisation is what makes the remainder unique here.

step 1.1step 1.2L1

Remarks

Only an even modulus produces the tie. The equality 2r=m requires m to be twice an integer, so for odd m the bound 4r2m2 is automatically strict, as the first table shows. This is exactly the boundary that The centred residue quadruple of pm=a2+b2+c2+d2 has norm mn with 1n<m has to exclude by a separate argument: the norm estimate there gives only nm, and equality in all four centred coordinates at once is exactly the case n=m that a separate argument must rule out.

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Descending from 1311 to 13 in two steps

Example

Start from the prime p=13 and the multiplier m=11, with

143=1311=112+32+32+22.

Centring the coordinates modulo 11 gives (0,3,3,2), whose norm is 22=112, so the multiplier drops to n=2. Euler's identity applied to (11,3,3,2) and (0,3,3,2) gives (22,33,33,22), each coordinate divisible by 11; dividing by 11 gives

26=132=22+32+32+22.

Repeating with m=2: the centred quadruple is (0,1,1,0), of norm 2=21, so n=1; the identity applied to (2,3,3,2) and (0,1,1,0) gives (6,4,0,0), and dividing by 2 gives

13=32+22+02+02.

The two steps use an odd modulus and then an even one, so both parities occur.

Facts & Assumptions

Given: The prime 13, the multiplier 11, and the representation 143=112+32+32+22.

[F1]

A representation of a nonnegative integer n as a sum of four squares is an ordered quadruple (a,b,c,d)Z4 with n=a2+b2+c2+d2 (Representations as sums of four squares).

[L1]

If p is prime, 1<m<p and pm is a sum of four integer squares, then there is an integer n with 1n<m for which pn is a sum of four integer squares (Descent step: a smaller multiple of p is a sum of four squares).

[L2]

If p is prime, 1<m<p and pm=a2+b2+c2+d2, then the least absolute remainders a,b,c,d of a,b,c,d modulo m satisfy a2+b2+c2+d2=mn for an integer n with 1n<m (The centred residue quadruple of pm=a2+b2+c2+d2 has norm mn with 1n<m).

[L3]

For an integer m1 and aZ there is exactly one integer r with ar(modm) and m<2rm, and consequently 4r2m2 (The least absolute remainder modulo a positive integer).

[L4]

For all integers x1,,x4,y1,,y4, setting z1=x1y1+x2y2+x3y3+x4y4, z2=x1y2x2y1x3y4+x4y3, z3=x1y3+x2y4x3y1x4y2 and z4=x1y4x2y3+x3y2x4y1 gives (x12+x22+x32+x42)(y12+y22+y32+y42)=z12+z22+z32+z42 (Euler's four-square product identity).

Verification

technique · direct
1.1

The starting datum is a representation: 112+32+32+22=121+9+9+4=143 and 1311=143, with 1<11<13 as [L1] and [L2] require.

givenF1algebra
2.1

By [L3] with modulus 11, the least absolute remainders of 11,3,3,2 are 0,3,3,2, since 110=11 is a multiple of 11 and 11<2r11 holds for r=0,3,2; their norm is 0+9+9+4=22=112, so the integer n of [L2] is 2, and indeed 12<11.

step 1.1L2L3algebra
3.1

Applying [L4] to x=(11,3,3,2) and y=(0,3,3,2) gives z1=110+33+33+22=22, z2=1133032+23=33, z3=113+323023=33 and z4=11233+3320=22, whose squares sum to 484+1089+1089+484=3146=14322; each coordinate is divisible by 11, and dividing gives (2,3,3,2) with 4+9+9+4=26=132, which is the conclusion of [L1] at n=2.

step 2.1L1L4algebra
4.1

Repeating with p=13 and m=2, for which 1<2<13: by [L3] with modulus 2 the least absolute remainders of 2,3,3,2 are 0,1,1,0, since 2r=2 is admitted for r=1; their norm is 0+1+1+0=2=21, so [L2] gives n=1 with 11<2.

step 3.1L2L3algebra
5.1

Applying [L4] to x=(2,3,3,2) and y=(0,1,1,0) gives z1=20+31+31+20=6, z2=213030+21=4, z3=21+303021=0 and z4=2031+3120=0, whose squares sum to 36+16=52=262; each coordinate is divisible by 2, and dividing gives (3,2,0,0) with 9+4=13, a representation of 13 itself.

step 4.1L1L4algebra
6.1

So two applications of the descent carry 1311 to 132 and then to 131, the moduli used being 11 and 2.

step 3.1step 5.1F1

Remarks

The even step is where the tie could have bitten. At m=2 the centred coordinates 1 attain 2r=m, so the estimate 4r2m2 is an equality in two of the four coordinates. That is admissible: what The centred residue quadruple of pm=a2+b2+c2+d2 has norm mn with 1n<m excludes is equality in all four at once, and here two coordinates centre to 0.

The starting representation is not the minimal one. The descent does not require the multiplier to come from Some multiple pm with 1m<p is a sum of four squares; any m with 1<m<p for which pm is a sum of four squares will do, and m=11 was taken to make two steps rather than one.

ExampleConstruction: Literature-sourcedVerification: AI-generatedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Four essentially different four-square representations of 65

Example

The integer 65 has the four-square representations

65=12+82+02+02=42+72+02+02=22+52+62+02=22+32+42+62.

Their multisets of absolute values are {8,1,0,0}, {7,4,0,0}, {6,5,2,0} and {6,4,3,2}, which are pairwise distinct, so no two of the four are obtained from one another by permuting coordinates or changing signs: they are essentially different in the sense of Representations as sums of four squares.

Facts & Assumptions

Given: The integer 65 and the four displayed quadruples.

[F1]

A representation of a nonnegative integer n as a sum of four squares is an ordered quadruple (a,b,c,d)Z4 with n=a2+b2+c2+d2; two representations are equivalent up to signs and order exactly when their multisets of absolute values coincide, and essentially different otherwise (Representations as sums of four squares).

[L1]

Every nonnegative integer is a sum of four integer squares (Lagrange's four-square theorem: every nonnegative integer is a sum of four integer squares).

Verification

technique · direct
1.1

Each display is an identity: 1+64+0+0=65, 16+49+0+0=65, 4+25+36+0=65 and 4+9+16+36=65, so all four quadruples are representations of 65 in the sense of [F1], whose existence [L1] guarantees in advance.

givenF1L1algebra
2.1

The multisets {8,1,0,0}, {7,4,0,0}, {6,5,2,0} and {6,4,3,2} are pairwise distinct, since the first two differ in their largest entry, the third contains 5 and the others do not, and the fourth is the only one with no entry 0; by the criterion in [F1] the four representations are pairwise essentially different.

step 1.1F1algebra

Remarks

Existence and multiplicity are different questions. Lagrange's four-square theorem: every nonnegative integer is a sum of four integer squares asserts that a representation exists. How many essentially different representations a given integer has is not settled by it, and nothing above computes that number for 65: the four displayed are exhibited, not claimed to be all.

False statementConstruction: AI-adaptedVerification: AI-generatedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

FALSE: a prime has one four-square representation up to order and signs

Statement

False claim: for every prime p (Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p), any two representations of p as a sum of four integer squares (Representations as sums of four squares) are equivalent up to signs and order; that is, a prime has exactly one four-square representation up to permuting the coordinates and changing their signs.

Facts & Assumptions

Given: The integer 31 and the quadruples (5,2,1,1) and (3,3,3,2).

[A1]

The false claim: for every prime p, any two representations of p as a sum of four integer squares are equivalent up to signs and order.

[F1]

A representation of a nonnegative integer n as a sum of four squares is an ordered quadruple (a,b,c,d)Z4 with n=a2+b2+c2+d2; two representations are equivalent up to signs and order exactly when their multisets of absolute values coincide (Representations as sums of four squares).

[F2]

An integer p is prime when p>1 and dp with d>0 force d=1 or d=p (Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p).

Refutation

technique · direct
1.1

The integer 31 is prime: 31>1, and if 31=de with integers 1<de then d2de=31, so d5; but 31=215+1=310+1=47+3=56+1, so none of 2,3,4,5 divides 31, and by [F2] its only positive divisors are 1 and 31.

givenF2algebra
1.2

Both displays are representations of 31: 52+22+12+12=25+4+1+1=31 and 32+32+32+22=9+9+9+4=31.

givenF1algebra
2.1

The multisets of absolute values are {5,2,1,1} and {3,3,3,2}, which differ — the first contains 5 and the second does not — so by the criterion in [F1] the two representations of step 1.2 are not equivalent up to signs and order; with step 1.1 this contradicts [A1] at p=31, and the claim is false.

step 1.1step 1.2A1F1algebra

Remarks

Where the claim comes from. For two squares the corresponding statement is true: A prime congruent to 1 modulo 4 has one two-square representation up to signs and order says that a prime congruent to 1 modulo 4 has one representation as a sum of two squares up to signs and order. The claim refuted above is that statement with two coordinates replaced by four.

What survives of the analogy. Nothing of the two-square proof transfers. It turns on such a prime having a primitive two-square representation whose factorisation is controlled, and with four coordinates the extra room admits genuinely different multisets of absolute values; 31 is one witness and not a special one.

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

Building a representation of 105 from its prime factors

Example

Factor 105=357 and take the prime representations

3=12+12+12+02,5=22+12+02+02,7=22+12+12+12.

Multiplying the first two with the identity of Euler's four-square product identity, applied to (1,1,1,0) and (2,1,0,0), gives (3,1,2,1) and

15=32+(1)2+(2)2+12.

Multiplying that result by the third, applied to (3,1,2,1) and (2,1,1,1), gives (4,8,5,0) and

105=42+82+52+02.

This is the route the proof of Lagrange's four-square theorem: every nonnegative integer is a sum of four integer squares takes: prime factors first, then closure under products.

Facts & Assumptions

Given: The factorisation 105=357 and the three displayed prime representations.

[F1]

A representation of a nonnegative integer n as a sum of four squares is an ordered quadruple (a,b,c,d)Z4 with n=a2+b2+c2+d2 (Representations as sums of four squares).

[L1]

Let m and n be nonnegative integers; if each of m and n is a sum of four integer squares, then mn is a sum of four integer squares (Sums of four squares are closed under products).

[L2]

For all integers x1,,x4,y1,,y4, setting z1=x1y1+x2y2+x3y3+x4y4, z2=x1y2x2y1x3y4+x4y3, z3=x1y3+x2y4x3y1x4y2 and z4=x1y4x2y3+x3y2x4y1 gives (x12+x22+x32+x42)(y12+y22+y32+y42)=z12+z22+z32+z42 (Euler's four-square product identity).

Verification

technique · direct
1.1

The three displays are representations: 1+1+1+0=3, 4+1+0+0=5 and 4+1+1+1=7; also 35=15 and 157=105, so 357=105.

givenF1algebra
2.1

Applying [L2] to x=(1,1,1,0) and y=(2,1,0,0) gives z1=12+11+10+00=3, z2=111210+00=1, z3=10+101201=2 and z4=1010+1102=1, whose squares sum to 9+1+4+1=15=35.

step 1.1L2algebra
3.1

Applying [L2] to x=(3,1,2,1) and y=(2,1,1,1) gives z1=32+(1)1+(2)1+11=4, z2=31(1)2(2)1+11=8, z3=31+(1)1(2)211=5 and z4=31(1)1+(2)112=0, whose squares sum to 16+64+25+0=105=157.

step 2.1L2algebra
4.1

So (4,8,5,0) is a representation of 105 in the sense of [F1]; the two multiplications are the two instances of [L1] that the factorisation calls for, and the identity has supplied an explicit quadruple at each.

step 1.1step 2.1step 3.1L1F1

Remarks

Negative intermediate coordinates are harmless. The quadruple produced at the first multiplication has two negative entries, and they are carried into the second multiplication unchanged. Only squares are read off at the end, and the identity of Euler's four-square product identity holds for negative inputs as it does for positive ones.

The order of multiplication is a choice. Multiplying 5 and 7 first, or 3 and 7 first, produces different quadruples for the same 105; the construction is not canonical, and Sums of four squares are closed under products claims existence rather than a preferred witness.

CounterexampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

7 and 28 are not sums of three integer squares

Statement refuted

False claim: every nonnegative integer is a sum of three integer squares, that is, for every n0 there are integers x,y,z with n=x2+y2+z2.

The integers 7 and 28 refute it. Both are excluded by Positive integers 4am with m7(mod8) are not sums of three integer squares, as 7=407 and 28=417 with 77(mod8); and for 7 the exclusion can also be seen by a finite search, which is carried out below so that the witness does not rest on the obstruction alone.

Facts & Assumptions

Given: The integers 7 and 28.

[A1]

The false claim: for every integer n0 there are integers x,y,z with n=x2+y2+z2.

[F1]

For a,b,nZ, ab(modn) means n(ab) (Congruence modulo an integer: ab(modn) when n(ab), including the moduli 0 and 1).

[L1]

For aN and a positive integer m with m7(mod8), there are no integers x,y,z with 4am=x2+y2+z2 (Positive integers 4am with m7(mod8) are not sums of three integer squares).

[L2]

There are no integers x,y,z with x2+y2+z27(mod8) (No sum of three integer squares is congruent to 7 modulo 8).

[L3]

If x,y,zZ and 4x2+y2+z2, then x, y and z are all even (If 4 divides x2+y2+z2 then x, y and z are all even).

Counterexample

technique · direct
1.1

Since 877, we have 77(mod8) by [F1], so a representation 7=x2+y2+z2 would give x2+y2+z27(mod8), which [L2] excludes; hence 7 is not a sum of three integer squares.

givenL2F1algebra
1.2

The same conclusion by finite search: in 7=x2+y2+z2 each square is at most 7, so each lies in {0,1,4}, and the sums of three members of that set are 0,1,2,3,4,5,6,8,9 and 12, none of which is 7.

givenalgebra
2.1

For 28: since 28=47 we have 428, so a representation 28=x2+y2+z2 would by [L3] have x, y and z all even, say x=2x, y=2y, z=2z; then 47=4(x2+y2+z2) gives 7=x2+y2+z2, contradicting step 1.1.

step 1.1L3F1algebra
3.1

So neither 7 nor 28 is a sum of three integer squares, and [A1] is false; the two are the instances a=0 and a=1 of [L1] at m=7.

step 1.1step 1.2step 2.1A1L1

Remarks

Two independent routes for 7. Step 1.1 argues by residues modulo 8 and step 1.2 by exhausting the finitely many candidates. The second uses no lemma about squares at all, so the non-existence claim does not depend on the congruence argument being right.

Why 28 needs the halving step. The residue of 28 modulo 8 is 4, which is attainable by a sum of three squares, so the congruence argument does not apply to 28 directly. It is the divisibility by 4, and the fact that this forces all three coordinates even, that reduces 28 to 7.

CounterexampleConstruction: Literature-sourcedVerification: AI-adaptedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

3 and 5 are sums of three squares and 15 is not

Statement refuted

False claim: if two nonnegative integers are each a sum of three integer squares, then so is their product.

The pair 3, 5 refutes it: 3=12+12+12 and 5=22+12+02, while 15=35 satisfies 157(mod8) and is therefore excluded by Positive integers 4am with m7(mod8) are not sums of three integer squares.

Facts & Assumptions

Given: The integers 3, 5 and 15.

[A1]

The false claim: if m and n are nonnegative integers, each a sum of three integer squares, then mn is a sum of three integer squares.

[F1]

For a,b,nZ, ab(modn) means n(ab) (Congruence modulo an integer: ab(modn) when n(ab), including the moduli 0 and 1).

[L1]

For aN and a positive integer m with m7(mod8), there are no integers x,y,z with 4am=x2+y2+z2 (Positive integers 4am with m7(mod8) are not sums of three integer squares).

Counterexample

technique · direct
1.1

Both factors are sums of three integer squares: 12+12+12=3 and 22+12+02=5.

givenalgebra
1.2

The product is 35=15, and 157=8, so 157(mod8) by [F1]; taking a=0 and m=15, which is a positive integer congruent to 7 modulo 8, [L1] gives that no integers x,y,z satisfy 4015=15=x2+y2+z2.

givenL1F1algebra
2.1

So 3 and 5 are sums of three integer squares while 15 is not, and [A1] is false.

step 1.1step 1.2A1

Remarks

The failure is not universal. Some products of three-square integers are again sums of three squares: 33=9=32+02+02 is one. The claim refuted above is that this always happens, and a single product for which it fails is what settles it.

What this separates. Sums of two squares are closed under products by the Brahmagupta–Fibonacci identity (Sums of two squares are closed under products), and sums of four squares by Sums of four squares are closed under products. Three squares admit no such product identity, and this pair is why: an identity expressing (x12+x22+x32)(y12+y22+y32) as a sum of three squares of integer bilinear forms would make 15 a sum of three squares.

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (deepseek-v4-pro + gpt-5.6-terra)audited 2026-08-26Open item page →

7 and 28 have four-square representations with no zero coordinate

Example

The integers 7 and 28 have the four-square representations

7=22+12+12+12,28=52+12+12+12,

and in each of them every coordinate is nonzero. That is not an accident of these two displays: no representation of either integer can have a vanishing coordinate, because deleting a zero coordinate would exhibit the integer as a sum of three squares, which Positive integers 4am with m7(mod8) are not sums of three integer squares forbids for 7=407 and for 28=417. The two are the cases a=0 and a=1 of Positive integers 4am with m7(mod8) need four nonzero squares at m=7.

Facts & Assumptions

Given: The integers 7 and 28.

[F1]

A representation of a nonnegative integer n as a sum of four squares is an ordered quadruple (a,b,c,d)Z4 with n=a2+b2+c2+d2 (Representations as sums of four squares).

[F2]

For a,b,nZ, ab(modn) means n(ab) (Congruence modulo an integer: ab(modn) when n(ab), including the moduli 0 and 1).

[L1]

For aN and a positive integer m with m7(mod8), in every representation (x1,x2,x3,x4)Z4 of 4am as a sum of four integer squares all four coordinates are nonzero (Positive integers 4am with m7(mod8) need four nonzero squares).

[L2]

Every nonnegative integer is a sum of four integer squares (Lagrange's four-square theorem: every nonnegative integer is a sum of four integer squares).

[L3]

For aN and a positive integer m with m7(mod8), there are no integers x,y,z with 4am=x2+y2+z2 (Positive integers 4am with m7(mod8) are not sums of three integer squares).

Verification

technique · direct
1.1

Both displays are representations in the sense of [F1], whose existence [L2] guarantees in advance: 4+1+1+1=7 and 25+1+1+1=28; and in each the four coordinates 2,1,1,1 and 5,1,1,1 are all nonzero.

givenF1L2algebra
1.2

The integer 7 is positive and 877, so 77(mod8) by [F2]; moreover 407=7 and 417=28, so both integers have the form required by [L1] and [L3] with m=7 and a=0 or a=1.

givenF2algebra
2.1

If a representation of 7 or of 28 had a vanishing coordinate, deleting it would leave three integers whose squares sum to 7 or to 28 respectively, and by step 1.2 this is what [L3] excludes; so no representation of either integer has a vanishing coordinate.

step 1.1step 1.2L3algebra
3.1

Hence 7 and 28 each have a four-square representation, displayed in step 1.1, and every such representation has all four coordinates nonzero, which is [L1] at a=0 and at a=1.

step 1.1step 1.2step 2.1L1F1

Remarks

Why both a=0 and a=1 are shown. The obstruction is stated for 4am, and its induction has a base case and a step. The witness 7 exercises the base case and 28 the first instance of the step, where the coordinates of a putative three-square representation are halved.

Sources