TCS
Company
In base 7,a number is written only using the digits 1,2,...,6. The number 21 in base 7 is equal to 2*7+1=15 in base 10.Similarly the number 135 in base 7 is 1x72+3x7+5 in base 10. What is the sum of base 7 numbers 1234 and 6543 in base 7.?
Read Solution (Total 6)
-
- 1234 in base 7= 466 in base 10.(4*7^0+3*7^1+2*7^2+1*7^3)
6543 in base 7 =2334 in base 10.
adding 466+2334=2800 in base 10.
convert it into base 7 by dividing with 7.
2800 in base 10 = 11110 in base 7.
- 11 years agoHelpfull: Yes(17) No(2)
- in base-7 the numbers will be 0,1,2,3,4,5,6 after 6 any number will be equal to 10 + (that number)%7(i.e base) for eg: 4 + 3 =7>6 therefore 10 + 7%7 = 10 + 0==>10
now similarly 4 + 4 = 8>6 = 10 + 8%7 =10 + 1==>11
now given problem
4+3 = 10 carry =1
1(c)+3+4 = 11 carry =1
1(c)+2+5 = 11 carry =1
1(c)+1+6 =11
therefore answer = 11110 - 11 years agoHelpfull: Yes(7) No(0)
- 11110 is the sum in base 7
- 11 years agoHelpfull: Yes(2) No(1)
- directly add 1234 and 6543, in case of a resulting digit sum is 7, take carry 1 and put 0 in d place of the corresponding digit sum ..... and when ever digit sum is 8 take carry 1 and put 1 in d place of the corresponding digit sum...
so the final answer is 11110 - 11 years agoHelpfull: Yes(2) No(0)
- please can u explain the procedure
- 11 years agoHelpfull: Yes(1) No(0)
- its easy just read basic number system
ans is 11110
- 11 years agoHelpfull: Yes(1) No(0)
TCS Other Question