1
$\begingroup$

I've read recently that any number with infinite continued fraction is irrational. See this continued fraction below

https://www.wolframalpha.com/input/?i=continued+fraction+of+the+cosine If I substitute x for $\frac{\pi}{2}$ I will get zero on the left side, but the continued fraction is infinite because its convergent ones never cancel out. Could anyone explain me this?

$\endgroup$
5
  • 1
    $\begingroup$ Please write down what you think you get when you "substitue $1$ for $\pi/2$". Then we may be able to help you. $\endgroup$
    – Somos
    Nov 8, 2017 at 17:45
  • 1
    $\begingroup$ @Somos You're an optimist. $\endgroup$
    – user436658
    Nov 8, 2017 at 18:42
  • 1
    $\begingroup$ What does "its convergent ones never cancel out" mean ? $\endgroup$
    – Peter
    Nov 9, 2017 at 10:30
  • 3
    $\begingroup$ What you must have read is that a number with an infinite simple continued fraction expansion is irrational. A continued fraction is "simple" if all the partial numerators are ones. $\endgroup$
    – bof
    Nov 9, 2017 at 11:01
  • 1
    $\begingroup$ Any rational number can be expanded as a simple continued fraction in two slightly different ways, and those continued fractions are finite. Any irrational number has a unique expansion as a simple continued fraction, and it's infinite. (The continued fraction is periodic if and only if the irrational number is quadratic.) $\endgroup$
    – bof
    Nov 9, 2017 at 11:05

1 Answer 1

0
$\begingroup$

Answered (in general) by @bof in a comment:

[...] a number with an infinite simple continued fraction expansion is irrational. A continued fraction is "simple" if all the partial numerators are ones.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .