<?xml version="1.0" encoding="UTF-8"?>

<record version="1" id="9896">
 <title>table of continued fractions of $\sqrt{n}$ for $1 < n < 102$</title>
 <name>TableOfContinuedFractionsOfSqrtnFor1N102</name>
 <created>2007-08-26 17:59:48</created>
 <modified>2007-08-26 17:59:48</modified>
 <type>Data Structure</type>
<parent id="747">square root</parent>
 <creator id="13766" name="PrimeFan"/>
 <author id="13766" name="PrimeFan"/>
 <classification>
	<category scheme="msc" code="11A25"/>
 </classification>
 <preamble>% this is the default PlanetMath preamble.  as your knowledge
% of TeX increases, you will probably want to edit this, but
% it should be fine as is for beginners.

% almost certainly you want these
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}

% used for TeXing text within eps files
%\usepackage{psfrag}
% need this for including graphics (\includegraphics)
%\usepackage{graphicx}
% for neatly defining theorems and propositions
%\usepackage{amsthm}
% making logically defined graphics
%\usepackage{xypic}

% there are many more packages, add them here as you need them

% define commands here
</preamble>
 <content>The simple continued fractions for the square roots of positive integers (which aren't perfect powers) are non-terminating but they are periodic. In the following table, the square roots of the integers from 2 to 101 (excluding perfect powers) are listed in compact form: first the integer part followed by semicolon, then the periodic part stated once, its individual terms separated by commas. For example, the notation ``14; 14, 28'' for 198 means $$\sqrt{198} = 14 + \frac{1}{14 + \frac{1}{28 + \frac{1}{14 + \frac{1}{28 + \ldots}}}},$$ where the dots mean a periodic repetition of 14 and 28 in the denominators.

\begin{tabular}{|r|l|}
$n$ &amp; Continued fraction of $\sqrt{n}$ \\
2 &amp; 1; 2 \\
3 &amp; 1; 1, 2 \\
5 &amp; 2; 4 \\
6 &amp; 2; 2, 4 \\
7 &amp; 2; 1, 1, 1, 4 \\
8 &amp; 2; 1, 4 \\
10 &amp; 3; 6 \\
11 &amp; 3; 3, 6 \\
12 &amp; 3; 2, 6 \\
13 &amp; 3; 1, 1, 1, 1, 6 \\
14 &amp; 3; 1, 2, 1, 6 \\
15 &amp; 3; 1, 6 \\
17 &amp; 4; 8 \\
18 &amp; 4; 4, 8 \\
19 &amp; 4; 2, 1, 3, 1, 2, 8 \\
20 &amp; 4; 2, 8 \\
21 &amp; 4; 1, 1, 2, 1, 1, 8 \\
22 &amp; 4; 1, 2, 4, 2, 1, 8 \\
23 &amp; 4; 1, 3, 1, 8 \\
24 &amp; 4; 1, 8 \\
26 &amp; 5; 10 \\
27 &amp; 5; 5, 10 \\
28 &amp; 5; 3, 2, 3, 10 \\
29 &amp; 5; 2, 1, 1, 2, 10 \\
30 &amp; 5; 2, 10 \\
31 &amp; 5; 1, 1, 3, 5, 3, 1, 1, 10 \\
32 &amp; 5; 1, 1, 1, 10 \\
33 &amp; 5; 1, 2, 1, 10 \\
34 &amp; 5; 1, 4, 1, 10 \\
35 &amp; 5; 1, 10 \\
37 &amp; 6; 12 \\
38 &amp; 6; 6, 12 \\
39 &amp; 6; 4, 12 \\
40 &amp; 6; 3, 12 \\
41 &amp; 6; 2, 2, 12 \\
42 &amp; 6; 2, 12 \\
43 &amp; 6; 1, 1, 3, 1, 5, 1, 3, 1, 1, 12 \\
44 &amp; 6; 1, 1, 1, 2, 1, 1, 1, 12 \\
45 &amp; 6; 1, 2, 2, 2, 1, 12 \\
46 &amp; 6; 1, 3, 1, 1, 2, 6, 2, 1, 1, 3, 1, 12 \\
47 &amp; 6; 1, 5, 1, 12 \\
48 &amp; 6; 1, 12 \\
50 &amp; 7; 14 \\
51 &amp; 7; 7, 14 \\
52 &amp; 7; 4, 1, 2, 1, 4, 14 \\
53 &amp; 7; 3, 1, 1, 3, 14 \\
54 &amp; 7; 2, 1, 6, 1, 2, 14 \\
55 &amp; 7; 2, 2, 2, 14 \\
56 &amp; 7; 2, 14 \\
57 &amp; 7; 1, 1, 4, 1, 1, 14 \\
58 &amp; 7; 1, 1, 1, 1, 1, 1, 14 \\
59 &amp; 7; 1, 2, 7, 2, 1, 14 \\
60 &amp; 7; 1, 2, 1, 14 \\
61 &amp; 7; 1, 4, 3, 1, 2, 2, 1, 3, 4, 1, 14 \\
62 &amp; 7; 1, 6, 1, 14 \\
63 &amp; 7; 1, 14 \\
65 &amp; 8; 16 \\
66 &amp; 8; 8, 16 \\
67 &amp; 8; 5, 2, 1, 1, 7, 1, 1, 2, 5, 16 \\
68 &amp; 8; 4, 16 \\
69 &amp; 8; 3, 3, 1, 4, 1, 3, 3, 16 \\
70 &amp; 8; 2, 1, 2, 1, 2, 16 \\
71 &amp; 8; 2, 2, 1, 7, 1, 2, 2, 16 \\
72 &amp; 8; 2, 16 \\
73 &amp; 8; 1, 1, 5, 5, 1, 1, 16 \\
74 &amp; 8; 1, 1, 1, 1, 16 \\
75 &amp; 8; 1, 1, 1, 16 \\
76 &amp; 8; 1, 2, 1, 1, 5, 4, 5, 1, 1, 2, 1, 16 \\
77 &amp; 8; 1, 3, 2, 3, 1, 16 \\
78 &amp; 8; 1, 4, 1, 16 \\
79 &amp; 8; 1, 7, 1, 16 \\
80 &amp; 8; 1, 16 \\
82 &amp; 9; 18 \\
83 &amp; 9; 9, 18 \\
84 &amp; 9; 6, 18 \\
85 &amp; 9; 4, 1, 1, 4, 18 \\
86 &amp; 9; 3, 1, 1, 1, 8, 1, 1, 1, 3, 18 \\
87 &amp; 9; 3, 18 \\
88 &amp; 9; 2, 1, 1, 1, 2, 18 \\
89 &amp; 9; 2, 3, 3, 2, 18 \\
90 &amp; 9; 2, 18 \\
91 &amp; 9; 1, 1, 5, 1, 5, 1, 1, 18 \\
92 &amp; 9; 1, 1, 2, 4, 2, 1, 1, 18 \\
93 &amp; 9; 1, 1, 1, 4, 6, 4, 1, 1, 1, 18 \\
94 &amp; 9; 1, 2, 3, 1, 1, 5, 1, 8, 1, 5, 1, 1, 3, 2, 1, 18 \\
95 &amp; 9; 1, 2, 1, 18 \\
96 &amp; 9; 1, 3, 1, 18 \\
97 &amp; 9; 1, 5, 1, 1, 1, 1, 1, 1, 5, 1, 18 \\
98 &amp; 9; 1, 8, 1, 18 \\
99 &amp; 9; 1, 18 \\
101 &amp; 10; 20 \\
\end{tabular}

As the table shows, the periodic part ends with $2 \lfloor \sqrt{n} \rfloor$.</content>
</record>
