Question: Continued fraction

f := z -> 1 + z/(1 + z^2/(1 + z^3/(1 + z^4/(1 + z^5/(1 + z^6/(1 + z^7))))))

 

Hi,do you know how to write a loop that would create such a continued fraction?

Please Wait...