|
| |
|
|
A059855
|
|
Quotient cycle lengths in continued fraction expansion of Sqrt(n^2+4).
|
|
0
| |
|
|
1, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2, 5, 2
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,2
|
|
|
FORMULA
| with(numtheory): [seq(nops(cfrac(sqrt(k^2+4), 'periodic', 'quotients')[2]), k=1..100)];
|
|
|
EXAMPLE
| For even numbers 2, for odds 5 is the length of cycles: n=96,97 the integer parts and cycles are: [96],[48,192]] and [97],[48, 1, 1, 48, 194] resp. Inside cycles Floor[n/2],1,1 and 2n arise.
|
|
|
CROSSREFS
| A002496, A005574, A056899, A049423, A056903, A056905.
Sequence in context: A151871 A010695 A021400 * A082881 A104289 A177435
Adjacent sequences: A059852 A059853 A059854 * A059856 A059857 A059858
|
|
|
KEYWORD
| nonn
|
|
|
AUTHOR
| Labos E. (labos(AT)ana.sote.hu), Feb 27 2001
|
| |
|
|