login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A031702 Numbers k such that the least term in the periodic part of the continued fraction for sqrt(k) is 24. 1
145, 578, 1299, 2308, 3605, 5190, 7063, 9224, 11673, 14410, 17435, 20748, 24349, 28238, 32415, 36880, 41633, 46674, 52003, 57620, 63525, 69718, 76199, 82968, 90025, 97370, 97994, 105003, 112924, 121133, 129630, 138415, 147488, 156849, 166498 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
The continued fraction for sqrt(97994) is 313, [25, 24, 25, 626], where the smallest term of the periodic part is 24, so 97994 belongs to the sequence.
MATHEMATICA
Select[Range[200000], !IntegerQ[Sqrt[#]] && Min[ContinuedFraction[Sqrt[#]][[2]]] == 24&] (* Vincenzo Librandi, Feb 06 2012 *)
PROG
(Python)
from sympy import continued_fraction_periodic
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
CROSSREFS
Cf. A031424.
Sequence in context: A207058 A116208 A211470 * A297732 A354669 A296972
KEYWORD
nonn
AUTHOR
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 29 05:43 EDT 2024. Contains 371264 sequences. (Running on oeis4.)