Any resources explaining computer math: bits, bytes, etc.?

Is there a course that runs you through understanding this kind of mathematics?

Example: how to convert an integer into binary, hex, etc., and back?

Thanks.