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!)
A096488 Number of different terms in a period of continued fraction for square root of n-th repunit. 1
2, 3, 2, 8, 2, 37, 2, 76, 2, 217, 2, 870, 2, 583, 2, 5034, 2, 28494, 2, 10058, 2, 187966, 2, 383291, 2, 340992, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

2,1

LINKS

Table of n, a(n) for n=2..28.

MATHEMATICA

Do[Print[Length[Union[Last[ContinuedFraction[((-1+10^n)/9)^(1/2)]]]]], {n, 2, 18}]

PROG

(Python)

from sympy.ntheory.continued_fraction import continued_fraction

from sympy import sqrt

def A096488(n): return len(set(continued_fraction(sqrt((10**n-1)//9))[-1])) # Chai Wah Wu, Mar 30 2021

CROSSREFS

Cf. A002275, A096485, A096487.

Sequence in context: A139011 A338770 A063708 * A011280 A136193 A187789

Adjacent sequences:  A096485 A096486 A096487 * A096489 A096490 A096491

KEYWORD

nonn,more

AUTHOR

Labos Elemer, Jun 25 2004

EXTENSIONS

Name edited by Michel Marcus, Aug 22 2019

a(19)-a(22) from Daniel Suteu, Aug 22 2019

a(23)-a(28) from Chai Wah Wu, Apr 05 2021

STATUS

approved

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 October 22 11:57 EDT 2021. Contains 348168 sequences. (Running on oeis4.)