Fi & Lu  Area  Algebra Trigonometry  Functions  Complex Numbers  Calculus

Fi and Lu add up

Fi had just learned to add. Her parents wouldn’t let her have any more screen time, so she was really, really bored. She mindlessly decided to do some addition problems…

0+1=1
1+1=2
1+2=3
2+3=5
3+5=8
5+8=13
8+13=21

The numbers seemed to get bigger faster and faster. She knew a little about ratios, and wondered how the ratios between successive numbers changed. She asked her big sister Lu to help her.

Lu knew about fractions and the number line, so she helped Fi plot the ratios. They all seemed to be between 1 and 2, so this is what she drew:

The ratios seemed to be getting closer and closer to some particular number between 1 and 2, with each successive ratio somewhere between the last two. Grandpa showed them this zoom-in

But what was the exact ratio? Their mom Goldie showed them a little algebra to figure it out…

Mom’s Math

Goldie said, “Let’s name the ratio after Fi, and use the Greek letter \(\phi\). If some number well into the sequence is \(n\), then the next number is pretty much \(n \times \phi\), and the number after that is about \(n \times \phi \times \phi\). But we know that the sum of those first two is the third: \(n + n\phi = n\phi^2\). We can divide by \(n\) and get \(1+\phi = \phi^2\). This gives the quadratic equation \(\phi^2-\phi-1 = 0\), and, since we know \(\phi > 1\), the solution, using the quadratic formula, is \(\phi = \frac{1+\sqrt{5}}{2}\).”

Fi and Lu decided to name \(\phi\) after their mom, so they called it the Golden ratio. It turns out that \(\phi\) is the most irrational number in the sense that the sequence of “best” nearby fractions approaches it as slowly as possible. (A nearby fraction is “best” if no fraction with an equal or smaller denominator is closer.)

We can use \(\phi\)’s quadratic equation to see that \(\phi = \frac{\phi^2}{\phi} = \frac{\phi+1}{\phi} = 1+\frac{1}{\phi}\), or \(\frac{1}{\phi} = \phi-1\). So if you have a rectangle whose sides have a ratio of \(\phi\), and remove a square, the remaining rectangle is similar to the original one!

Lu’s Sequence

Lu wondered what would happen if she started with different numbers, and decided to try 2 and 1. (This was the first pair that didn’t just produce Fi’s sequence.)

2+1=3
1+3=4
3+4=7
4+7=11
7+11=18
11+18=29

More Mom’s Math

Goldie suggested writing the nth number in Fi’s sequence as \(f_n\) and the nth number in Lu’s sequence as \(l_n\). With that notation, \(f_{n+1} = f_n + f_{n-1}\) and \(l_{n+1} = l_n + l_{n-1}\), and this addition property determines the sequences when combined with their initial values (\(f_0 = 0\), \(f_1=1\), \(l_0 = 2\), \(l_1=1\)). She pointed out that \(\phi\) and \(1-\phi = (-\phi)^{-1}\) are the two solutions to the quadratic equation \(x^2=x+1\) and so the geometric sequences \(\phi^n\) and \((-\phi)^{-n}\) each have the same addition property: \(\phi^{n+1} = \phi^n + \phi^{n-1}\) and \((-\phi)^{-(n+1)} = (-\phi)^{-n} + (-\phi)^{-(n-1)}\). It is easy to see that any linear combination of \(\phi^n\) and \((-\phi)^{-n}\) will also have that property. In particular, \(f_n = \frac{\phi^n-(-\phi)^{-n}}{\sqrt{5}}\) and \(l_n = \phi^n+(-\phi)^{-n}\). All we need to verify those formulas is to check that they’re true for \(n=0\) and \(n=1\). We can then conclude that they’re true for all integers (both positive and negative). This is called bidirectional induction.

Bidirectional induction on \(n\) can verify that \(l_n = f_{n-1}+f_{n+1}\) and bidirectional induction on \(k\) can verify that \(f_{n+k} = l_kf_n-(-1)^kf_{n-k}\) and \(l_{n+k} = l_kl_n-(-1)^kl_{n-k}\). When \(n=k\) we get \(f_{2n} = l_nf_n\) since \(f_0=0\) and \(l_{2n} = l_n^2-2(-1)^n\) since \(l_0=2\).

Some formulas are ridiculously easy to verify. For example \(2f_n = f_n + f_n = f_n + f_{n-1} + f_{n-2} = f_{n+1} + f_{n-2}\), and similarly \(2l_n = l_{n+1}+l_{n-2}\). Meanwhile, \(3f_n = f_n + 2f_n = f_n + f_{n+1} + f_{n-2} = f_{n+2} + f_{n-2}\), and similarly \(3l_n = l_{n+2}+l_{n-2}\). Slightly harder are \(\sum_{n=a}^b f_n = f_{b+2}-f_{a+1}\) and \(\sum_{n=a}^b l_n = l_{b+2}-l_{a+1}\).

Other formulas can be derived directly from those that express \(f_n\) and \(l_n\) in terms of \(\phi\): \(l_n^2 = l_{2n} + 2(-1)^n\) (didn’t we just see this one?) and \(5f_n^2 = l_{2n} - 2(-1)^n\). Also \(|f_n| = |f_{-n}|\) and \(|l_n| = |l_{-n}|\) (the surrounding vertical bars mean absolute value).

