An Elementary Continued Fractions Problem.
September 7, 2011
To celebrate the 15k people who have, for whatever reason, happened upon this blog, I thought I’d post about something kind of fun. I was going through some of my older books to try to see what I could give away, and I happened upon the sequence
which should look familiar to you. Something kind of fun and mean to do is to tell someone who doesn’t know much math to evaluate this. After they’ve had some time to get frustrated, you note that if we let
then then the original fraction is just . Of course, this has an easy solution; , or which is known as the golden ratio. Similar looking "regular" continued fractions can be computed similarly.
For ease of notation, I will say when I mean
which is standard notation. Note the semi-colon. This means the golden ratio is .
It’s kind of neat to see what kinds of things you get with things of the form where I have purposely used here to hint that even complex values may be used. Try out a few values. Here’s a list of things to try:
- Try to get a rational number.
- Try to get a purely imaginary number. Is it possible?
- What kinds of numbers will give you rational numbers? (There is actually a theorem about this!)
- Can you ever obtain 0? Why not? Is it obvious from how we construct ? It it obvious from the solution to the quadratic?
- (Something I haven’t tried yet!) Do any complex numbers give you real numbers? Do any complex numbers give you rational numbers? (After reading below, is analytic? What does it look like in the complex plane?)
The nice thing about this problem is that it is actually accessible for a student in high school who has seen the quadratic formula!
A little edit below, WITH PICTURES!
Brief Edit: I haven’t tried this for any imaginary numbers, but it’s kind of neat to look at the graphs to see what kind of real numbers give what kind of continued fractions. I’m going to call (the function name is, of course, Continued Fractions). In other words,
where notice we have taken "+" in place of in the quadratic formula. This is the significance of the "+" subscript in the function name. I’ll plot below:
The first is from -10 to 10; notice that nice "curvy" behavior near the origin. Notice the near asymptotic behavior in the second quadrant. Notice the near -type behavior in the first quadrant! The second graph shows this off better, now going from -100 to 100. I’ve also graphed the first graph against to show you how close they get.
Of course, this isn’t that crazy. Why not? As we get larger and larger values of , what happens to ? Formally, we can write this function as
so what happens when we put in large values of ? Ultimately, the 4 will "contribute less and less" to the sum, allowing the radical to approximate for positive . Hence, our CF function will approximate for positive . Taking negative , we see that we obtain nearly the same equation, except we now have that will be positive and cancel, leaving us approximating the zero function. Neato.
For kicks, I’m going to also plot the function, which is the corresponding "take the minus in plus or minus in the quadratic formula" part of the continued fraction function above:
Are you surprised? Of course not. Same reasoning as above.
Does this give you a warm geometric feeling in your stomach? It does for me. The most interesting part of the graph is the part where it starts turning upwards; this is where that "4" is really doing something. Kind of neat.