A very basic numbers game. Adding the numbers and then taking away from the original always results in a multiple of 9. So it puts the same symbol for each multiple of 9. A simple trick, but effective.