-123 = 11 1000 0101 [I presume the number 123 is in decimal] First write the positive number in binary using 10 bits (I've split it into groups of 4 bits to make it easier to read): 123 = 00 0111 1011 Convert to 1s complement by inverting all bits (any 0 => 1, any 1 => 0): 00 0111 1011 => 11 1000 0100 Finally add 1 to get 2s complement: 11 1000 0100 + 1 = 11 1000 0101 Thus the 2s complement of the negative number: -123 = 11 1000 0101 This can also be expressed in hexadecimal: -123 = 0x385 Or in octal (easy to convert if the binary number is first written in groups of 3 bits): -123 = 1 110 000 101 = 01605 [I've used C notation for the hexadecimal and octal numbers.]
It is: 123+123 = 246
123 + 123 = 246 poo faces
1 × 123 = 123 3 × 41 = 123
39, 41, 43 Let x represent the smallest of these numbers. From the problem, we know x+(x+2)+(x+4)=123 Solving for x: 3x+6=123 3x=117 x=117/3=39 So our integers are: 39, 41, 43
-123 = 11 1000 0101 [I presume the number 123 is in decimal] First write the positive number in binary using 10 bits (I've split it into groups of 4 bits to make it easier to read): 123 = 00 0111 1011 Convert to 1s complement by inverting all bits (any 0 => 1, any 1 => 0): 00 0111 1011 => 11 1000 0100 Finally add 1 to get 2s complement: 11 1000 0100 + 1 = 11 1000 0101 Thus the 2s complement of the negative number: -123 = 11 1000 0101 This can also be expressed in hexadecimal: -123 = 0x385 Or in octal (easy to convert if the binary number is first written in groups of 3 bits): -123 = 1 110 000 101 = 01605 [I've used C notation for the hexadecimal and octal numbers.]
327 degrees (or -33 deg).
Well, let's think about this together. To find the 3's complement of a number, we first find the 1's complement by flipping all the bits. So, the 1's complement of 123 would be 876. Then, we add 1 to the 1's complement to get the 2's complement, which is 877. Finally, we add 1 to the 2's complement to get the 3's complement, which is 878. Just remember, mistakes are just happy accidents in the world of math!
The complement of an angle is 90 degrees minus the angle 90-57 = 33 degrees
Two's complement is the normal implementation of signed integers, so just take the negative. int a = 123; int b = -a; /* b now equals -123 */ The actual implementation of two's complement notation is that, to make something negative, simply invert the bits and then add 1. 12310 = 00000000011110112 (using 16 bit notation) Invert and you get 111111111000100. Add one and you get 111111111000101, so... -12310 = 1111111110001012
The supplementary angle of 57 degrees is 123 degrees The complementary angle of 75 degrees is 15 degrees So: 123 minus 15 = 108 degrees
It is: 123+123 = 246
123 + 123 = 246 poo faces
It is 123/1.123, as a fraction is 123/1.
1 × 123 = 123 3 × 41 = 123
39, 41, 43 Let x represent the smallest of these numbers. From the problem, we know x+(x+2)+(x+4)=123 Solving for x: 3x+6=123 3x=117 x=117/3=39 So our integers are: 39, 41, 43
The sum of 123 is 123.