editing
approved
editing
approved
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 77.
approved
editing
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 77.
reviewed
approved
proposed
reviewed
editing
proposed
Numbers n k such that the continued fraction for sqrt(nk) has even period and central term 77.
approved
editing
editing
approved
cf77Q[n_]:=Module[{s=Sqrt[n], cf, len}, cf=If[IntegerQ[s], {1}, ContinuedFraction[ s][[2]]]; len=Length[cf]; EvenQ[len] && cf[[len/2]] == 77]; Select[Range[25000], cf77Q] (* Harvey P. Dale, Oct 13 2015 *)
cf77Q[n_]:=Module[{s=Sqrt[n], cf, len}, cf=If[IntegerQ[s], {1}, ContinuedFraction[ s][[2]]]; len=Length[cf]; EvenQ[len]&&cf[[len/2]]==77]; Select[Range[25000], cf77Q] (* Harvey P. Dale, Oct 13 2015 *)
approved
editing