{"id":193,"date":"2016-09-11T17:32:09","date_gmt":"2016-09-12T00:32:09","guid":{"rendered":"http:\/\/blog.wastudentmath.org\/?p=193"},"modified":"2016-09-11T18:28:06","modified_gmt":"2016-09-12T01:28:06","slug":"on-farey-sequences","status":"publish","type":"post","link":"https:\/\/blog.wastudentmath.org\/index.php\/on-farey-sequences\/","title":{"rendered":"On Farey Sequences"},"content":{"rendered":"<p>Think back to when you were in elementary school and first learned about fractions. You learned that there is a numerator and denominator, and then you learned about multiplication. Multiplication was simple. All you need to do is multiply the numerators and then multiply the denominators to get the numerator and denominator, just as follows:<\/p>\n<p><img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cfrac%7Ba%7D%7Bb%7D+%5Ctimes+%5Cfrac%7Bc%7D%7Bd%7D+%3D+%5Cfrac%7Ba+%5Ctimes+c%7D%7Bb+%5Ctimes+d%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\frac{a}{b} \\times \\frac{c}{d} = \\frac{a \\times c}{b \\times d}' title='\\frac{a}{b} \\times \\frac{c}{d} = \\frac{a \\times c}{b \\times d}' class='latex' \/><\/p>\n<p>Naturally, when it turned to addition, we thought it would be the same. Just add the numerators together and the denominators together! Alas, when we brought this up to our teachers and parents, they told us we were wrong. The &#8220;correct&#8221; way to add two fractions is to find the common denominator and then add the two numerators. As follows:<\/p>\n<p><img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cfrac%7Ba%7D%7Bb%7D+%2B+%5Cfrac%7Bc%7D%7Bd%7D+%3D+%5Cfrac%7Bad%7D%7Bbd%7D+%2B+%5Cfrac%7Bbc%7D%7Bbd%7D+%3D+%5Cfrac%7Bad%2Bbc%7D%7Bbd%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\frac{a}{b} + \\frac{c}{d} = \\frac{ad}{bd} + \\frac{bc}{bd} = \\frac{ad+bc}{bd}' title='\\frac{a}{b} + \\frac{c}{d} = \\frac{ad}{bd} + \\frac{bc}{bd} = \\frac{ad+bc}{bd}' class='latex' \/><\/p>\n<p>From a young age we were taught to conform to this definition of addition, and after a while this definition seemed to make sense. But what if for a second we went with our original idea? What happens then? First let&#8217;s denote, for the purposes of this article, <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Coplus&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\oplus' title='\\oplus' class='latex' \/> as the addition function described above as defined by:<\/p>\n<p><img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cfrac%7Ba%7D%7Bb%7D+%5Coplus+%5Cfrac%7Bc%7D%7Bd%7D+%3D+%5Cfrac%7Ba%2Bc%7D%7Bb%2Bd%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\frac{a}{b} \\oplus \\frac{c}{d} = \\frac{a+c}{b+d}' title='\\frac{a}{b} \\oplus \\frac{c}{d} = \\frac{a+c}{b+d}' class='latex' \/><\/p>\n<p>First, lets look at a few examples. We have <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D+%5Coplus+%5Cfrac%7B2%7D%7B3%7D+%3D+%5Cfrac%7B3%7D%7B5%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\frac{1}{2} \\oplus \\frac{2}{3} = \\frac{3}{5}' title='\\frac{1}{2} \\oplus \\frac{2}{3} = \\frac{3}{5}' class='latex' \/> and <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cfrac%7B1%7D%7B5%7D+%5Coplus+%5Cfrac%7B2%7D%7B4%7D+%3D+%5Cfrac%7B3%7D%7B9%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\frac{1}{5} \\oplus \\frac{2}{4} = \\frac{3}{9}' title='\\frac{1}{5} \\oplus \\frac{2}{4} = \\frac{3}{9}' class='latex' \/>. By the traditional definition of addition, these equations make no sense. Of course they don&#8217;t. This the point where our third grade teacher tells us how foolish we were and how we should accept the harder, but more correct definition of addition. But is it really the case that there is nothing noteworthy in the above statements?<\/p>\n<p>After some searching, notice how when you add two fractions together with the <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Coplus&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\oplus' title='\\oplus' class='latex' \/> function, the result is always in between the two inputs numerically. For example, looking at the first equation, <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cfrac%7B3%7D%7B5%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\frac{3}{5}' title='\\frac{3}{5}' class='latex' \/> is larger than <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cfrac%7B1%7D%7B2%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\frac{1}{2}' title='\\frac{1}{2}' class='latex' \/> but smaller than <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cfrac%7B2%7D%7B3%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\frac{2}{3}' title='\\frac{2}{3}' class='latex' \/>.<\/p>\n<p>But this isn&#8217;t that interesting. After some thought, this result is fairly obvious. The <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Coplus&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\oplus' title='\\oplus' class='latex' \/> function still seems like a nonsense function. However this fact is the foundation of something very interesting called Farey sequences.<\/p>\n<p>To explain this concept consider the fractions <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cfrac%7B0%7D%7B1%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\frac{0}{1}' title='\\frac{0}{1}' class='latex' \/> and <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cfrac%7B1%7D%7B1%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\frac{1}{1}' title='\\frac{1}{1}' class='latex' \/>. Denote this generation <strong>1<\/strong>. Now take these two and\u00a0add them with the <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Coplus&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\oplus' title='\\oplus' class='latex' \/> function. Now we have the fractions <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cfrac%7B0%7D%7B1%7D+%5Cfrac%7B1%7D%7B2%7D+%5Cfrac%7B1%7D%7B1%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\frac{0}{1} \\frac{1}{2} \\frac{1}{1}' title='\\frac{0}{1} \\frac{1}{2} \\frac{1}{1}' class='latex' \/>. Denote this generation <strong>2<\/strong>.<\/p>\n<p>Now, between each pair of consecutive terms in generation 2, apply the <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Coplus&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\oplus' title='\\oplus' class='latex' \/> operator on them, and place the resulting fraction in between the two parent fractions. Remember to reduce, of course!<\/p>\n<p>You obtain the list\u00a0<img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cfrac%7B0%7D%7B1%7D+%5Cfrac%7B1%7D%7B3%7D+%5Cfrac%7B1%7D%7B2%7D+%5Cfrac%7B2%7D%7B3%7D+%5Cfrac%7B1%7D%7B1%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\frac{0}{1} \\frac{1}{3} \\frac{1}{2} \\frac{2}{3} \\frac{1}{1}' title='\\frac{0}{1} \\frac{1}{3} \\frac{1}{2} \\frac{2}{3} \\frac{1}{1}' class='latex' \/>. Denote this list generation <strong>3<\/strong>. You can keep on doing this to generate any generation <em>n<\/em>. Notice four generations illustrated in the chart below. Do you notice an interesting pattern?<\/p>\n<div id=\"attachment_203\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.wastudentmath.org\/wp-content\/uploads\/2016\/09\/farey.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-203\" class=\"size-medium wp-image-203\" src=\"http:\/\/blog.wastudentmath.org\/wp-content\/uploads\/2016\/09\/farey-300x250.png\" alt=\"You can keep generating new generations by using the operator between terms of the previous sequence. Blue represents the original terms pulled from the previous generation.\" width=\"300\" height=\"250\" srcset=\"https:\/\/blog.wastudentmath.org\/wp-content\/uploads\/2016\/09\/farey-300x250.png 300w, https:\/\/blog.wastudentmath.org\/wp-content\/uploads\/2016\/09\/farey.png 465w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-203\" class=\"wp-caption-text\">You can keep generating new generations by using the operator between two terms of the previous sequence. Blue represents the parent\u00a0terms pulled from the previous generation.<\/p><\/div>\n<p>Now\u2014stay with me here\u2014remove all fractions with denominators greater than the generation number.<\/p>\n<p>It turns out\u00a0that for each generation <em>n<\/em>, the list of fractions is exactly\u00a0the list of all fractions between 0 and 1 with denominator at most n in increasing order\u2014which is exactly what a Farey sequence is defined as!<\/p>\n<p>It turns out that using the <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Coplus&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\oplus' title='\\oplus' class='latex' \/> function is one of the fastest ways for a computer (or a human) to generate a complete list of increasing rationals with denominators all less than a certain value.<\/p>\n<p>From such a nonsensical and strange thing such as the <img src='https:\/\/s0.wp.com\/latex.php?latex=%5Coplus&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\oplus' title='\\oplus' class='latex' \/> function, we are able to find such an interesting thing as the Farey Sequence!<\/p>\n<p>We need not be limited by the traditional ideas of mathematics. Any idea, however deviant, can be explored and analyzed. The beauty of mathematics is our ability to take such strange new ideas, and to find order and patterns in the universes that these ideas create.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Think back to when you were in elementary school and first learned about fractions. You learned that there is a numerator and denominator, and then you learned about multiplication. Multiplication was simple. All you need to do is multiply the numerators and then multiply the denominators to get the numerator and denominator, just as follows: [&hellip;]<\/p>\n","protected":false},"author":21,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-193","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.wastudentmath.org\/index.php\/wp-json\/wp\/v2\/posts\/193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.wastudentmath.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.wastudentmath.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.wastudentmath.org\/index.php\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.wastudentmath.org\/index.php\/wp-json\/wp\/v2\/comments?post=193"}],"version-history":[{"count":11,"href":"https:\/\/blog.wastudentmath.org\/index.php\/wp-json\/wp\/v2\/posts\/193\/revisions"}],"predecessor-version":[{"id":208,"href":"https:\/\/blog.wastudentmath.org\/index.php\/wp-json\/wp\/v2\/posts\/193\/revisions\/208"}],"wp:attachment":[{"href":"https:\/\/blog.wastudentmath.org\/index.php\/wp-json\/wp\/v2\/media?parent=193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wastudentmath.org\/index.php\/wp-json\/wp\/v2\/categories?post=193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wastudentmath.org\/index.php\/wp-json\/wp\/v2\/tags?post=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}