Convert the number 245 from decimal to binary. How many units does this number contain?
September 14, 2020 | Education
| Let’s represent the number 245 as a sum of powers of two: 245 = 128 + 64 + 32 + 16 + 4 + 1. Now let’s translate each of the terms into a binary number system and add the results: 128 = 10000000, 64 = 1000000, 32 = 100000, 16 = 10000, 4 = 100, 1 = 1. Therefore, 245 (10) = 11110101 (2). Thus, the number of ones in the binary representation of the number 245 is 6
