GATE CSE
First time here? Checkout the FAQ!
x
+1 vote
42 views
Consider the funciton $M$ defined as follows:

$M(n) = \begin{cases} n-10 & \text{ if } n > 100 \\ M(M(n+11)) & \text{ if } n \leq 100 \end{cases}$

Compute the following:

M(99)
asked in Others by Veteran (79.1k points)   | 42 views

2 Answers

+2 votes
Best answer
M(99) $= M(M(99 + 11))\\ = M(M(110))\\ =M(100)\\ = M(M(111))\\ = M(101)\\ = 91$
answered by Boss (9.6k points)  
selected by
0 votes
solving without using any Algorithim.

$M\left ( 100 \right )$=$M\left ( M\left ( 99 + 11 \right ) \right )$

                              =$M\left ( 101 \right )$

                                           $\because M\left ( 111 \right )=111-10=101$  
                               

                               =$91$

Now, $M \left ( 99 \right )$ = $M \left ( \left M ( 99+11 \right ) \right )$

                                  =$M\left ( M\left ( 110 \right )\right ) $

                                  =$M\left ( 100 \right )=91$
answered by Boss (9.4k points)  
edited by


Top Users Aug 2017
  1. Bikram

    4892 Points

  2. ABKUNDAN

    4704 Points

  3. akash.dinkar12

    3480 Points

  4. rahul sharma 5

    3158 Points

  5. manu00x

    3012 Points

  6. makhdoom ghaya

    2470 Points

  7. just_bhavana

    2382 Points

  8. stblue

    2130 Points

  9. Tesla!

    2066 Points

  10. joshi_nitish

    1758 Points


25,009 questions
32,131 answers
74,801 comments
30,179 users