I'm reading an article about numbers that can be expressed as the sum of three cubes:
It states in the article that if you take the following expressions for $x^3+y^3+z^3 = k$ for $x,y,z,k \in \mathbb{N}$ then $k\not\equiv \pm 4\pmod 9$.
I have two questions about this:
- It states that a cube modulo 9 always equals 0, -1 or 1. How can you prove this?
- Given that this is true, $k \neq 9n \pm 4$ for any integer $n$. I understand how they get to 4, but shouldn't five also be impossible? I get to get 3 modulo 9 you would need 3 cubes that are each 1 modulo nine. For six you would need three cubes of each -1 modulo 9. But how would you reach 5 modulo 9 as the sum of three cubes?
Yes, I am aware another question is about this (If $n\equiv 4 \pmod 9$ then $n$ cannot be written as sum of three cubes?) but this doesn't answer why 5 is possible and why a cube is $0, \pm 1\mod 9$.