I just got out of a class on digital theory where we had to do this by memory. It sucked, but the new stuff is digital and binary is the base to get to hex, octal and decimal.