TCS
Company
Numerical Ability
Percentage
The value of the expression
1%2%3%5%7%11%13
Can be altered by including parenthesis.If we are allowed to place as many parenthesis as we want,how many distinct values can be obtained from this expression?
Clue:which of the numbers can appear in the numerator and which are in the denominator of the fraction obtained after inserting parenthesis?
Read Solution (Total 4)
-
- 64 values...is the ans i tnk so..suppose for example take 1%2-u can hav 1(2)=2 or (1%2)=1 lll ly 1%2%3=1(2(3))=6 or 1%(2(3))=1 or 1(2)%3=2...(1%2)*3=3..lykwise for 2 mod operators its 4 for 6 mod operator its 2^6...
- 9 years agoHelpfull: Yes(3) No(3)
- Solution please asap??
- 9 years agoHelpfull: Yes(2) No(1)
- The value of the expression
1%2%3%5%7%11%13
Can be altered by including parenthesis.If we are allowed to place as many parenthesis as we want,how many distinct values can be obtained from this expression?
Clue:which of the numbers can appear in the numerator and which are in the denominator of the fraction obtained after inserting parenthesis?
a)32 b)64 c)16 d)128 - 9 years agoHelpfull: Yes(0) No(2)
- I think it would be 64 but i m not sure.
- 8 years agoHelpfull: Yes(0) No(1)
TCS Other Question