Thanks for stopping by to help with my question. I'm trying to mimic what my professor did in our notes, putting a box around a specific portion of a continued fraction, shown below:
Here's the LaTex code I was trying to use for the continued fraction itself (sorry, I don't know how to format it so it looks nice like other questions I've seen on here):
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\begin{document}
$$X:=\cfrac{1}{a+\cfrac{1}{a+\cfrac{1}{a+\cfrac{1}{a+\cfrac{1}{a+\cdots}}}}}$$
\end{document}
Any help you might be able to provide would be much appreciated!