## Convert Decimals to Continued Fractions

continued fraction is a special complex point. a0, a1, a2,... an,... If both are integer numbers, they are called infinite connected points and finite connected points, respectively. Abbreviated as a0, a1, a2,... an... And a0, a1, a2... , an. In general, one finite connected point means one rational number, and one infinite connected point means one irrational number. a0, a1, a2,... an... both are real numbers, and the formality connected points can be called infinite and finite connected points respectively. Modern math Calculator needs, can also connect the point a0, a1, a2,... an... Take a polynomial with x as the argument. In modern Calculator math, it is often related to some differential Equation, difference Equation, and some recursive relations related to Function construction applications.

Thepoint-connected notation avoids both of these problems with the real number representation. Let us consider how to describe one number such as 415/93, which is about 4.4624. It's about 4, but it's actually a little bit more than 4, about 4 + 1/2. But 2 in the denominator is not accurate; More accurately, the denominator is a little more than 2, about 2 + 1/6, so 415/93 is approximately 4 + 1/(2 + 1/6). But 6 in the denominator is not accurate; More accurately, the denominator is a little bit more than 6, so it's actually 6 plus 1/7. So 415/93 is actually 4+1/(2+1/(6+1/7)). It's accurate.

Remove the redundant part of expression 4 + 1/(2 + 1/(6 + 1/7)) to receive token [4; 2, 6, 7]。