TCS
Company
In a base 7, a number is written using 0,1...6. The number 1 in base 7 is equal to 2*7+1=15 in base 10. Similarly, the number 135 on base 7 is 1*72+3*7+5=75 in base 10. What is the sum of the base 7 number 1234 and 6543 in base 7.
Read Solution (Total 5)
-
- convert 1234 and 6543 in base 10 format
(1234)base 7=466 base 10
(6543)base 7=2334 base 10
add these two number..it will be 2800 base 10
then cnvert 2800 base 10 to base 7..and that will be 11110 - 11 years agoHelpfull: Yes(16) No(1)
- this is similar to binary to decimal and decimal to binary conversions.
ie for ex here 135= the zeroth digit -> 5*(7^0)+ tenth digit-> 3*(7^1)+100th digit ->1*(7^2)=75.
so 1234 would give 1*(7^3)+2*(7^2)+3*(7^1)+4*7^0=343+98+21+4=466
and similarly for 6543=2334
addin them together ,2800
nw convert this again to base of 7, like decimal to binary..divide 2800 contentiously by 7 and write the reminders( top to bottom) in left to right manner 2800%7=0(400-quotient) ,400%7=1(q-57),57%7=(q-8)1,8%7=1(q is 1),so our answer is 11110. - 11 years agoHelpfull: Yes(4) No(0)
- 1234
+ 6543
=11110
when we add6 and 4 in decimal we get 0 and carry 1 similarly when we add 4 and 3 we get o carry 1now when we add 3 nd 4 nd 1 we get 1 and carry 1so itcan directly added in this way - 11 years agoHelpfull: Yes(2) No(0)
- plz xpln n brfly
- 11 years agoHelpfull: Yes(1) No(1)
- Firstly, Change all the numbers i.e. 1234 and 6543 in decimal form.
for 1234--466 in decimal
for 6543 --2334 in decimal form
after adding 466 and 2334 we get, 2800..(in decimal form)
Now convert this number in base 7 by just dividing ...
ans is 11110 - 11 years agoHelpfull: Yes(1) No(0)
TCS Other Question