I-a. Some functions
As these will be used in the continued fraction evaluations below, recall the Riemann zeta function $\zeta(s),$ and Dirichlet beta function $\beta(s),$ \begin{align} \zeta(s) &= \sum_{n=1}^\infty\frac{1}{n^s}\\ \beta(s) &= \sum_{n=1}^\infty\frac{(-1)^{n-1}}{(2n-1)^s} \end{align}
$$\beta(s) = \sum_{n=1}^\infty\frac{(-1)^{n-1}}{(2n-1)^s}$$
I-bII. Zagier's 6 sporadic sequences
Inspired by Apery's result in proving the irrationality of $\zeta(3)$ using certain integer sequences, Zagier (via a computer) searched for sequences with recurrence relation and deg-$2$ coefficients in $n$ of form,
I-cIII. Continued fractions
where $F_k(n)$$F_i(n)$ are polynomials all of degree $m$$k$. Define two polynomial functions using the rules,
\begin{align} p(n) &= F_2(n)\\ q(n) &= F_1(n)\, F_3(n+1) \end{align}\begin{align} p(n) &= F_1(n-1)\, F_3(n)\\ q(n) &= F_2(n) \end{align}
which implies $q(n)$$p(n)$ has degree twice that of $p(n)$$q(n)$. Define the continued fractioncontinued fraction,
$$C=\cfrac{1}{p(0) + \cfrac{q(0)}{p(1) + \cfrac{q(1)}{p(2)+ \cfrac{q(2)}{p(3)+\ddots } }}}$$$$C =\cfrac{1}{q(0) + \cfrac{p(1)}{q(1) + \cfrac{p(2)}{q(2)+ \cfrac{p(3)}{q(3)+\ddots } }}}$$
then itMore compactly,
$$C(m) = \frac1{q(0) + \large{\underset{n=1}{\overset{m}{\mathrm K}} ~ \frac{p(n)}{q(n)}}}$$
or in Mathematica notation,
$$C(m) = \frac1{q(0) + \text{ContinuedFractionK}[p(n),\;q(n),\, \text{{n, 1, m}}]}$$
It seems $C$ may have a nice closed-form based on the properties of the recurrence relation. Examples below.
IIIV. Degree 2
\begin{align} p(n) &= \color{blue}{an^2+an+b}\\ q(n) &= \color{blue}{(n+1)^2}\times \color{blue}{c(n+1)^2} = c(n+1)^4 \end{align}\begin{align} p(n) &= \color{blue}{n^2}\times \color{blue}{cn^2} = cn^4\\ q(n) &= \color{blue}{an^2+an+b} \end{align}
$$C_2(a,b,c)=\cfrac{1}{p(0) + \cfrac{q(0)}{p(1) + \cfrac{q(1)}{p(2)+ \cfrac{q(2)}{p(3)+\ddots } }}}$$$$C_2(a,b,c) = \frac1{q(0) + \large{\underset{n=1}{\overset{\infty}{\mathrm K}} ~ \frac{p(n)}{q(n)}}}$$
Note: The first evaluation is valid since it was found by Apery, while the second (in $\color{green}{\text{green}}$) is courtesy of H. Cohen's answer. (though itUpdate: May 22, 2023) It turns out $C_2(-9,-3,-27)$ has slowsix limits convergence, one of which is why I missed it)divergent. See this MO post.
IIIV. Degree 3
\begin{align} r(n) &= -(2n+1)(an^2+an+a-2b)\\ s(n) &= (n+1)^3\times(-a^2-4c)(n+1)^3 = -(a^2+4c)(n+1)^6 \end{align}\begin{align} r(n) &= n^3\times(-a^2-4c)n^3 = -(a^2+4c)n^6\\ s(n) &= -(2n+1)(an^2+an+a-2b) \end{align}
$$C_3(a,b,c)=\cfrac{1}{r(0) + \cfrac{s(0)}{r(1) + \cfrac{s(1)}{r(2)+ \cfrac{s(2)}{r(3)+\ddots } }}}$$$$C_3(a,b,c) = \frac1{s(0) + \large{\underset{n=1}{\overset{\infty}{\mathrm K}} ~ \frac{r(n)}{s(n)}}}$$
IVVI. Degree 4 & 5
where $P_i$ are polynomials of deg-$4$. Why?Why?
V. Degree 5
But Zudilin found a 3-term recurrence,
VIVII. Questions