For the following recursive functions, Prove that am,n = m · n. Here am,n is defined recursively for (m, n) ∈ N × N.
am.n = { 0 if m=0
n+am-1,n if m!=0
For m=0m=0m=0 formula is obviously fulfilled. Check it for m>0m>0m>0 :
am,n=n+am−1,n=(n+n)+am−2,n=…=n⋅m+a0,n=n⋅ma_{m,n}=n+a_{m-1,n}=(n+n)+a_{m-2,n}=\ldots=n\cdot m+ a_{0,n}=n\cdot mam,n=n+am−1,n=(n+n)+am−2,n=…=n⋅m+a0,n=n⋅m
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment