GATE CSE
First time here? Checkout the FAQ!
x
+1 vote
36 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 (76k points)   | 36 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.4k 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 (8.1k points)  
edited by


Top Users Mar 2017
  1. rude

    4272 Points

  2. sh!va

    2994 Points

  3. Rahul Jain25

    2804 Points

  4. Kapil

    2608 Points

  5. Debashish Deka

    2254 Points

  6. 2018

    1514 Points

  7. Vignesh Sekar

    1344 Points

  8. Akriti sood

    1262 Points

  9. Bikram

    1258 Points

  10. Sanjay Sharma

    1016 Points

Monthly Topper: Rs. 500 gift card

21,454 questions
26,775 answers
60,982 comments
22,994 users