In the country, a car number with a length of 6 characters is made up of capital letters (only 33 different letters
In the country, a car number with a length of 6 characters is made up of capital letters (only 33 different letters are used) and decimal digits in any order, each such number in a computer program is written in the minimum possible and the same whole number of bytes
First, let’s calculate the number of characters that can be used in the number: 33 letters + 10 digits = 43 characters.
To encode 43 different characters, a code of at least 6 characters is required (2 ^ 5 = 32 – there are not enough code options, 2 ^ 6 = 64 different codes).
To encode a license plate consisting of 6 characters, 6 bits * 6 = 36 bits of memory are required.
Let’s translate the resulting value into bytes: 1 byte = 8 bits, therefore, 36 bits = 36: 8 = 4.5 = 5 bytes (round to the nearest larger integer value).