Repeating Continued Fractions

The continued fraction expansion of a quadratic irrational is eventually periodic; the converse is also true.
The repeating sequence, the initial part of the continued fraction form, the value, and the first few convergents to that value are shown.

(30 lines omitted)

Additional Information:
The continued fraction expansions of the square roots of the integers that are not perfect squares possess the so-called "palindromic property". That means that their periodic element sequences without the last element are palindromic (i. e., can be reversed), and the last element is twice the initial term. For example, the continued fraction expansion of is {5, {1, 1, 3, 5, 3, 1, 1, 10}}. The sequence 1, 1, 3, 5, 3, 1, 1 is palindromic, and the 10 is two times the initial 5.
The following shows this for the first 200 integers:
DeleteCases[ContinuedFraction@Sqrt@Range@200, {_}]
http://www.joma.org/mathDL/22/?pa=content&sa=viewDocument&nodeId=3154
comments
 
Powered by Wolfram Mathematica
Give us your feedback
Give us your feedback

Source page:




 often  occasionally  never

Note: Please do not include anything you consider confidential or proprietary. Your message and contact information may be shared with the author of any specific Demonstration for which you give feedback, but will not otherwise be published or distributed.
Privacy Policy »

Note: To run this Demonstration you need the free
Mathematica Player
or Mathematica 7+
Download or upgrade to Mathematica Player 7
I already have Mathematica Player or Mathematica 7+