The digit sum as described here is what we use in "casting out nines", which you can look up; it's the residue modulo 9. You can confirm the claim by finding the squares of each possible number (mod 9), which all turn out to be 1, 4, 7, or 9.View attachment 30947
How does this work?
It was enough, thanks a lotThe digit sum as described here is what we use in "casting out nines", which you can look up; it's the residue modulo 9. You can confirm the claim by finding the squares of each possible number (mod 9), which all turn out to be 1, 4, 7, or 9.
You haven't said anything about what you know about number theory, or where this question came from, so I have no idea whether what I have said will be enough.