I’ve noticed a grouping method when converting from binary to hexadecimal and binary to octal.
When converting from binary to octal, my math book says to group the binary numbers into groups of three, starting from the right. Also, it says to pad zeroes to the left of the last number, if the amount of binary numbers isn’t divisible by three.
When converting from binary to hexadecimal, the books tells you to do the same as one would for binary to octal. However, the book tells you to make groups of four, rather than three.
Can someone point me in the direction of where I might find the reason for this method?
I can, somewhat, understand groups of four going from binary to hexadecimal because four is a factor of sixteen, which, of course, are the number of digits in hexadecimal, but, that doesn’t hold for binary to octal, because three isn’t a factor of eight.
Any help would be appreciated. Thanks!
Happy (early) Pi Day!

