TCS
Company
undefined
in base 7, a number is written only using digits 0,1,2,3,4,5,6. the number 135 in base 7 is 1*72+3*7+5=75 in base 10. what is the sum of the base 7 numbers 1234 & 6543 in base 7?
a)11101
b)11110
c)10111
d)11011
Read Solution (Total 12)
-
- 1234+6543 will be done as:
4+3=7 since base is 7 so it will become 0 giving 1 carry to next digits(so 4+7=0)
3+4 + 1 carry from above step= 1 and 1 carry to next digit
2+5 + 1 carry to next digit= 1 and 1 carry
1+6= 11
so ans=11110 - 10 years agoHelpfull: Yes(26) No(1)
- 1234
+6543
-----------
7777
(MSB) (LSB)
7 is written as 10 in base 7
so 7777 is written as
1)the LSB 7 is divided in to sum=0 and carry=1
so LSB place of the answer is 0.
2)the carry 1 is added in second last 7 (10+1=11)
and it is divided into sum=1 and carry=1
so second last bit of answer is 1
3)the carry 1 is again added in third last 7 (10+1=11)
and it is divided into sum=1 and carry=1
so third last bit of answer is 1
4)the carry 1 is added in 4th last 7 (10+1=11)
and it is divided into sum=1 and carry=1
so 4th last bit of answer is 1
5)5th new bit is added in answer as carry 1
so the answer is 11110
- 10 years agoHelpfull: Yes(3) No(1)
- In count in base 7 is:
0,1,2,3,4,5,6,10,11,12,13,14,16,20.....
so addition of above 2 numbers will be 11101 - 10 years agoHelpfull: Yes(2) No(1)
- answer is B
- 10 years agoHelpfull: Yes(2) No(1)
- +1 +1 +1 +1
1 2 3 4
6 5 4 3
________________
1 1 1 1 0 - 10 years agoHelpfull: Yes(2) No(0)
- b)11110
In base 7 there won't be no. 7. So we write 7 as 10,8 as 11 and so on.
1)First we add 4+3=7(7 means 10 so carry is 1)
2)3+4+1=8(8 means 11 so carry is 1)
3)2+5+1=8(8 means 11 so carry is 1)
4)1+6+1=8(8 means 11 so carry is 1)
So, 1234+6543=11110 - 10 years agoHelpfull: Yes(2) No(0)
- my bad answer is B
I added 1234 & 6534. - 10 years agoHelpfull: Yes(1) No(1)
- 1234+6543 = 11110
as sum of 3 and 4=7 which is an invalid number in case of base 7 numbers sum of 3 and 4 will be equal to 0 with carry 1, perform the later addition using this analogy and u will have the result - 10 years agoHelpfull: Yes(1) No(0)
- 1234
+6543
11110
we can simply add and when value become greater than 6 we take carry.
- 10 years agoHelpfull: Yes(1) No(0)
- first add right most digits that are 4 and 3 gives 10 in base7 system.the result has 0 in its units place, now auxilary carry (1) is added with 10's digits(3+4+1)=11 in base7 system. so,the result has 10 in its right most two digits.so the answer is (B);.........BY MAHESH AND RAVI MVGR COLLEGE OF ENGG;
- 10 years agoHelpfull: Yes(0) No(1)
- 1234+6543=11110, we get 7 on adding 4&3.7=10 here
- 10 years agoHelpfull: Yes(0) No(0)
- b>11110 will be the soln.
- 10 years agoHelpfull: Yes(0) No(0)
TCS Other Question