Define a function A: N x N -> N as follows: A(m, n) ={2n, if m= 0; 0, if m≥1 and n= 0; 2, if m≥1 and n= 1; A(m-1, A(m, n-1)), if m≥1 and n≥2
(a) Calculate the following:
(i)A(1,0)
(ii)A(0,1)
(iii)A(1,1)
(iv)A(2,2).
Suppose a friend asks you to list out all relations on the set S = {n|n ∈ Z+ and n≤1000}. Find the number of number of relations on S. Is your friend making a reasonable request?
How many solutions are there to the inequality x1+x2+x3+x4≤15, where x1,x2,x3, and x4 are nonnegative integers?
Hint: Introduce an extra variable x5 and consider x1+x2+x3+x4+x5 = 15.