problem16

 

Start with a value of k = 3 , m = Math.pow(2,k) = 8

mystery(8) = 1+mystery(4)
               mystery(4) = 1+ mystery(2)
                               mystery(2) = 1 + mystery(1)
                                                mystery(1) = 0
           = 1 +            1 +             1 +              0 = 3

a) not 0

c) not m (m=8)
d) not 8/2+ 1 = 5
e) not 3/2+1 = 2

so it must be b) k