You're studying the wrong kind of maths, probably.
Look into Number theory (and Discrete maths, if you feel like).