OFFSET
1,1
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
EXAMPLE
The simple continued fraction expansion of sqrt(73) = [8, 1, 1, 5, 5, 1, 1, 16, ...] of odd period 7 with a pair of central terms both equal to 5. Another example is sqrt(373) = [19, 3, 5, 5, 3, 38, ...] of odd period 5 with a pair of central terms both equal to 5. - Michael Somos, Apr 03 2014
MATHEMATICA
opct5Q[n_]:=Module[{s=Sqrt[n], cf, len}, If[IntegerQ[s], cf={1, 1}, cf= ContinuedFraction[s][[2]]]; len=Length[cf]; OddQ[len] && cf[[Floor[len/2]]] == cf[[Ceiling[len/2]]]==5]; Select[Range[10000], opct5Q] (* Harvey P. Dale, Feb 22 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Corrected and extended by Harvey P. Dale, Feb 22 2013
STATUS
approved