a(n) is the least k such that the continued fraction for sqrt(k) has periodic part [r, 1, 2, ..., n-1, n, n-1, ..., 1, 2r] for some positive integer r.

A351139

a(n) is the least k such that the continued fraction for sqrt(k) has periodic part [r, 1, 2, ..., n-1, n, n-1, ..., 1, 2r] for some positive integer r.

Terms

    a(0) =3a(1) =14a(2) =216a(3) =25185a(4) =23287359a(5) =1953082923

External references