TCS
Company
In base 7, a number is written only using the digits 0,1,2...6. The number 135 in base 7 is 1*7^2+3*7+5=75 in base 10. what is the sum of the base 7 number 1234 and 6543 in base 7?
a)11101
b)11110
c)10111
d)11011
Read Solution (Total 5)
-
- Ans:b
Here it is Asked to find the sum of base 7 number 1234 and 6543.
Add the two number.
1234+6543=7777
Now as per base 7 rule:
Divide 7777 by 7,you will get 1111 as quotient and remainder as 0.
Hence 11110. - 12 years agoHelpfull: Yes(50) No(6)
- 7 in base 7 = 10
so 1234
+6543
-------
4+3 = 0
1 carry
4+3+1 = 8 = 11
1 carry
2+5 + 1 =11
1 carry
6+1+1 = 8 = 11
so 11110 - 12 years agoHelpfull: Yes(18) No(4)
- 343+98+21+4=466 (1234)
2058+245+28+3=2334 (6543)
thus addition in decimal=2800
now convert 2800 to base 7= 11110
7!2800 ! 0
--------
7!400 ! 1
--------
7! 57 ! 1
--------
7! 8 ! 1
--------
1 ! 1
2800 (in decimal)==11110 (in base 7)
- 9 years agoHelpfull: Yes(4) No(3)
- b)11110
.1234 ..... in base 7
+6543........In base 7
---------
11110........In base 7
------- - 12 years agoHelpfull: Yes(1) No(23)
- (1234) = 7^3x1+7^2 x2 +7x3+ 4 = (466)10
(6534) = 7^3x6 + 7^2x5 + 7x6 + 7 = (2328)10
2328+466 = 2794
for 2794 = 7^4 + 7^3 +7^2 +7*0 + 7 = (11101)base7 - 7 years agoHelpfull: Yes(0) No(0)
TCS Other Question