login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A031552
Numbers k such that the continued fraction for sqrt(k) has even period and if the last term of the periodic part is deleted the central term is 54.
0
2918, 2942, 2946, 2962, 2966, 2974, 2978, 2994, 2998, 3022, 3046, 3058, 3062, 3086, 3106, 3118, 3126, 3134, 6564, 6573, 6591, 6609, 6621, 6636, 6663, 6693, 6702, 6717, 6729, 6753, 6771, 6774, 6789, 6801, 6807, 6852, 6861, 6879, 6924, 6933, 6951, 7017
OFFSET
1,1
MATHEMATICA
cf54Q[n_]:=Module[{s=Sqrt[n], cf, len}, cf=If[IntegerQ[s], {1}, ContinuedFraction[s] [[2]]]; len=Length[cf]; EvenQ[len]&&cf[[len/2]]==54]; Select[Range[7100], cf54Q] (* Harvey P. Dale, May 13 2022 *)
CROSSREFS
Sequence in context: A081634 A358879 A054830 * A205253 A251353 A036260
KEYWORD
nonn
EXTENSIONS
Definition clarified by Harvey P. Dale, May 13 2022
STATUS
approved