Wednesday, October 1, 2008

Problem Of The Week 36

Find the value of the expression ..........|||||||x-2|+2|-2|+2|..........

9 comments:

  1. That would be x.

    ReplyDelete
  2. hmm. A re look at the question, I'm in a quandary.
    Depends on where the series ends and on the sign of x.
    When x>0 and when it ends with +2 it is x+2
    When x>0 and when it ends with -2 it is x
    When x<0 and the series end with -2, it is |x|+2
    when x<0 and the series ends with +2, it is |x|+4

    ReplyDelete
  3. aah!Again a silly mistake .
    When x>0 and when the series ends in +2 it is x
    When x>0 and ends with -2, it's x-2
    Superb effort implex. Keep 'em coming!

    ReplyDelete
  4. It can also have two additional values, 0 and 2 when x=2.

    ReplyDelete
  5. @Riyaziq
    All the cases fall into only those four categories. Even for 2.

    ReplyDelete
  6. None of the solutions have been sastisfactory
    Let |x-2|=y y>=0

    after every even number of mods we will again get y ( as y+2 will be positive as y is so )

    now if the series ends at +2
    answer will be y+2 means |x-2|+2

    if the series ends at -2
    we will get y or |x-2|

    The solution ends here, there is no need to do anything else
    all the solutions will come in the ambit of this !

    Cheers !

    ReplyDelete
  7. for x>=2 and
    even no. of mods...ans='x'
    odd no. of mods...ans='x-2'

    for x<2 and
    even no. of mods...ans='2-x'
    odd no. of mods...ans='4-x'

    ReplyDelete
  8. i think my soln...coincides with varun...[;)]

    ReplyDelete