{"id":16404,"date":"2016-06-29T21:37:07","date_gmt":"2016-06-29T21:37:07","guid":{"rendered":"http:\/\/www.oracletutoring.ca\/blog\/?p=16404"},"modified":"2016-06-29T21:45:42","modified_gmt":"2016-06-29T21:45:42","slug":"math-number-theory-linear-combinations-that-sum-to-1","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/math-number-theory-linear-combinations-that-sum-to-1\/","title":{"rendered":"Math:  number theory:  linear combinations that sum to 1"},"content":{"rendered":"<h1>The tutor tackles an age-old proof in a new (to him, anyway) manner.<\/h1>\n<p>A famous theorem of number theory goes like this:<\/p>\n<p><i>For the integers a and b, there exists a solution with integers x and y to<\/p>\n<p style=\"text-align:center\">ax+by=1<\/p>\n<p>if and only if a and b are relatively prime.<\/i><\/p>\n<p>Another way to state the same theorem:<\/p>\n<p><em>ax+by=1 has integer solutions x, y iff gcd(a,b)=1 (a,b,x,y all integers).<\/em><\/p>\n<p>gcd(a,b) means the greatest common divisor of a and b; if it&#8217;s 1, a and b must be relatively prime (and vice versa).  <em>iff<\/em> means &#8220;if and only if.&#8221;<\/p>\n<p>Looking at the forward implication first, we have<\/p>\n<p>ax+by=1&rarr;gcd(a,b)=1<\/p>\n<p><u>Proof<\/u>:  Suppose not;  that is, suppose that ax + by=1 but gcd(a,b)=k&ne;1.<\/p>\n<p>Then a=km, b=kn for integers n, m:<\/p>\n<p>kmx+kny=1&rarr;k(mx+ny)=1&rarr;k is a factor of 1&rarr;k=1.<\/p>\n<p>Now, let&#8217;s look the other way:<\/p>\n<p>gcd(a,b)=1&rarr;ax+by=1 for some integers x,y.<\/p>\n<p><u>Proof<\/u>:  Suppose not; that is, suppose gcd(a,b)=1, but ax+by&geq;d for some integer d&gt;1<\/p>\n<p>Then there can&#8217;t be a solution for aw+dz=d+1, for, if so, then<\/p>\n<p>aw+dz-(ax+by)=1, and we have a linear combination of a and b summing to 1.  It follows that any linear combination of a and b is a multiple of d:<\/p>\n<p>ap+bq=md<\/p>\n<p>Therefore, let p=1, q=d:<\/p>\n<p>a+bd=fd<\/p>\n<p>Then<\/p>\n<p>a=fd-bd=d(f-b)&rarr;d is a factor of a.<\/p>\n<p>Next, consider<\/p>\n<p>ad+b=hd<\/p>\n<p>Then<\/p>\n<p>b=hd-ad=d(h-a)&rarr;d is a factor of b.<\/p>\n<p>By our original assumption, d&ge;1.  Also from our original assumption, gcd(a,b)=1. However, d is a factor of both a and b.    The contradiction proves that when gcd(a,b)=1, there is an integer solution to ax+by=1.<\/p>\n<p>I&#8217;ll be talking more about number theory:)<\/p>\n<p>Source:<\/p>\n<p>Dudley, Underwood.  <u>Elementary Number Theory<\/u>.  New York:<\/br>&nbsp;&nbsp;W H Freeman and Company, 1978.<\/p>\n<p>Jack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The tutor tackles an age-old proof in a new (to him, anyway) manner. A famous theorem of number theory goes like this: For the integers a and b, there exists a solution with integers x and y to ax+by=1 if &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/math-number-theory-linear-combinations-that-sum-to-1\/\"> <span class=\"screen-reader-text\">Math:  number theory:  linear combinations that sum to 1<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,1677],"tags":[],"class_list":["post-16404","post","type-post","status-publish","format-standard","hentry","category-math","category-number-theory"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/16404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=16404"}],"version-history":[{"count":29,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/16404\/revisions"}],"predecessor-version":[{"id":16433,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/16404\/revisions\/16433"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=16404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=16404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=16404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}