Wednesday, 20 August 2014

sequences and series - Performing one digit operation to compute the result.



Suppose we have ai,bi,ci{0,1,,9} and A=a2a1a0,B=b2b1b0,C=c1c0. We want to perform the following operations with the restriction that only one digit operation is allowed to perform during the intermediate result



(110)(AB.10)+C.100




My approach




  1. (B.10A)=((b2,b1,b0,0)(a2,a1,a0))=(b2,d1=(b1a2),d0=(b0a1),a0)


  2. ((b2,d1,d0,a0)+(b2,d1,d0,a0,0))=(b2,e2=(b2+d1),e1=(d1+d0),e0=(d0a0),a0)


  3. ((b2,e2,e1,e0,a0)(c1,c0,0,0))=(b2,(e2c1),(e1c0),e0,a0)




After the above three steps now we can perform the borrow operation to obtain the correct result. But my above algorithms is not working correctly for example (1 - 10)(384 - 5780) + 6400




Where am I making mistake?


Answer



As a start,
I would first get rid of some of the
minus signs,
and write it as



(10-1)(10B-A)+100C.



The next step would be




10(10B-A)-(10B-A)+100C.



Then, find 10B-A
and get the combined digits.



Are you allowed to write the first part
as 9(10B_A)?


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find lim without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...