Evaluate the continued fraction [1,2,3,1,4,1,4,1,4...]
I'm not sure how to do this any help would be great.
c=0;i=0;p=0;d=reverse(1,2,3,1,4,1,4,1,4,1,4);c=1/(d[i] +c);printc;p=p+1;i++;if(i >Total =",p
1 / 4 4 / 5 5 / 24 24 / 29 29 / 140 140 / 169 169 / 816 816 / 985 985 / 3771 3771 / 8527 8527 / 12298