 Hello friends, I am Sanjay Gupta. I welcome you on my YouTube channel. My channel contains more than 800 videos related to various programming languages. You can search those videos through the keyword programming by Sanjay Gupta. You can also search my YouTube channel by typing my name Sanjay Gupta in YouTube. You can subscribe my YouTube channel if you want to follow programming related videos. If you have any queries, you can connect with me by following these details which are available in front of you. Now in this video, I'm going to discuss about shortcut methods of conversion. So first I'm going to discuss binary to octal conversion, then octal to binary conversion, then binary to hexadecimal conversion, then hexadecimal to binary conversion, and then octal to hexadecimal conversion. So I will be discussing how you can apply shortcut methods to perform these conversions. So first we are going to learn how we can convert binary to octal using shortcut method. So here you can see two steps are available. So first step says make group of three bits each starting from the right-hand side if required. Add initial zeros in the leftmost group. So here you have to make the pair of three bits if you want to convert binary number into octal. Second point says convert each group into one octal digit by using the method for binary to decimal conversion. So after making pair, you have to apply this step which is pretty simple. So by applying these two steps, you can convert a binary number into an octal number. So let's have a look on an example so that you can understand both the steps well. So the question is convert 101110 which is a binary number into octal number. So here you can see I have grouped three bits together. So 110 is one pair and 101 is another pair. So here I have created two pairs. Suppose there are total five bits only. Then you can add additional zero on left-hand side of a particular pair where less number of bits are available. So now you can see 110 is converted into six. So this is a binary value 110. It's equivalent. Decimal value is six. So simply you can find out this value. Then 101 which is equivalent to five in form of decimal. Now we can combine five and six to make octal number. So friends, this way you can easily convert a binary number into octal number by making a group of three bits together. So this is the first conversion method or you can say first conversion method by using a shortcut. Now second is octal to binary. So now we have to convert octal number into binary number using a shortcut. So first steps is convert each octal digit to a three digit binary number by using decimal to binary conversion. Second steps is now combine all the resulting binary groups into a single number. So let's have a look on this example so that you can better understand the steps. So this is the value 562 which is octal number. We have to convert it into binary. I have placed 56 and two. Then I have identified binary of two, which is 010 binary of six, which is 110 and binary of five, which is 101. Now if I combine all these binary digits, then this number 101110010. So this is the equivalent binary number for 562, which is an octal number. So friends, this way you can easily convert octal number into binary by this shortcut method after explanation of binary to octal and octal to binary. Now moving to binary to hexadecimal conversion. So here again two steps are available. The first step says make group of four bits each starting from the right hand side if required at initial zeros in the left most group. So in case of octal we created a group of three bits, but in case of hexadecimal you have to create group of four bits. Second step says convert each group into one hexadecimal digit by using the method for binary to decimal conversion. And this second step is same as we discussed in octal. So now the number is 1101011. This is the binary number. We have to convert it into hexadecimal. So I have created group of four, four bits and each group is converted into its equivalent decimal. So 0011 is three 1101 is 13 and in hexadecimal 13 is equivalent to D. If we combine these two digits D3. So finally the equivalent hexadecimal value will be D3. So this way by applying the shortcut method I have converted binary number into hexadecimal number. Fourth is hexadecimal to binary conversion. So here you can see first step is convert each hexadecimal digit to four digit binary number by using decimal to binary conversion. And then combine all resulting binary groups into a single number. So it is equivalent to octal to binary conversion. Here we have to make four digit combinations only. So here you can see the example where 2AB is the hexadecimal number and we have to identify its equivalent binary. So binary of D is 1011, binary of A is 1011, sorry 1010 and binary of 2 is 0010. So individual digits binary formation have identified and then we have to combine all these binary digits 001010101011. So this is binary value for 2AB. So this way I have applied shortcut method to convert hexadecimal to binary and binary to hexadecimal. Now last one is convert octal to hexadecimal. So number is 2571 which is octal number and we need to convert it into hexadecimal value. So first we have to convert 2571 into binary. So I have placed 2571 individually and their equivalent binary values are available and I have grouped those values to identify the binary. So 2571 which is octal number, its binary is written here and now we have to make group of four four bits so that we can identify its equivalent hexadecimal number. So here you can see this binary number is grouped into four four bits combinations. Then four bits combination is converted into its equivalent decimal value. So 1001 is 9, 0111 is 7 and 0101 is 5. Then if we put all these digits together, 579, then final outcome is 579 and it is hexadecimal number. So 2571 which is octal number, its equivalent hexadecimal number is 579. So this way I converted octal to hexadecimal. If you want to convert hexadecimal to octal, then first you have to convert hexadecimal to binary and then through binary bits, you can make group of three bits convert each three bits group into decimal and combine all the digits to find out equivalent octal number. So this way I explained you all five shortcut methods to convert a particular number into another. I hope you have understood whatever I have demonstrated in this video. If you want to ask any query, you can connect with me by following these details which are available in front of you. If you want to watch more programming related videos, you can follow my YouTube channel. Thank you for watching this video.