[Tex/LaTex] Continued fractions

fractions

How do I make this in LaTeX? I keep losing track of the brackets.

enter image description here

Best Answer

The following code is "full" LaTeX:

\documentclass{article}
\usepackage{amsmath} % for "\cfrac" macro
\begin{document}
\[
e=2+\cfrac{1}{1+\cfrac{1}{2+\cfrac{1}{ 1+\cfrac{1}{1+\cfrac{1}{4+\cfrac{1}{1+\cfrac{1}{1+\cfrac{1}{6+\cdots}}}}}}}}
\]
\end{document}

enter image description here

If you want, you can copy and paste the math part -- the stuff between \[ and \] -- into latex2png.com.

Related Question