I am at the point where I understand binary quite well, so I decided to look at the hexadecimal numerical system, but I'm a bit stumped with the logic behind it. For those of you who understand it, you know that numbers 10 through 15 (decimal) are represented by letters A through F respectively within the hexadecimal system. Within the binary system the number 31 is represented as $11111$ or $ 2^0 + 2^1 + 2^2 + 2^3 + 2^4 $. If I try to apply this same logic to the hexadecimal system it doesn't work because $ 1 = 1 $ and $ F = 15 $ but $ 1F = 31 $ based on hexadecimal logic. Could someone explain why this is?
(Sorry if this super basic, I just can't wrap my head around it.)
It is like positional notation in decimal. Each digit to the left is worth $16$ times more than the one on the right, so $1F_{16}=1\cdot 16+15\cdot 1=31$ For a larger example, note that the third digit is worth $16\cdot 16=256$, so $ABC_{16}=10\cdot 256+11\cdot 16+12=2748$