to transform any decimal value into binary you divide it by 2 and mark the remains e.g.
8 divide by 2 = 4 remain 0
so (LSB) Least Significant Bit =0
4 divided by 2 = 2 remain 0
so you now have 00
2 divided by 2= 1 remain 0
so it's 000
1 divided by 2= 0 remain 1
so you have 1000 = 8 in binary
63= 31 1
31=15 1
15=7 1
7=3 1
3=1 1
1=0 1
To trransform any binary to decimal you start with the MSB (most significant bit) times 2 + value of next bit X2 +value etc....e.g.
MSB 1100 LSB would be 1x2+1=3 X2+0=6 X2=112+0 =12
To transform any binary into octal separate your number into groups of 3 bits starting with the LSB and transform each value into decimal. e.g.
1110 = (001) (110) or (1) (6) or 16 octal
from octal to binary replace each number by its 3 digits binary value (add zero to MSB to complete group. e.g.
72 octal would be (111) for 7 and (010) for 2 or 111010
from binary to Hexadecimal divide your number in groups of 4 and proceed the same way you did with octal
e.g. 1111=15 which is Foxtrot in Hex or F since hex goes from 0 to F (0,1,2.3.4.5.6.7.8.9.A,B,C,D,E,F)
And voilà Logical Class 101