As long as Goldie was showing the girls quadratic equations, she decided that she might as well show them something simpler: matrix arithmetic. After all, a matrix is just a rectangular array of numbers, with special methods for matrix addition and multiplication. While a matrix can be any size, \(2\times 2\) matrices are sufficient for investigating the girls’ sequences.

If we have a pair of matrices \(\boldsymbol{A}=\begin{bmatrix}a_{11}&a_{12}\\a_{21}&a_{22}\end{bmatrix}\) and \(\boldsymbol{B}=\begin{bmatrix}b_{11}&b_{12}\\b_{21}&b_{22}\end{bmatrix}\), then addition is element by element: \(\boldsymbol{A}+\boldsymbol{B}=\begin{bmatrix}a_{11}+b_{11}&a_{12}+b_{12}\\a_{21}+b_{21}&a_{22}+b_{22}\end{bmatrix}\).

Multiplication is more complicated, with each element in the product combining a row of the first matrix with a column of the second: \(\boldsymbol{A}\boldsymbol{B}=\begin{bmatrix}a_{11}b_{11}+a_{12}b_{21}&a_{11}b_{12}+a_{12}b_{22}\\a_{21}b_{11}+a_{22}b_{21}&a_{21}b_{12}+a_{22}b_{22}\end{bmatrix}\).

With those methods, most of the usual properties of addition and multiplication hold. One notable exception is that \(\boldsymbol{A}\boldsymbol{B}\) is not necessarily equal to \(\boldsymbol{B}\boldsymbol{A}\).

It’s not hard to see that \(\begin{bmatrix}f_n&f_{n+1}\\f_{n+1}&f_{n+2}\end{bmatrix}=\begin{bmatrix}0&1\\1&1\end{bmatrix}\begin{bmatrix}f_{n-1}&f_n\\f_n&f_{n+1}\end{bmatrix}\), and \(\begin{bmatrix}l_n&l_{n+1}\\l_{n+1}&l_{n+2}\end{bmatrix}=\begin{bmatrix}0&1\\1&1\end{bmatrix}\begin{bmatrix}l_{n-1}&l_n\\l_n&l_{n+1}\end{bmatrix}\). This is just a complicated way to express that the next element of either sequence is the sum of the previous two elements.

If we define \(\mathbf{F}=\begin{bmatrix}f_0&f_1\\f_1&f_2\end{bmatrix}=\begin{bmatrix}0&1\\1&1\end{bmatrix}\), and \(\mathbf{L}=\begin{bmatrix}l_{-1}&l_0\\l_0&l_1\end{bmatrix}=\begin{bmatrix}-1&2\\2&1\end{bmatrix}\), then \(\begin{bmatrix}f_{n-1}&f_n\\f_n&f_{n+1}\end{bmatrix}=\mathbf{F}^n\) and \(\begin{bmatrix}l_{n-1}&l_n\\l_n&l_{n+1}\end{bmatrix}=\mathbf{F}^n\mathbf{L}\).

These last two equations actually suggest a fast way to compute large members of the sequences, because there is a trick for doing exponentiation quickly. And, together with the observation that \(\mathbf{F}\mathbf{L} = \mathbf{L}\mathbf{F}\), they will help to discover several formulas for the sequences.

For example, since \(\mathbf{F}^{m+n} = \mathbf{F}^m \mathbf{F}^n\), we can see that \(f_{m+n} = f_m f_{n-1} + f_{m+1} f_n\). And since \(\mathbf{F}^{m+n}\mathbf{L} = \mathbf{F}^m \mathbf{L} \mathbf{F}^n\) we also have \(l_{m+n} = l_m f_{n-1}+l_{m+1}f_n\).

By replacing \(m\) with \(-m\) in \(f_{m+n} = f_m f_{n-1} + f_{m+1} f_n\), we get \(f_{n-m} = f_{-m} f_{n-1} + f_{1-m} f_n\). An interesting consequence is that if we have a divisor of both \(f_m\) and \(f_n\), it is also a divisor of \(f_{n-m}\). Conversely, by replacing \(n\) with \(n-m\), we get \(f_n = f_m f_{n-m-1} + f_{m+1} f_{n-m}\), so if we have a divisor of both \(f_m\) and \(f_{n-m}\), it is also a divisor of \(f_n\). These two observations mean that \(\{ f_n,f_m\}\) have the same common divisors as \(\{ f_{n-m},f_m\}\). The Euclidean algorithm for finding the greatest common divisor of two numbers uses the observation that \(\{a,b\}\) and \(\{a-b,b\}\) have the same common divisors to find smaller and smaller pairs with those common divisors until one element of the pair is zero, at which point the other element is clearly the greatest common divisor of the original two numbers. So, noting that \(f_0 = 0\), we can parallel the Euclidean algorithm on \(\{a,b\}\) and start with \(\{f_a,f_b\}\) and arrive at \(\{f_{\gcd(a,b)},f_0\}\) to conclude that \(\gcd(f_a,f_b) = f_{\gcd(a,b)}\).

Epilog

By the way, Fi’s sequence is actually called the Fibonacci sequence, and Lu’s sequence is named the Lucas sequence. Meanwhile, the Golden ratio is, in fact, called the Golden ratio, and written as \(\phi\).