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!)
A351139 a(n) is the least k such that the continued fraction for sqrt(k) has periodic part [r, 1, 2, ..., n-1, n, n-1, ..., 1, 2r] for some positive integer r. 1
3, 14, 216, 25185, 23287359, 1953082923, 81112983931776, 6667182474680388, 699567746120736710880, 855784807474766398870755, 51592564054278677032777194015, 1474855822717073602911008555048040, 23175672095781915301598668218548941215, 474577479777785868138090462593743556930231 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(3) = 216 because the continued fraction of sqrt(216) has periodic part [14; 1, 2, 3, 2, 1, 28] and this is the least number with this property.
PROG
(Python)
from itertools import count
from sympy.ntheory.continued_fraction import continued_fraction_reduce
def A351139(n):
if n == 2:
return 14
for r in count(1):
if (k := continued_fraction_reduce([r, list(range(1, n+1))+list(range(n-1, 0, -1))+[2*r]])**2).is_integer:
return k # Chai Wah Wu, Feb 09 2022
CROSSREFS
Cf. A013646.
Sequence in context: A288555 A288563 A081383 * A001320 A133028 A144985
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 April 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)