2

I found this link on how to typeset continued fractions. The form I want is the following: enter image description here with dots in between as illustrated. Thanks in advance.

Eureka
  • 1,013
  • 1
    Have you taken a look at https://tex.stackexchange.com/questions/43402/how-to-lower-last-term-in-a-continued-fraction-after-a-diagonal-row-of-dots/43412#43412 ? – aoi Feb 23 '19 at 03:24

1 Answers1

3
\documentclass{article}
\usepackage{stackengine,amsmath}
\stackMath
\begin{document}
\[
a_0 + \frac{1\kern6em}{\displaystyle
  a_1 + \frac{1\kern5em}{\displaystyle
    a_2 +\stackunder{}{\ddots\stackunder{}{\displaystyle
      {}+ \frac{1}{\displaystyle
        a_{n-1} + \frac{1}{a_n}}}
}}}
\]
\end{document}

enter image description here