The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+1 vote
53 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 (112k points) | 53 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 (11.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 (16.3k points)
edited by

Related questions



Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

44,337 questions
49,834 answers
164,746 comments
65,874 users