login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A031702 Numbers n such that least term in period of continued fraction for sqrt(n) is 24. 1

%I

%S 145,578,1299,2308,3605,5190,7063,9224,11673,14410,17435,20748,24349,

%T 28238,32415,36880,41633,46674,52003,57620,63525,69718,76199,82968,

%U 90025,97370,97994,105003,112924,121133,129630,138415,147488,156849,166498

%N Numbers n such that least term in period of continued fraction for sqrt(n) is 24.

%H Chai Wah Wu, <a href="/A031702/b031702.txt">Table of n, a(n) for n = 1..10000</a>

%e The continued fraction of sqrt(97994) is 313, [25, 24, 25, 626], where the smallest element of the period is 24, so 97994 belongs in the sequence.

%t Select[Range[200000], !IntegerQ[Sqrt[#]] && Min[ContinuedFraction[Sqrt[#]][[2]]] == 24&] (* _Vincenzo Librandi_, Feb 06 2012 *)

%o (Python)

%o from sympy import continued_fraction_periodic

%o A031702_list = [n for n, s in ((i, continued_fraction_periodic(0,1,i)[-1]) for i in range(1,10**5)) if isinstance(s, list) and min(s) == 24] # _Chai Wah Wu_, Jun 08 2017

%K nonn

%O 1,1

%A _David W. Wilson_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 21 17:36 EDT 2021. Contains 343156 sequences. (Running on oeis4.)