This transfer is possible in two ways: direct transfer and using the decimal system.
first, let\'s make a direct transfer.
let\'s do a direct translation from octal to binary like this:
1258 = 1 2 5 = 1(=001) 2(=010) 5(=101) = 0010101012
answer: 1258 = 10101012
now let\'s make the transfer using the decimal system.
let\'s translate to decimal like this:
1∙82+2∙81+5∙80 = 1∙64+2∙8+5∙1 = 64+16+5 = 8510
got It: 1258 =8510
Translate the number 8510 в binary like this:
the Integer part of the number is divided by the base of the new number system:
| 85 | 2 | | | | | | |
| -84 | 42 | 2 | | | | | |
| 1 | -42 | 21 | 2 | | | | |
| 0 | -20 | 10 | 2 | | | |
| | 1 | -10 | 5 | 2 | | |
| | | 0 | -4 | 2 | 2 | |
| | | | 1 | -2 | 1 | |
| | | | | 0 | | |
 |
the result of the conversion was:
8510 = 10101012
answer: 1258 = 10101012