login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A031527
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 29.
0
843, 859, 863, 867, 883, 887, 907, 911, 919, 947, 959, 3368, 3392, 3424, 3456, 3488, 3520, 3552, 3584, 3616, 3648, 3656, 3680, 3688, 3712, 3776, 3840, 7575, 7635, 7647, 7719, 7779, 7851, 7863, 8079, 8223, 8355, 8367, 8427, 8439, 8511, 8571, 8583, 8643
OFFSET
1,1
MATHEMATICA
cf29Q[n_]:=Module[{s=Sqrt[n], cf, len}, cf=If[IntegerQ[s], {1}, ContinuedFraction[ s][[2]]]; len=Length[cf]; EvenQ[len]&& cf[[len/2 ]] == 29]; Select[Range[9000], cf29Q] (* Harvey P. Dale, Jul 18 2021 *)
CROSSREFS
Sequence in context: A031736 A154473 A093242 * A252568 A045243 A368778
KEYWORD
nonn
STATUS
approved