OFFSET
1,1
COMMENTS
In a recent paper, Justin Thomas, Julian Rosen, and I show that this is equivalent to the following criterion: let d be the integer part of the square root. Then sqrt(k) has period at most 2 if and only if 2d/(k - d^2) is an integer.
REFERENCES
Justin Thomas, Krishnan Shankar, Julian Rosen, "Continued Fractions, Square Roots and the orbit of 1/0 on the boundary of the hyperbolic plane", preprint.
LINKS
EXAMPLE
The first term is 2 because sqrt(2) is irrational and for k=2, d=1, 2d/(k - d^2) = 1 is an integer.
CROSSREFS
KEYWORD
nonn
AUTHOR
Krishnan Shankar (shankar(AT)math.ou.edu), Apr 17 2006
STATUS
approved