Mathematics · Question
The decimal number 31 in hexadecimal would be what?
Answer
1F
The story behind the answer
Hexadecimal is base 16, using digits 0–9 and A–F where A=10 … F=15. To convert 31 (decimal) to hex, divide by 16: 31 = 1×16 + 15. The quotient 1 is the high hex digit and the remainder 15 maps to F, so 31₁₀ = 1F₁₆.
Why this is handy: hex aligns perfectly with binary—each hex digit represents 4 bits. 31 in binary is 0001 1111, which groups as 0001 (1) and 1111 (F) → 1F. Memory tip: “F is fifteen, the fullest single hex digit,” and