Binary Code

11111 = 31

Binary11111
Decimal31
Hexadecimal1F
Bits5
As Equation16 + 8 + 4 + 2 + 1