When writing a message, it is known that one character weighs 5 bits, how many characters are in the alphabet?

When writing a message, it is known that one character weighs 5 bits, how many characters are in the alphabet? How much does the message weigh if it contains 128 characters?

The calculation of the number of characters in the alphabet is determined by the formula: N = m ^ k, where N is the number of characters in the alphabet, m is the number of characters that each character of the code can take, k is the length of the code.

If each character of the message weighs 5 bits, then in the original alphabet 2 (binary code) ^ 5 = 32 characters.

If the message contains 128 characters, then it occupies 128 x 5 = 640 bits.

1 byte = 8 bits, therefore 640 bits = 640: 8 = bytes.



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.