Well, how much do you remember about algebra, specifically modulus arithmetic?
Here's kind of a quick explanation, which assumes you remember a few things about the commutative (A+B=B+A), associative ( A+(B+C)=(A+B)+C), and distributive (A*(B+C)=A*B+A*C) properties.
First, the Modulus function gives you the remainder when you divide one number by another, MOD(15,9) = 6 because 15=9*1+6. The cool thing about the Mod function is that all of the usual properties still apply after you apply it. For example, 25+18=43. But also MOD(25,9)+MOD(18,9)=MOD(43,9)=>7+0=7. Also 23*17=391. Or MOD(23,9)*MOD(17,9)=MOD(391,9)=>5*8=4=>MOD(40,9)=4=>4=4. Try a few examples to see. This applies for any modulus, not just 9. I'm just using 9 for now since that's what the OP asked. This can be proven, but that's more than I have time for.
Once you accept that much, let's take an example of the number 234. Most of the steps below should be self-evident, but if something doesn't make sense, let me know.
234 =
200 + 30 + 4 =
2 * 100 + 3 * 10 + 4 * 1 =
2 * (99 + 1) + 3 * (9 + 1) + 4 * 1 =
(2 * 99 + 2 * 1) + (3 * 9 + 3 * 1) + (4 * 1) =
(2*99 + 2 ) + (3*9 + 3) + (4) =
2*99 + 3*9 + 2 + 3 + 4
Now we can apply the MOD function to the last line. The first 2 terms are evenly divisible by 9 so the remainder is zero, leaving 2+3+4, which is the sum of the digits. But applying the MOD function to the last line is the same as applying it directly to 234, since every step along the way is a valid transformation. Ergo, applying the Mod function directly to the number is the same as summing the digits. Also, if the sum of the digits is greater than 9, you can see that applying the process in an iterative fashion maintains the remainder each time.
The -1 / +1 trick is so that if you take MOD(9,9) you're not left with 0, but if you start with 0, that's what you get.
I hope this makes some kind of sense, since I wrote it up fairly quickly. Check Wikipedia for "Digital root" or "Casting out nines". Both of those have a somewhat more rigorous explanation, but also a bit longer. I'll give it another shot if there's something unclear. Hope this helps!