Let a and b are integer and suppose Q(a, b) is defined recursively by
Q(a - b, b 2) a if a b
5 if a b
f (n)
Find Q(2, 7), Q(5, 3) and Q(15, 2)
Answers
Answered by
1
Answer:
Q=(3-2,2×2)×3
Q=(1×4)×3
Q=(4)×3
Q=4×3
Q=12.,
Q(2,7)
=12(2,7)
=12×2+12×7
=24+84
=108.,
Q(5,3)
=12(5,3)
=12×5+12×3
=60+36
=96.,
Q(15,2)
=12(15,2)
=12×15+12×2
=180+24
=204.
Similar questions