Recursively seeking the first 30 items of sequence 1 1 3 5 9 17 31 57

Recursively seeking the first 30 items of sequence 1 1 3 5 9 17 31 57

#include"stdio.h"
int fib(int n)
{
if(n==1||n==2||n==3)
return 1;
else
return fib(n-1)+fib(n-2)+fib(n-3);
}
main()
{
int n;int i=1;
while(i