Well, after extensive talking with some people on sci.math, some hand calculations, and a running computer program to run through all possibilties, I'm ready to say SONIC JUST PULLED THAT NUMBER OUT OF THEIR BUTTS.
It probably tested well or something on a focus group.
Anyway, to save everyone from the boring mathematics...
(
Here's the math )