{"id":423,"date":"2019-06-27T17:38:32","date_gmt":"2019-06-27T17:38:32","guid":{"rendered":"http:\/\/funfacts.104.42.120.246.xip.io\/?page_id=423"},"modified":"2019-10-18T22:59:50","modified_gmt":"2019-10-18T22:59:50","slug":"fibonacci-gcds-please","status":"publish","type":"page","link":"https:\/\/math.hmc.edu\/funfacts\/fibonacci-gcds-please\/","title":{"rendered":"Fibonacci GCD&#8217;s, please"},"content":{"rendered":"\n<p>Fibonacci numbers exhibit striking patterns. Here&#8217;s one that may not be so obvious, but is striking when you see it. Recall the\u00a0Fibonacci\u00a0numbers:<\/p>\n\n\n\n<p>\u00a0n: 0, 1, 2, 3, 4, 5, 6, 7,\u00a08,\u00a09, 10, 11, \u00a012, \u00a013, \u00a014, &#8230;\u00a0<br>f<sub>n<\/sub>: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, &#8230;<\/p>\n\n\n\n<p>Now let&#8217;s look at some of their greatest common divisors <\/p>\n\n\n\n<p>(gcd&#8217;s): gcd(f<sub>10<\/sub>, f<sub>7<\/sub>) = gcd(55, 13) = 1 = f<sub>1<\/sub><br>gcd(f<sub>6<\/sub>, f<sub>9<\/sub>) = gcd(8, 34) = 2 = f<sub>3<\/sub><br>gcd(f<sub>6<\/sub>, f<sub>12<\/sub>) = gcd(8, 144) = 8 = f<sub>6<\/sub><br>gcd(f<sub>7<\/sub>, f<sub>14<\/sub>) = gcd(13, 377) = 13 = f<sub>7<\/sub><br>gcd(f<sub>10<\/sub>, f<sub>12<\/sub>) = gcd(55, 144) = 1 = f<sub>2<\/sub><\/p>\n\n\n\n<p>Do you see the pattern? The greatest common divisor of any two Fibonacci numbers is also a Fibonacci number! Which one? If you look even closer, you&#8217;ll see the amazing general result:<\/p>\n\n\n\n<p>gcd(f<sub>m<\/sub>, f<sub>n<\/sub>) = f<sub>gcd(m, n)<\/sub>.<\/p>\n\n\n\n<p><strong>Presentation&nbsp;Suggestions:<\/strong><br>After presenting the general result, go back to the examples to verify that it holds. You may wish to prepare a transparency beforehand with a table of Fibonacci numbers on it, so you can refer to it throughout the presentation.<\/p>\n\n\n\n<p><strong>The\u00a0Math\u00a0Behind\u00a0the\u00a0Fact:<\/strong><br>The proof is based on the following lemmas which are interesting in their own right. All can be proved by\u00a0induction.\u00a0<br>a) gcd(f<sub>n<\/sub>, f<sub>n-1<\/sub>) = 1, for all n\u00a0<br>b) f<sub>m+n<\/sub>\u00a0= f<sub>m+1<\/sub>\u00a0f<sub>n<\/sub>\u00a0+ f<sub>m<\/sub>\u00a0f<sub>n-1<\/sub>\u00a0<br>c) if m divides n, then f<sub>m<\/sub>\u00a0divides f<sub>n<\/sub>\u00a0<\/p>\n\n\n\n<p>and the ever important Euclidean Algorithm which states: if n= qm + r, then gcd(n, m) = gcd(m, r). For such n,m we have<\/p>\n\n\n\n<p>gcd(f<sub>m<\/sub>, f<sub>n<\/sub>) = gcd(f<sub>m<\/sub>, f<sub>qm+r<\/sub>) = gcd(f<sub>m<\/sub>, f<sub>qm+1<\/sub>f<sub>r<\/sub> + f<sub>qm<\/sub>f<sub>r-1<\/sub>) = gcd(f<sub>m<\/sub>, f<sub>qm+1<\/sub>f<sub>r<\/sub>) = gcd(f<sub>m<\/sub>, f<sub>r<\/sub>)<\/p>\n\n\n\n<p>where the 2nd equality follows from (b), the 3rd equality from (c) noting that m divides qm, and the 4th equality from noting that f<sub>m<\/sub>\u00a0divides f<sub>qm<\/sub>\u00a0which is relatively prime to f<sub>qm+1<\/sub>. Thus<\/p>\n\n\n\n<p>gcd(f<sub>n<\/sub>, f<sub>m<\/sub>) = gcd(f<sub>m<\/sub>, f<sub>r<\/sub>)<\/p>\n\n\n\n<p>which looks a lot like the Euclidean algorithm but with f&#8217;s on top! For example since <\/p>\n\n\n\n<p>gcd(100, 80) = gcd(80, 20) = gcd(20, 0) = 20, then <br>gcd(f<sub>100<\/sub>, f<sub>80<\/sub>) = gcd(f<sub>80<\/sub>, f<sub>20<\/sub>) = gcd(f<sub>20<\/sub>, f<sub>0<\/sub> = 0) = f<sub>20<\/sub>.<\/p>\n\n\n\n<p><strong>How to Cite this Page:<\/strong>&nbsp;<br>Su, Francis E., et al. &#8220;Fibonacci GCD&#8217;s, please.&#8221;&nbsp;<em>Math Fun Facts<\/em>. &lt;http:\/\/www.math.hmc.edu\/funfacts&gt;.<\/p>\n\n\n\n<p><strong>Fun Fact suggested by:<\/strong>   <br>Arthur Benjamin <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fibonacci numbers exhibit striking patterns. Here&#8217;s one that may not be so obvious, but is striking when you see it.&#46;&#46;&#46;<\/p>\n","protected":false},"author":7,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[76,104,4,10,49],"class_list":["post-423","page","type-page","status-publish","hentry","tag-fibonacci","tag-greatest-common-divisor","tag-medium","tag-numtheory","tag-prime"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/math.hmc.edu\/funfacts\/wp-json\/wp\/v2\/pages\/423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/math.hmc.edu\/funfacts\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/math.hmc.edu\/funfacts\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/math.hmc.edu\/funfacts\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/math.hmc.edu\/funfacts\/wp-json\/wp\/v2\/comments?post=423"}],"version-history":[{"count":3,"href":"https:\/\/math.hmc.edu\/funfacts\/wp-json\/wp\/v2\/pages\/423\/revisions"}],"predecessor-version":[{"id":1326,"href":"https:\/\/math.hmc.edu\/funfacts\/wp-json\/wp\/v2\/pages\/423\/revisions\/1326"}],"wp:attachment":[{"href":"https:\/\/math.hmc.edu\/funfacts\/wp-json\/wp\/v2\/media?parent=423"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/math.hmc.edu\/funfacts\/wp-json\/wp\/v2\/tags?post=423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}