Q1
If
f(x)=x+f(x−2) when
x>1,
f(0)=0, and
f(1)=1, what is
f(7)?
Q2
If
f(x)=2⋅f(x−1)−f(x−2) with
f(0)=3 and
f(1)=5, what is
f(5)?
Q3
If
f(x,y)=f(x−1,y)+f(x,y−1),
f(0,y)=y,
f(x,0)=x, find
f(2,3).
Q4
If
f(x)=f(x−1)+f(x−3),
f(1)=1,
f(2)=1,
f(3)=1, find
f(7).
Q5
If
h(x)=h(x−1)⋅h(x−2) with
h(1)=2 and
h(2)=3, what is
h(5)?
Q6
If
f(n) returns
f(n/2)+1 when
n>1, and
f(1)=0, what is
f(32)?
Q7
If
f(n)=f(n−1)+2n−1 and
f(1)=1, find
f(6).
Q8
If
f(n)=n⋅f(n−1) and
f(1)=1, find
f(6).
Q9
If
f(x)=3⋅f(x−1)+2 and
f(0)=1, find
f(4).
Q10
If
g(x)=g(x−1)+2⋅g(x−2) and
g(0)=1,
g(1)=1, find
g(5).
Q11
If
f(x)=2 when
x≤0, and
f(x)=f(x−1)+f(x−3) otherwise, find
f(5).
Q12
If
f(a,b) returns
a when
b=0, and returns
f(a+1,b−1) otherwise, find
f(3,4).