Firstly edit f2 to f1
Use bottom up evaluation it will be very easy to find values i.e, first evaluate f1(2) then f1(3) etc........
when n>1 then use return statement
Base conditions are:-
if(n==1) return n i.e, 1 and if(n==0) return n i.e, 0
Base conditions are used to stop the recursive program otherwise it will fall in infinite loop....
Now how to evaluate f1(2):-
Here n=2 which is greater than 1 so we can use return statement i.e 2*f1(n-1)+3*f1(n-2) = 2*f1(1)+3*f1(0) = 2*1+3*0 = 2
therefore f1(2)=2
Similarly f1(3) = 2*f1(2)+3*f1(1) = 2*2+3*1 = 4+3 = 7 [since f1(2)=2 we computed]
f1(4) = 2*f1(3)+3*f1(2) = 2*7+3*2=14+6=20 [since f1(3)=7 and f1(2)=2]
Computing values this way we get:-
f1(5)=61
f1(6)=182
f1(7)=547
and f1(8)= 1640
Therefore answer will be 1640 and 1640
Time complexity equation:-
T(n)=2*T(n-1)+3*T(n-2)+1 [1 is added for if condition statement]
solving equation by back substitution we get
T(n)=O(2n)
Corrections are welcome.....