这道题关于嵌套的,不知道怎么得出13的

这道题关于嵌套的,不知道如何得出13的?
#include<stdio.h>
int fun(int n,int *s)
{
int f1,f2;
if(n==0||n==1)
*s=1;
else
{
fun(n-2,&f2);
fun(n-1,&f1);
*s=f1+f2;
}
}
 void main()
{
int x;
fun(6,&x);
printf("\n%d",x);
}

------解决方案--------------------
(1 + 1) + (1 + (1 + 1)) = 5;
(1 + (1 + 1)) = 3;
((1 + 1) + (1 + (1 + 1)) = 5;
5 + 3 + 5 = 13