HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /Prove that the equation x³ + y³ + z³ = n has no solution in integers when n leaves remainder 4 or 5…
AdvancedMathematicsHigh School (11–12)Number TheoryproofNumericalOlympiad

Prove that the equation x³ + y³ + z³ = n has no solution in integers when n leaves remainder 4 or 5…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

Prove that the equation x3+y3+z3=nx^3 + y^3 + z^3 = nx3+y3+z3=n has no solution in integers when nnn leaves remainder 444 or 555 on division by 999. First find every possible remainder of a cube modulo 999, then every possible remainder of a sum of three cubes. Finally count the integers nnn from 111 to 100100100 that this argument rules out, and find the largest of them.

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

Factor into a product equal to a known number; order the unknowns and bound the smallest; compare remainders modulo a well-chosen number. Pell's equation x2−dy2=1x^2 - dy^2 = 1x2−dy2=1 has the solutions

xk+ykd=(x1+y1d)k.\displaystyle x_k + y_k\sqrt d = (x_1 + y_1\sqrt d)^k.xk​+yk​d​=(x1​+y1​d​)k.

The worked solution

Check an answer or open a hint to unlock the worked solution.

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. Cubes modulo 9. 03=00^3 = 003=0, 13=11^3 = 113=1, 23=82^3 = 823=8, 33=27≡03^3 = 27 \equiv 033=27≡0, 43=64≡14^3 = 64 \equiv 143=64≡1, 53=125≡85^3 = 125 \equiv 853=125≡8, 63=216≡06^3 = 216 \equiv 063=216≡0, 73=343≡17^3 = 343 \equiv 173=343≡1, 83=512≡88^3 = 512 \equiv 883=512≡8. So a cube is 000, 111 or −1-1−1 modulo 999.

Step 2. Three cubes. A sum of three numbers from {0,1,−1}\{0, 1, -1\}{0,1,−1} lies between −3-3−3 and 333, so modulo 999 it is one of 0,1,2,3,6,7,80, 1, 2, 3, 6, 7, 80,1,2,3,6,7,8. The remainders 444 and 555 never occur. Proof complete.

Step 3. Count. From 111 to 100100100: n≡4n \equiv 4n≡4 gives 4,13,…,944, 13, \dots, 944,13,…,94, which is 111111 numbers; n≡5n \equiv 5n≡5 gives 5,14,…,955, 14, \dots, 955,14,…,95, another 111111. In all 222222, the largest being 959595.

Answer: 222222 numbers are ruled out, and the largest is 959595.

What if? For the other remainders the question is open in general. Only in 2019 did a computer search find three cubes with sum 333333 and with sum 424242.

Log in to save this for later
← All Problems
← Find every triple of positive integers a ≤ b ≤ c with 1/a + 1/b + 1/c = 1, and prove that there are…The triangular numbers are 1, 3, 6, 10, …, where the nth one is (n(n + 1))/2… →
More onNumber Theory

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. The triangular numbers are 1, 3, 6, 10, …, where the nth one is (n(n + 1))/2…Advanced
  2. Find every triple of positive integers a ≤ b ≤ c with 1/a + 1/b + 1/c = 1, and prove that there are…Advanced
  3. Find all pairs of positive integers (x, y) with x² - y² = 945…Hard
  4. A teacher wants a list of every primitive Pythagorean triple whose hypotenuse is less than 100…Advanced
  5. Prove that the product abc of the three sides of every Pythagorean triple is a multiple of 60…Advanced
All problems on this topic →