TCS
Interview
Numerical Ability
Algebra
What is the minimum value of abs(187m - 396n - 526) as m,n take all integer values? Here abs is the absolute value function ( that is , if X>0, then abs (X)=X and if X<0, then abs(X)=-X)
A. 0 B. 9 C.2 D.1
Read Solution (Total 4)
-
- abs(187m - 396n - 526).
abs(11(17m-36n)-526).
let us assume 17m-36n=47.because 526/11=47.818
abs(11*47-526)=abs(-9)=9
let us assume 17m-36n=48.because 526/11=47.818
abs(11*48-526)=abs(2)=2.therefore the minimum value is 2 (opt c)
- 8 years agoHelpfull: Yes(16) No(0)
- (11*17-11*36)-526
11(17-36)-526
11*48-526
528-526=2
so minimum value is 2
- 8 years agoHelpfull: Yes(5) No(0)
- why are you using 17m-36n as 47 ???
- 8 years agoHelpfull: Yes(0) No(1)
- Ravi kumar@ because only then we obtain local minimum value and local maximum value.In this sum loc min val is 48 and local max value is 47.And thereby find the absolute min and absolute max value
- 8 years agoHelpfull: Yes(0) No(1)
TCS Other Question