login
A031612
Numbers k such that the continued fraction for sqrt(k) has odd period and if the last term of the periodic part is deleted the two central terms are both 24.
0
145, 7274, 11962, 18077, 18617, 26413, 32986, 33349, 34081, 35194, 42314, 44389, 45233, 54185, 55117, 65977, 68041, 69085, 77258, 77813, 78929, 81754, 91226, 91829, 94261, 94874, 95489, 123341, 140837, 141586, 143090, 145361, 146122, 147650
OFFSET
1,1
MATHEMATICA
cf24Q[n_]:=Module[{s=Sqrt[n], cf, len}, cf=If[IntegerQ[s], {1, 1}, ContinuedFraction[ s][[2]]]; len=Length[cf]; OddQ[len] && cf[[(len+1)/2]] == 24]; Select[Range[150000], cf24Q] (* Harvey P. Dale, Mar 17 2016 *)
CROSSREFS
Sequence in context: A018232 A192842 A012813 * A226849 A097730 A283520
KEYWORD
nonn
EXTENSIONS
Terms and definition corrected by Harvey P. Dale, Mar 17 2016
STATUS
approved