Answer: The Expression That Only Skips Perfect Cubes
Key Idea / Intuition
The algebraic identity A3+B3+C3โ3ABC=(A+B+C)(A2+B2+C2โABโBCโCA) is the key. The second factor can be rewritten as 21โ[(AโB)2+(BโC)2+(CโA)2], which is always a nonnegative integer. So the expression factors into a product of two nonneg integers and you need to figure out exactly which nonneg integers arise โ it turns out almost all do, except one family is skipped.
Formal Proof / Solution
Step 1: Factor the expression.
Use the classical identity:
A3+B3+C3โ3ABC=(A+B+C)โ
2(AโB)2+(BโC)2+(CโA)2โ.
Let s=A+B+Cโฅ0 and q=2(AโB)2+(BโC)2+(CโA)2โโฅ0. Both s and q are nonneg integers (note that the three squared differences have the same parity when A,B,C are integers, so their sum is always even).
So the expression equals sq where s,qโฅ0 are nonneg integers.
Step 2: Which values sq can be achieved?
We claim the answer is: all nonneg integers except those of the form 9m+3 or 9m+6, i.e., all nonneg integers not congruent to 3 or 6(mod9).
Step 3: Show values โก3 or 6(mod9) are impossible.
Consider everything mod 9. Cubes mod 9 can only be 0,1,8โกโ1. So:
| nmod3 | n3mod9 |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 8 โก โ1 |
The expression A3+B3+C3โ3ABC(mod9): since 3ABCโก0,3,6(mod9), one checks (by exhaustive case analysis on (A,B,C)mod3) that the expression can never be โก3 or โก6(mod9).
For instance if AโกBโกCโก1(mod3), then A3+B3+C3โก3 and 3ABCโก3โ
1โ
1โ
1=3, giving 0. Running all 27 cases (or noting the factored form: sโก0,3,6(mod9) and q is always โก0,1,2(mod3) but qโก0(mod3) when sโก0(mod3), etc.) confirms sq๎ โก3,6(mod9).
Step 4: Every other nonneg integer is achieved.
- n=0: take A=B=C=0.
- n=1: take (A,B,C)=(1,0,0).
- n=2: take (A,B,C)=(1,1,0).
- For nโก0(mod9) (say n=9k): take (A,B,C)=(k+1,kโ1,kโ1) so s=3kโ1...
More cleanly: given target n๎ โก3,6(mod9), we can use:
- (A,B,C)=(n,0,0) gives n3, so all perfect cubes arise.
- (A,B,C)=(k,k,0) gives 2k3, (k+1,k,0) gives (2k+1)(k2+1โk(k+1))=...
In fact, the simplest constructive argument: any nโฅ0 with n๎ โก3,6(mod9) can be written as sq with the pair achievable. Key examples:
- n=1: (1,0,0) gives 1โ
1=1. โ
- n=2: (1,1,0) gives s=2,q=1, expression =2. โ
- n=4: (2,1,0):s=3,q=(1+4+1)/2=3... wait, (AโB)2+(BโC)2+(CโA)2=1+1+4=6, q=3, s=3, product =9. Let's try (2,2,0):s=4,q=(0+4+4)/2=4, product =16. Try (1,1,0): product =2. For n=4: (2,1,1):s=4,q=(1+0+1)/2=1, product =4. โ
Conclusion.
The set of all possible values is:
{nโZโฅ0โ:n๎ โก3ย andย n๎ โก6(mod9)}โ.
That is, the expression takes all nonneg integer values except those congruent to 3 or 6 modulo 9.