
52+34 в двоичную систему, сложить, высисть, сделать проверку


Ответы на вопрос

86=1010110
Как я решал:
86:2остаток 0
43:2 остаток 1
21:2 остаток 1
и т.д. до
2:2 остататок 0



Converting 52 and 34 to Binary
To convert the decimal numbers 52 and 34 to binary, we can use the following steps:
1. Divide the decimal number by 2. 2. Write down the remainder (0 or 1). 3. Repeat steps 1 and 2 with the quotient until the quotient becomes 0.
Let's convert 52 to binary:
- 52 divided by 2 equals 26 with a remainder of 0. - 26 divided by 2 equals 13 with a remainder of 0. - 13 divided by 2 equals 6 with a remainder of 1. - 6 divided by 2 equals 3 with a remainder of 0. - 3 divided by 2 equals 1 with a remainder of 1. - 1 divided by 2 equals 0 with a remainder of 1.
So, the binary representation of 52 is 110100.
Now, let's convert 34 to binary:
- 34 divided by 2 equals 17 with a remainder of 0. - 17 divided by 2 equals 8 with a remainder of 1. - 8 divided by 2 equals 4 with a remainder of 0. - 4 divided by 2 equals 2 with a remainder of 0. - 2 divided by 2 equals 1 with a remainder of 0. - 1 divided by 2 equals 0 with a remainder of 1.
Therefore, the binary representation of 34 is 100010.
Adding 52 and 34 in Binary
To add the binary numbers 110100 and 100010, we can use the following steps:
1. Start from the rightmost bit (the least significant bit) and move towards the left. 2. Add the corresponding bits from both numbers, along with any carry from the previous addition. 3. Write down the sum bit and update the carry if necessary. 4. Continue this process until all bits have been added.
Let's add 110100 and 100010:
``` 110100 + 100010 -------- ```
Starting from the rightmost bit:
- 0 + 0 = 0 - 0 + 1 = 1 - 1 + 0 = 1 - 0 + 0 = 0 - 1 + 1 = 0 with a carry of 1 - 1 + 0 = 1 with a carry of 0
Therefore, the sum of 110100 and 100010 in binary is 1010110.
Converting the Sum to Decimal
To convert the binary sum 1010110 to decimal, we can use the following steps:
1. Start from the leftmost bit (the most significant bit) and move towards the right. 2. Multiply each bit by 2 raised to the power of its position (starting from 0 for the rightmost bit). 3. Sum up the results of each multiplication.
Let's convert 1010110 to decimal:
- (1 * 2^6) + (0 * 2^5) + (1 * 2^4) + (0 * 2^3) + (1 * 2^2) + (1 * 2^1) + (0 * 2^0) - (64) + (0) + (16) + (0) + (4) + (2) + (0) - 86
Therefore, the decimal representation of the binary sum 1010110 is 86.
Verification
To verify the correctness of the conversion and addition, we can use a calculator or an online binary calculator. Using an online binary calculator, we can confirm that the binary representation of 52 is indeed 110100, the binary representation of 34 is 100010, and the sum of 110100 and 100010 is 1010110, which is equal to 86 in decimal.
In conclusion: - The binary representation of 52 is 110100. - The binary representation of 34 is 100010. - The sum of 52 and 34 in binary is 1010110. - The decimal representation of 1010110 is 86.
Please let me know if there's anything else I can help you with!


Топ вопросов за вчера в категории Информатика








Последние заданные вопросы в категории Информатика
-
Математика
-
Литература
-
Алгебра
-
Русский язык
-
Геометрия
-
Английский язык
-
Химия
-
Физика
-
Биология
-
Другие предметы
-
История
-
Обществознание
-
Окружающий мир
-
География
-
Українська мова
-
Информатика
-
Українська література
-
Қазақ тiлi
-
Экономика
-
Музыка
-
Право
-
Беларуская мова
-
Французский язык
-
Немецкий язык
-
МХК
-
ОБЖ
-
Психология
-
Физкультура и спорт
-
Астрономия
-
Кыргыз тили
-
Оʻzbek tili