GATE CSE
First time here? Checkout the FAQ!
x
+1 vote
40 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 (76.3k points)   | 40 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 Apr 2017
  1. akash.dinkar12

    3660 Points

  2. Divya Bharti

    2576 Points

  3. Deepthi_ts

    2040 Points

  4. rude

    1966 Points

  5. Tesla!

    1768 Points

  6. Debashish Deka

    1614 Points

  7. Shubham Sharma 2

    1610 Points

  8. Arunav Khare

    1464 Points

  9. Arjun

    1440 Points

  10. Kapil

    1426 Points

Monthly Topper: Rs. 500 gift card

22,084 questions
28,059 answers
63,274 comments
24,158 users