login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A062345 Length of period of continued fraction expansion of square root of 3^n-1. 0
1, 2, 1, 2, 10, 2, 19, 2, 25, 2, 156, 2, 149, 2, 580, 2, 716, 2, 6461, 2, 2485, 2, 123256, 2, 64, 2, 8638, 2, 722190, 2, 3804214, 2, 1783536, 2, 3550696, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Table of n, a(n) for n=1..36.

EXAMPLE

The period of sqrt(242) contains 10 terms: [1,1,3,1,14,1,3,1,1,30]

MAPLE

with(numtheory): [seq(nops(cfrac(sqrt(3^k-1), 'periodic', 'quotients')[2]), k=1..16)];

MATHEMATICA

Table[Length[Last[ContinuedFraction[Sqrt[ -1+3^u]]]], {u, 1, 36}]

CROSSREFS

Cf. A059866, A059926, A059927, A062328.

Sequence in context: A225432 A086382 A249416 * A077098 A069238 A248977

Adjacent sequences:  A062342 A062343 A062344 * A062346 A062347 A062348

KEYWORD

nonn

AUTHOR

Labos Elemer, Jul 13 2001

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified October 18 10:28 EDT 2017. Contains 293507 sequences.