I thought of converting to base 2 instead of base 10 right off the bat... Base 2 is fairly easy to convert to. It's a lot simpler to convert FROM base 2 than using the MOD function, as well.

Brian