{"id":1336,"date":"2021-03-12T10:05:12","date_gmt":"2021-03-12T17:05:12","guid":{"rendered":"http:\/\/www.davidgunter.com\/?p=1336"},"modified":"2022-03-13T17:57:20","modified_gmt":"2022-03-14T00:57:20","slug":"an-interesting-calculator-discovery-and-the-result-of-a-12-hour-drive","status":"publish","type":"post","link":"https:\/\/www.davidgunter.com\/es-mx\/2021\/03\/12\/an-interesting-calculator-discovery-and-the-result-of-a-12-hour-drive\/","title":{"rendered":"An interesting calculator discovery and the result of a 12-hour drive"},"content":{"rendered":"\n<p>I recently drove 12 hours from our home in Santa Fe to our beach spot in Mexico while Sonya had numerous virtual meetings and phone calls en route. This meant that I was not able to listen to music nor any of my podcasts as I do not like to drive with earphones in use. No matter, I had come across something interesting a few days prior and I spent most of the entire drive focused on it. I wrote a draft of this post in my notebook the next morning so I wouldn&#8217;t forget it.<\/p>\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-b7b66bf0aaa51a47c36ee4fbe0444ecb_l3.png\" height=\"21\" width=\"212\" class=\"ql-manual-mode quicklatex-auto-format\" alt=\"Rendered by QuickLaTeX.com\" title=\"Rendered by QuickLaTeX.com\"\/><br \/>\nA few days prior I was working on something and noticed the following. Suppose you started with the number 2 and then squared it. You get the number 4. Squared again, 8. Then 16, then 32, and so on. What I noticed was the last digit of each subsequent squaring, written down as {2, 4, 8, 6, 2}. After five such squares, that is after reaching <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-2615c28385517917a01ba2743cf984fc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#50;&#94;&#53;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"16\" style=\"vertical-align: 0px;\"\/>, we end up back at 2. From there the cycle repeats. Here are the various powers of 2 and the last digit of each<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-78d03bfa328a4ff2de5193023bc857cd_l3.png\" height=\"64\" width=\"393\" class=\"ql-manual-mode quicklatex-auto-format\" alt=\"Rendered by QuickLaTeX.com\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>This is not unique to the number 2. Any number raised to increasing integer powers will show a cycle.  What is interesting is that there will never be a cycle length larger than 5 when looking at the frequency of occurrence of the last digit. Shown in the next table are the various cycles that may appear.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-e464d2ac6d57e23bff3ae53888859a9a_l3.png\" height=\"221\" width=\"401\" class=\"ql-manual-mode quicklatex-auto-format\" alt=\"Rendered by QuickLaTeX.com\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>We see that not all cycles are of length 5. For 1, 5, and 6, in fact, the cycle length is only 1. The numbers 4 and 9 have cycles of length 2. But there is no cycle greater than length five. Why is that? And why is it that no matter what the starting number is, we will reach the same last digit after raising any number to a fifth power?<\/p>\n<p>This applies to numbers of more than a single digit, of course. Suppose we started with the number 83. In successive powers we have 83,  <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-c03c57c68f2401c407456dad1f1a659d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#44;\" title=\"Rendered by QuickLaTeX.com\" height=\"1\" width=\"1\" style=\"vertical-align: 0px;\"\/> 6,889,  <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-c03c57c68f2401c407456dad1f1a659d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#44;\" title=\"Rendered by QuickLaTeX.com\" height=\"1\" width=\"1\" style=\"vertical-align: 0px;\"\/> 571,787,  <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-c03c57c68f2401c407456dad1f1a659d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#44;\" title=\"Rendered by QuickLaTeX.com\" height=\"1\" width=\"1\" style=\"vertical-align: 0px;\"\/> 47,458,321, and 3,939,040,643. The cycle of last digits is {3, 9, 7, 1, 3}, the same as for the digit 3, itself. No matter how large of a number we start with, after raising it to successive powers the last digit will cycle back around to the last digit of the number with which we started, following one of the cycles appearing in the table above for single digits. If it is not clear why this is so, think about what a multiple digit number is. It is a single digit, plus another digit multiplied by 10, plus another digit multiplied by 100, and so on. Consider a two-digit number <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-cd9b874f7bcbcd36e9978051be7c0307_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;&#48;&#121;&#32;&#43;&#32;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"58\" style=\"vertical-align: -4px;\"\/> where <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-7e5fbfa0bbbd9f3051cd156a0f1b5e31_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-38461fc041e953482219abf5d4cce1cb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#121;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: -4px;\"\/> are single digits. Squaring it gives<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 22px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-77e116d6cb28239d3429e54164de24ec_l3.png\" height=\"22\" width=\"244\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#32; &#40;&#49;&#48;&#121;&#32;&#43;&#32;&#120;&#41;&#94;&#50;&#32;&#61;&#32;&#49;&#48;&#48;&#121;&#94;&#50;&#32;&#43;&#32;&#50;&#48;&#121;&#120;&#32;&#43;&#32;&#120;&#94;&#50;&#32; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>The first two terms on the right end in 0 so the last digit will be determined by the last digit of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-a907ec251186720339b02f25afcaf78d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"17\" style=\"vertical-align: 0px;\"\/>.<\/p>\n<p>Thus the questions remain, why are there no cycles greater than 5 and why, no matter what, when we raise any number to the power of 5 do we get a number whose last digit is the same as the number with which we began?<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-4c923669336894e2f5f4f1945bf47752_l3.png\" height=\"17\" width=\"233\" class=\"ql-manual-mode quicklatex-auto-format\" alt=\"Rendered by QuickLaTeX.com\" title=\"Rendered by QuickLaTeX.com\"\/><br \/>\nWhen talking about cycles that appear in numbers there is a good chance that we will be making use of <a href=\"https:\/\/www.khanacademy.org\/computing\/computer-science\/cryptography\/modarithmetic\/a\/what-is-modular-arithmetic\" target=\"_blank\" rel=\"noopener\">modular arithmetic<\/a>, a part of mathematics based on <em>wrap-around<\/em> behavior. If you are unfamiliar with this subject, think of how most Americans keep time using a 12-hour clock. Let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-ec4217f4fa5fcd92a9edceba0e708cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\"\/> represent the number of hours that have passed since midnight. We would say that the current hour is <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-ec4217f4fa5fcd92a9edceba0e708cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\"\/> mod 12, that is, it is the reminder after dividing by 12. If n = 6 then 12 goes into 6 zero times, with a remainder of 6. So it is 6 AM. If n = 14 then 12 goes into 14 once with a remainder of 2. It&#8217;s 2 PM. We say the hour of the day is based on a modular-12 system.<\/p>\n<p>Modular arithmetic will come into play in our explanation for the questions raised at the end of the last section. We will use the concept of congruence between numbers based on some modular value. Two values <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-ad69adf868bc701e561aa555db995f1f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"8\" style=\"vertical-align: 0px;\"\/> are said to be congruent based on some modular value <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/> if the difference between the two values is evenly divisible by <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/>. This is written as <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-812daf7e5f5b9fb75ef7fcdbf4b4138f_l3.png\" height=\"19\" width=\"132\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#97;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#98;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#109;&#125;&#46;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>Note the three-lined equivalence symbol being used and the &#8216;(mod m)&#8217;. The parentheses around the latter indicate that it applies to the whole equation, both the left and right sides. The notation is not too complicated and means nothing more than the difference <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-26e172b39c0194b6dcfe60ad285a5946_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#45;&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"39\" style=\"vertical-align: 0px;\"\/> is evenly divisible by <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/>, i.e. <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-3ae39f30debb76d98e204b8aa363f64f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#45;&#98;&#32;&#61;&#32;&#107;&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"87\" style=\"vertical-align: 0px;\"\/> for some integer <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-d42bc2203d6f76ad01b27ac9acc0bee1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/>. Another way mathematicians write &#8220;is evenly divisible by&#8221; is the following notation,<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-34ad47a6dcdfca543df7e19cf7814f0d_l3.png\" height=\"19\" width=\"77\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#109;&#124;&#40;&#97;&#45;&#98;&#41;&#32;&#46;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>Keep in mind the &#8216;(mod m)&#8217; type of notation in what follows. A common temptation is to think that the statement <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-bbb0615337e81396bd6899c964e348ed_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#98;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#109;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"117\" style=\"vertical-align: -5px;\"\/> is a shorthand way to say, &#8220;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-ad69adf868bc701e561aa555db995f1f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"8\" style=\"vertical-align: 0px;\"\/> is the remainder when <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/> is divided by <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/>.&#8221; However, this is not always the case. Here are a few examples to drive home the meaning of the congruence relation.<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-3acf799c17b4c76a03e9413353716072_l3.png\" height=\"19\" width=\"134\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#49;&#50;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#56;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#52;&#125;&#44;\t&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>because <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-a214b232ecfc7cc5c3ae796d8c80a210_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;&#50;&#45;&#56;&#61;&#52;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"80\" style=\"vertical-align: 0px;\"\/> is evenly divisible by 4. Note that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-e4888e98f77eb93ff65bfecac28d3c5e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#56;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/> is definitely not the remainder of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-4e5f830d88e6a931286aa94406cb3fc7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;&#50;&#32;&#92;&#100;&#105;&#118;&#32;&#52;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"47\" style=\"vertical-align: -1px;\"\/>.<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-3810afc8f15d411244b6a1ece60cce6f_l3.png\" height=\"19\" width=\"143\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#51;&#51;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#49;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#49;&#54;&#125;&#44;\t&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>because <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-44f16e7fcfc0dcd3232c0476cc42888b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#51;&#51;&#45;&#49;&#61;&#51;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"89\" style=\"vertical-align: 0px;\"\/> is evenly divisible by 16.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-6b0a87c8ed3eb82f345a121a78f5061e_l3.png\" height=\"16\" width=\"283\" class=\"ql-manual-mode quicklatex-auto-format\" alt=\"Rendered by QuickLaTeX.com\" title=\"Rendered by QuickLaTeX.com\"\/><br \/>\nAn interesting theorem involving modular arithmetic and prime numbers was introduced by Fermat and is known as <em>Fermat&#8217;s Little Theorem<\/em> in deference to his more famous <em>Last Theorem<\/em>.<\/p>\n<p>Recall that a prime number is one that is only divisible by itself and the number 1. Fermat&#8217;s Little Theorem states that for any prime number <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/> and any number <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/> not divisible by <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/> that<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 22px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-ffe4a7511419c6ae0b0912d6cf019d78_l3.png\" height=\"22\" width=\"151\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#97;&#94;&#123;&#112;&#45;&#49;&#125;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#49;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#112;&#125;&#46;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>This theorem is essential to answering our questions so it is worth showing a proof. Also, it leads to a generalization due to Euler that will more directly answer our questions.<\/p>\n<p>To prove Fermat&#8217;s Little Theorem, start by creating a set of numbers from 1 to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-d1bc0e81c3b0117ced4fe09890a91ed2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;&#45;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"40\" style=\"vertical-align: -4px;\"\/>. Call this set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-52fd2a0fc27878e7dfce68d4632b4ffb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/>,<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-d89dd5a03c678c62b60ec6b9d82df9f2_l3.png\" height=\"19\" width=\"171\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#83;&#32;&#61;&#32;&#92;&#123;&#32;&#49;&#44;&#32;&#50;&#44;&#32;&#51;&#44;&#32;&#92;&#108;&#100;&#111;&#116;&#115;&#32;&#112;&#45;&#49;&#92;&#125;&#46;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>There are a total of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-d1bc0e81c3b0117ced4fe09890a91ed2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;&#45;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"40\" style=\"vertical-align: -4px;\"\/> elements of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-52fd2a0fc27878e7dfce68d4632b4ffb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/>, all less than <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/>, and so it should be obvious that for any member <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-ec4217f4fa5fcd92a9edceba0e708cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\"\/> of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-52fd2a0fc27878e7dfce68d4632b4ffb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/>, written as <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-b81e97b2f6f097c78ac8642fb5c490f0_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;&#32;&#92;&#105;&#110;&#32;&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"44\" style=\"vertical-align: -1px;\"\/>, that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-ec4217f4fa5fcd92a9edceba0e708cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\"\/> mod <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/> = <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-ec4217f4fa5fcd92a9edceba0e708cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\"\/>. So every member of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-52fd2a0fc27878e7dfce68d4632b4ffb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> is unique and every member has a unique congruence modulo <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/>, that is, a unique remainder mod <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/>, namely itself. Next form a new set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-d1500b1ed83258f49bf057574dd97e62_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"34\" style=\"vertical-align: 0px;\"\/> where we multiply every member of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-52fd2a0fc27878e7dfce68d4632b4ffb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> by <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/>. This new set is<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-9ebe94a5649d71aa0c06bc33f9d5fecf_l3.png\" height=\"19\" width=\"235\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#97;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#83;&#32;&#61;&#32;&#92;&#123;&#32;&#97;&#44;&#32;&#50;&#97;&#44;&#32;&#51;&#97;&#44;&#32;&#92;&#108;&#100;&#111;&#116;&#115;&#32;&#40;&#112;&#45;&#49;&#41;&#97;&#32;&#92;&#125;&#46;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>Every element of this new set also has a unique congruence modulo <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/>. To show this, assume that two members of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-1932e8af9ad53dd9f914d45825016d50_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#92;&#99;&#100;&#111;&#116;&#32;&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"34\" style=\"vertical-align: 0px;\"\/> had the same congruence relationship modulo <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/>. That is, <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-e27e4d556064631884143d43535468df_l3.png\" height=\"19\" width=\"181\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#110;&#97;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#109;&#97;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#113;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#112;&#125;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>for some integer q. This implies that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-58cad1df2b2de59f9a3583f088ea6b9e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;&#97;&#32;&#61;&#32;&#107;&#112;&#32;&#43;&#32;&#113;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"92\" style=\"vertical-align: -4px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-dac2ce6b4078c72ce174efe138901478_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;&#97;&#32;&#61;&#32;&#107;&#94;&#123;&#39;&#125;&#112;&#32;&#43;&#32;&#113;\" title=\"Rendered by QuickLaTeX.com\" height=\"21\" width=\"102\" style=\"vertical-align: -4px;\"\/> for integers <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-ff52a817d0b20e3d8d7ec5ea2bc49d29_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;&#44;&#32;&#107;&#94;&#123;&#39;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"21\" width=\"31\" style=\"vertical-align: -4px;\"\/>. If we subtract these we get<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 23px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-6c1009f53a820823131d6fedf3c79d33_l3.png\" height=\"23\" width=\"163\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#110;&#97;&#32;&#45;&#32;&#109;&#97;&#32;&#61;&#32;&#40;&#107;&#45;&#107;&#94;&#123;&#39;&#125;&#41;&#112;&#46;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>The right-hand side is clearly divisible by p and this means that<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-8dd1495e4ddb3004dfbe1c07b9bc15b9_l3.png\" height=\"19\" width=\"187\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#40;&#110;&#45;&#109;&#41;&#32;&#97;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#48;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#112;&#125;&#46;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>The integers <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-ec4217f4fa5fcd92a9edceba0e708cf7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/> are both less than <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/> because of how the set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-52fd2a0fc27878e7dfce68d4632b4ffb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> was constructed, hence their difference must also be less than <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/>. This fact, combined with the assertion at the beginning that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/> is not divisible by <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/>, means that the only way the above congruence relation can hold true is if <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-2549d02b869a3293b1c1612a2400d025_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;&#32;&#61;&#32;&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"49\" style=\"vertical-align: 0px;\"\/>, proving the congruence uniqueness for the set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-d1500b1ed83258f49bf057574dd97e62_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"34\" style=\"vertical-align: 0px;\"\/>.<\/p>\n<p>We have just shown that all of the congruences of the set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-1932e8af9ad53dd9f914d45825016d50_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#92;&#99;&#100;&#111;&#116;&#32;&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"34\" style=\"vertical-align: 0px;\"\/> are unique. Each one is also less than <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/> by definition of taking the modulus with <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/>, so there is a one-to-one correspondence with the congruences of the set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-52fd2a0fc27878e7dfce68d4632b4ffb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> with those of the set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-1932e8af9ad53dd9f914d45825016d50_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#92;&#99;&#100;&#111;&#116;&#32;&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"34\" style=\"vertical-align: 0px;\"\/>. The congruences modulo <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/> of the set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-d1500b1ed83258f49bf057574dd97e62_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"34\" style=\"vertical-align: 0px;\"\/> are a permutation of those of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-52fd2a0fc27878e7dfce68d4632b4ffb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/>. However, we can multiply all these congruences to see that<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-8b4902063bfb17e0ec5bb0e8d7da6fc2_l3.png\" height=\"19\" width=\"400\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#49;&#92;&#99;&#100;&#111;&#116;&#32;&#50;&#92;&#99;&#100;&#111;&#116;&#51;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#40;&#112;&#45;&#49;&#41;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#97;&#92;&#99;&#100;&#111;&#116;&#32;&#50;&#97;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#51;&#97;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#40;&#112;&#45;&#49;&#41;&#97;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#112;&#125;&#44;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 22px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-842cd75054ada6e58c3f23a9e1276811_l3.png\" height=\"22\" width=\"262\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#40;&#112;&#45;&#49;&#41;&#33;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#40;&#112;&#45;&#49;&#41;&#33;&#32;&#92;&#44;&#32;&#97;&#94;&#123;&#112;&#45;&#49;&#125;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#112;&#125;&#44;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>and finally, we can divide each side by <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-72022b7ab93beab541ab9e4587c2de02_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#112;&#45;&#49;&#41;&#33;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"56\" style=\"vertical-align: -5px;\"\/> to get the result, Fermat&#8217;s Little Theorem,<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 22px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-a08325e6c232044b9a5435be63fe9668_l3.png\" height=\"22\" width=\"151\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#97;&#94;&#123;&#112;&#45;&#49;&#125;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#49;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#112;&#125;&#46;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-8459b91572ea98b8431b18d769ce921e_l3.png\" height=\"16\" width=\"192\" class=\"ql-manual-mode quicklatex-auto-format\" alt=\"Rendered by QuickLaTeX.com\" title=\"Rendered by QuickLaTeX.com\"\/><br \/>\nEuler extended Fermat&#8217;s Little Theorem to non-prime values of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/>. Suppose <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/> is any integer and that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/> are coprime. This just means that the greatest common divisor of either number is 1, written gcd(<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-56674fa6f73dae8a1530b938c4e7cf3a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#44;&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"32\" style=\"vertical-align: -4px;\"\/>) = 1. Then in general Fermat&#8217;s Little Theorem does not hold. We already see a problem with the set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-c8a518a1f3f3dc8813abd2cceecdca6b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;&#32;&#61;&#32;&#92;&#123;&#49;&#44;&#32;&#50;&#44;&#32;&#51;&#44;&#32;&#92;&#108;&#100;&#111;&#116;&#115;&#32;&#40;&#109;&#45;&#49;&#41;&#92;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"186\" style=\"vertical-align: -5px;\"\/>. Some of those elements may have the same congruence relations modulo <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/>. Instead, we form a new set containing only the numbers 1 to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-cb3eac602032aace72854c458d04a36f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;&#45;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"45\" style=\"vertical-align: 0px;\"\/> that are coprime to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/>. For example, if <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-92cc9e0e8c28f45516ebe25284bacc35_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;&#61;&#49;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"56\" style=\"vertical-align: 0px;\"\/> our set would look like this,<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-d2818f47116c6ba7b917d635fd0c5e5e_l3.png\" height=\"19\" width=\"125\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#83;&#32;&#61;&#32;&#92;&#123;&#32;&#49;&#44;&#53;&#44;&#55;&#44;&#49;&#49;&#92;&#125;&#46;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>Those are the only numbers in the range 1 to 12 that are coprime to 12. (Numbers are not considered coprime to themselves.) The number of elements of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-52fd2a0fc27878e7dfce68d4632b4ffb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> is denoted <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-7d1b38cbfa2e2a51c4545a50d1ca20a4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#104;&#105;&#40;&#109;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"40\" style=\"vertical-align: -5px;\"\/> and is called Euler&#8217;s totient function. <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-7d1b38cbfa2e2a51c4545a50d1ca20a4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#104;&#105;&#40;&#109;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"40\" style=\"vertical-align: -5px;\"\/> is the count of numbers less than <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/> that are coprime to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/>. There is no general function to write down in order to compute <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-7d1b38cbfa2e2a51c4545a50d1ca20a4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#104;&#105;&#40;&#109;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"40\" style=\"vertical-align: -5px;\"\/> but it has been tabulated for numerous values in various tables. Here we show just a few examples.<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 234px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-29d1983ec45c919bcef2ace9b6d65402_l3.png\" height=\"234\" width=\"454\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#109;&#32;&#32;&#38;&#32;&#92;&#112;&#104;&#105;&#40;&#109;&#41;&#32;&#38;&#32;&#83;&#92;&#123;&#109;&#92;&#125;&#32;&#92;&#92; &#50;&#32;&#32;&#38;&#32;&#49;&#32;&#38;&#32;&#92;&#123;&#49;&#92;&#125;&#32;&#92;&#92; &#51;&#32;&#32;&#38;&#32;&#50;&#32;&#38;&#32;&#92;&#123;&#49;&#44;&#32;&#50;&#92;&#125;&#32;&#92;&#92; &#52;&#32;&#32;&#38;&#32;&#50;&#32;&#38;&#32;&#92;&#123;&#32;&#49;&#44;&#51;&#92;&#125;&#32;&#92;&#92; &#53;&#32;&#32;&#38;&#32;&#52;&#32;&#38;&#32;&#92;&#123;&#32;&#49;&#44;&#50;&#44;&#51;&#44;&#52;&#32;&#92;&#125;&#32;&#92;&#92; &#54;&#32;&#32;&#38;&#32;&#50;&#32;&#38;&#32;&#92;&#123;&#49;&#44;&#32;&#53;&#92;&#125;&#32;&#92;&#92; &#49;&#48;&#32;&#38;&#32;&#52;&#32;&#38;&#32;&#92;&#123;&#49;&#44;&#32;&#51;&#44;&#32;&#55;&#44;&#32;&#57;&#32;&#92;&#125;&#32;&#92;&#92; &#49;&#53;&#32;&#38;&#32;&#56;&#32;&#38;&#32;&#92;&#123;&#49;&#44;&#32;&#50;&#44;&#32;&#52;&#44;&#32;&#55;&#44;&#32;&#56;&#44;&#32;&#49;&#49;&#44;&#32;&#49;&#51;&#44;&#32;&#49;&#52;&#92;&#125;&#32;&#92;&#92; &#49;&#55;&#32;&#38;&#32;&#49;&#54;&#32;&#38;&#32;&#92;&#123;&#49;&#44;&#50;&#44;&#51;&#44;&#52;&#44;&#53;&#44;&#54;&#44;&#55;&#44;&#56;&#44;&#57;&#44;&#49;&#48;&#44;&#49;&#49;&#44;&#49;&#50;&#44;&#49;&#51;&#44;&#49;&#52;&#44;&#49;&#53;&#44;&#49;&#54;&#44;&#49;&#55;&#92;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>Note in particular the last row. For any prime number <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/> we have <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-89c67254fe17c9e2d1ba9f849840ae3a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#104;&#105;&#40;&#112;&#41;&#32;&#61;&#32;&#112;&#45;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"95\" style=\"vertical-align: -5px;\"\/> and you should see that Fermat&#8217;s Little Theorem is just a special case of Euler&#8217;s Theorem when <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/> is a prime number. Another property of the totient function is that for any two prime numbers <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5faad0904f612a3fa5b27faafb8dc903_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#112;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: -4px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-420eca7b6df080cc5f01773d1978f44a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#113;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"8\" style=\"vertical-align: -4px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-70630132bd8bea2fdd43644752b13a56_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#104;&#105;&#40;&#112;&#113;&#41;&#32;&#61;&#32;&#92;&#112;&#104;&#105;&#40;&#112;&#41;&#32;&#92;&#112;&#104;&#105;&#40;&#113;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"131\" style=\"vertical-align: -5px;\"\/>.<\/p>\n<p>Let&#8217;s return to the new set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-023eaf0904fb41f48dd16e997c75ac90_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;&#32;&#61;&#32;&#92;&#123;&#110;&#95;&#49;&#44;&#32;&#110;&#95;&#50;&#44;&#32;&#110;&#95;&#51;&#44;&#32;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#32;&#110;&#95;&#123;&#92;&#112;&#104;&#105;&#40;&#109;&#41;&#125;&#32;&#92;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"205\" style=\"vertical-align: -8px;\"\/>. As for the case in proving Fermat&#8217;s Little Theorem, each of these numbers <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5f087375b50e0b49186779714206626b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;&#95;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"16\" style=\"vertical-align: -3px;\"\/> is less than <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/> and the congruences are all unique. Again we form a new set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-1932e8af9ad53dd9f914d45825016d50_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#92;&#99;&#100;&#111;&#116;&#32;&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"34\" style=\"vertical-align: 0px;\"\/> where we multiply each member of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-52fd2a0fc27878e7dfce68d4632b4ffb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> by the number <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/>.<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 21px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-650db86026aac1072dfb6cefc1d5b34c_l3.png\" height=\"21\" width=\"269\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#97;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#83;&#32;&#61;&#32;&#92;&#123;&#97;&#110;&#95;&#49;&#44;&#32;&#97;&#110;&#95;&#50;&#44;&#32;&#97;&#110;&#95;&#51;&#44;&#32;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#32;&#97;&#110;&#95;&#123;&#92;&#112;&#104;&#105;&#40;&#109;&#41;&#125;&#32;&#92;&#125;&#46;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>If <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-071d4416cb59cc46c95b96997c59882b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#110;&#95;&#105;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#107;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#109;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"136\" style=\"vertical-align: -5px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-62e195abd5b2dc6378bfa14a13895c74_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#110;&#95;&#106;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#107;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#109;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"137\" style=\"vertical-align: -6px;\"\/> for some <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-6716f58857dd8f571ebc7b71b1408535_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;&#44;&#32;&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"22\" style=\"vertical-align: -4px;\"\/> then this implies that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/> divides <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-115463a39c03092f36fcd22c444801bc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#110;&#95;&#105;&#32;&#45;&#32;&#110;&#95;&#106;&#41;&#32;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"77\" style=\"vertical-align: -6px;\"\/>, but <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/> are coprime so we know <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/> does not divide <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/>. Thus <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/> can only divide <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-a625b13c5da011cdde6d0a2a6ab0d0f5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;&#95;&#105;&#32;&#45;&#32;&#110;&#95;&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"55\" style=\"vertical-align: -6px;\"\/> which can only happen if <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5ada790621f8287261fe941605c7a0c7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;&#61;&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"38\" style=\"vertical-align: -4px;\"\/>. Therefore, the set <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-1932e8af9ad53dd9f914d45825016d50_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#92;&#99;&#100;&#111;&#116;&#32;&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"34\" style=\"vertical-align: 0px;\"\/> is a permutation of all the congruences contained in <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-52fd2a0fc27878e7dfce68d4632b4ffb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> modulo <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/>, just as what we found for the sets used to prove Fermat&#8217;s Little Theorem. As before, we now multiply all the congruences to see that<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 21px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-9a7f34539f5c5535194f93a0a25f718e_l3.png\" height=\"21\" width=\"478\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#40;&#110;&#95;&#49;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#110;&#95;&#50;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#110;&#95;&#51;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#110;&#95;&#123;&#92;&#112;&#104;&#105;&#40;&#109;&#41;&#125;&#41;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#40;&#110;&#95;&#49;&#97;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#110;&#95;&#50;&#97;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#110;&#95;&#51;&#97;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#110;&#95;&#123;&#92;&#112;&#104;&#105;&#40;&#109;&#41;&#125;&#97;&#41;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#109;&#125;&#44;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 25px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-24b3871c29167f2fd0c8d2cb6f89516b_l3.png\" height=\"25\" width=\"482\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#40;&#110;&#95;&#49;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#110;&#95;&#50;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#110;&#95;&#51;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#110;&#95;&#123;&#92;&#112;&#104;&#105;&#40;&#109;&#41;&#125;&#41;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#40;&#110;&#95;&#49;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#110;&#95;&#50;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#110;&#95;&#51;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#110;&#95;&#123;&#92;&#112;&#104;&#105;&#40;&#109;&#41;&#125;&#41;&#32;&#97;&#94;&#123;&#92;&#112;&#104;&#105;&#40;&#109;&#41;&#125;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#109;&#125;&#44;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>and upon dividing each side by the <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5f087375b50e0b49186779714206626b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;&#95;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"16\" style=\"vertical-align: -3px;\"\/> multiplication terms, we arrive at Euler&#8217;s Theorem for numbers <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fdc40b8ad1cdad0aab9d632215459d28_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/> coprime,<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 23px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-a2be9c6505c5d8ddc6ba5c1c5f3226a3_l3.png\" height=\"23\" width=\"165\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#97;&#94;&#123;&#92;&#112;&#104;&#105;&#40;&#109;&#41;&#125;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#49;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#109;&#125;&#46;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>As a corollary we can multiply both sides by <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/> to get the relationship<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 23px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-8c2fcdca7c6fd33347507dd0ea05a06f_l3.png\" height=\"23\" width=\"183\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#97;&#94;&#123;&#92;&#112;&#104;&#105;&#40;&#109;&#41;&#43;&#49;&#125;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#97;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#109;&#125;&#46;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-06ea09802d64125614decdd3909c544e_l3.png\" height=\"16\" width=\"249\" class=\"ql-manual-mode quicklatex-auto-format\" alt=\"Rendered by QuickLaTeX.com\" title=\"Rendered by QuickLaTeX.com\"\/><br \/>\nSo how does Euler&#8217;s Theorem help answer the question of why there is no cycle length greater than 5 for examining the last digit when raising numbers to successive powers? We&#8217;re getting there.<\/p>\n<p>Suppose <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-743b04a9dfd12bcfb339072b265f6eed_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;&#61;&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#92;&#98;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"62\" style=\"vertical-align: -4px;\"\/> where both <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5f44d9bbc8046069be4aa2989bff19aa_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#97;&#108;&#112;&#104;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0f39b655b53423e80558c68b8c2ae1c3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"11\" style=\"vertical-align: -4px;\"\/> are prime numbers and neither one divides <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/>. Then we will claim that<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 23px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-3b5cd2a2c0cd5d1861842fa53a1e5021_l3.png\" height=\"23\" width=\"189\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#97;&#94;&#123;&#92;&#112;&#104;&#105;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#92;&#98;&#101;&#116;&#97;&#41;&#43;&#49;&#125;&#32;&#61;&#32;&#97;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#92;&#97;&#108;&#112;&#104;&#97;&#92;&#98;&#101;&#116;&#97;&#125;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>holds for all values of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/>, not just those coprime to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-401978428c1ce545047ad36adae61f8a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#97;&#108;&#112;&#104;&#97;&#92;&#98;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"22\" style=\"vertical-align: -4px;\"\/>. <\/p>\n<p>If <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-4e1c8d6f2d9d335e8afb32512ff989d7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#61;&#32;&#92;&#97;&#108;&#112;&#104;&#97;&#92;&#98;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"55\" style=\"vertical-align: -4px;\"\/> then it is obviously true. If <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/> is not a multiple of either <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5f44d9bbc8046069be4aa2989bff19aa_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#97;&#108;&#112;&#104;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\"\/> or <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0f39b655b53423e80558c68b8c2ae1c3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"11\" style=\"vertical-align: -4px;\"\/> then it is true by Euler&#8217;s Theorem. All that is left is to consider the case where <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/> is a multiple of either <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5f44d9bbc8046069be4aa2989bff19aa_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#97;&#108;&#112;&#104;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\"\/> or <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0f39b655b53423e80558c68b8c2ae1c3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"11\" style=\"vertical-align: -4px;\"\/>. Suppose <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-4532a2c201028ea49add8598cf84d830_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#61;&#32;&#107;&#92;&#97;&#108;&#112;&#104;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"54\" style=\"vertical-align: 0px;\"\/> for some integer <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-d42bc2203d6f76ad01b27ac9acc0bee1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/>. Then<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 23px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-dde2f0401e60be8aeb2055775d9fffda_l3.png\" height=\"23\" width=\"226\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#40;&#107;&#92;&#97;&#108;&#112;&#104;&#97;&#41;&#94;&#123;&#92;&#112;&#104;&#105;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#92;&#98;&#101;&#116;&#97;&#41;&#32;&#43;&#32;&#49;&#125;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#107;&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#92;&#97;&#108;&#112;&#104;&#97;&#92;&#98;&#101;&#116;&#97;&#125;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>means that <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 34px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-c8841f3afd5d7601a9252eac03bd3ed5_l3.png\" height=\"34\" width=\"189\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#92;&#97;&#108;&#112;&#104;&#97;&#92;&#98;&#101;&#116;&#97;&#32;&#92;&#108;&#101;&#102;&#116;&#124;&#32;&#92;&#108;&#101;&#102;&#116;&#91;&#32;&#40;&#107;&#92;&#97;&#108;&#112;&#104;&#97;&#41;&#94;&#123;&#92;&#112;&#104;&#105;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#92;&#98;&#101;&#116;&#97;&#41;&#32;&#43;&#32;&#49;&#125;&#32;&#45;&#32;&#107;&#92;&#97;&#108;&#112;&#104;&#97;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#93;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#46;&#44;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>i.e. that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-401978428c1ce545047ad36adae61f8a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#97;&#108;&#112;&#104;&#97;&#92;&#98;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"22\" style=\"vertical-align: -4px;\"\/> divides the terms in brackets. We can clearly divide <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-95d96603b29149cabab474cfab048734_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;&#92;&#97;&#108;&#112;&#104;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"21\" style=\"vertical-align: 0px;\"\/> from both terms in the brackets so all that is left is to show the <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0f39b655b53423e80558c68b8c2ae1c3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"11\" style=\"vertical-align: -4px;\"\/> divides the terms<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 23px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-7b861bf435cc80cd497da2ba46ae3597_l3.png\" height=\"23\" width=\"100\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#40;&#107;&#92;&#97;&#108;&#112;&#104;&#97;&#41;&#94;&#123;&#92;&#112;&#104;&#105;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#92;&#98;&#101;&#116;&#97;&#41;&#32;&#125;&#32;&#45;&#32;&#49;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>Note that that by our assumptions (<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5f44d9bbc8046069be4aa2989bff19aa_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#97;&#108;&#112;&#104;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0f39b655b53423e80558c68b8c2ae1c3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"11\" style=\"vertical-align: -4px;\"\/> both prime numbers) that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-3586ac4f63323654cedfc69767c3805c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#103;&#99;&#100;&#123;&#40;&#107;&#44;&#92;&#97;&#108;&#112;&#104;&#97;&#41;&#125;&#32;&#61;&#32;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"104\" style=\"vertical-align: -5px;\"\/>, and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-79c413912850ffda7fa1a2dc8abe7e0b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#103;&#99;&#100;&#123;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#44;&#32;&#92;&#98;&#101;&#116;&#97;&#41;&#125;&#32;&#61;&#32;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"105\" style=\"vertical-align: -5px;\"\/>. By Euler&#8217;s Theorem we have that<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 34px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-77283a35dd5b77868b33a4ca025c14bc_l3.png\" height=\"34\" width=\"127\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#92;&#98;&#101;&#116;&#97;&#32;&#92;&#108;&#101;&#102;&#116;&#124;&#32;&#92;&#108;&#101;&#102;&#116;&#91;&#32;&#40;&#107;&#92;&#97;&#108;&#112;&#104;&#97;&#41;&#94;&#123;&#92;&#112;&#104;&#105;&#40;&#92;&#98;&#101;&#116;&#97;&#41;&#125;&#32;&#45;&#32;&#49;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#93;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#46;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>or<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 23px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-07f973513b864a326f928ec4a5724e53_l3.png\" height=\"23\" width=\"181\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#40;&#107;&#92;&#97;&#108;&#112;&#104;&#97;&#41;&#94;&#123;&#92;&#112;&#104;&#105;&#40;&#92;&#98;&#101;&#116;&#97;&#41;&#125;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#49;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#92;&#98;&#101;&#116;&#97;&#125;&#46;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>By the multiplicative property of modular arithmetic (see appendix) we can raise the power of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-46980632608aa2c065c99a26f085bf04_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#107;&#92;&#97;&#108;&#112;&#104;&#97;&#41;&#94;&#123;&#92;&#112;&#104;&#105;&#40;&#92;&#98;&#101;&#116;&#97;&#41;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"21\" width=\"60\" style=\"vertical-align: -5px;\"\/> and the congruence relation will still hold, so<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 37px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-9d34141b43a657a1f8546db5f68e7345_l3.png\" height=\"37\" width=\"434\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#92;&#108;&#101;&#102;&#116;&#91;&#32;&#40;&#107;&#92;&#97;&#108;&#112;&#104;&#97;&#41;&#94;&#123;&#92;&#112;&#104;&#105;&#40;&#92;&#98;&#101;&#116;&#97;&#41;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#93;&#94;&#123;&#92;&#112;&#104;&#105;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#41;&#125;&#32;&#61;&#32;&#40;&#107;&#92;&#97;&#108;&#112;&#104;&#97;&#41;&#94;&#123;&#92;&#112;&#104;&#105;&#40;&#92;&#98;&#101;&#116;&#97;&#41;&#92;&#112;&#104;&#105;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#41;&#125;&#32;&#61;&#32;&#40;&#107;&#92;&#97;&#108;&#112;&#104;&#97;&#41;&#94;&#123;&#92;&#112;&#104;&#105;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#92;&#98;&#101;&#116;&#97;&#41;&#125;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#49;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#92;&#98;&#101;&#116;&#97;&#125;&#44;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>where we made use of the fact that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-c0f045b486e72589570b214d77fd76a8_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#104;&#105;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#92;&#98;&#101;&#116;&#97;&#41;&#32;&#61;&#32;&#92;&#112;&#104;&#105;&#40;&#92;&#97;&#108;&#112;&#104;&#97;&#41;&#92;&#112;&#104;&#105;&#40;&#92;&#98;&#101;&#116;&#97;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"141\" style=\"vertical-align: -5px;\"\/> for prime numbers.<\/p>\n<p>To restate, for <em>any<\/em> number <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-8b9da62db0178ac61717e5fc850a5e87_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;&#61;&#92;&#97;&#108;&#112;&#104;&#97;&#92;&#98;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"62\" style=\"vertical-align: -4px;\"\/> where <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-5f44d9bbc8046069be4aa2989bff19aa_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#97;&#108;&#112;&#104;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0f39b655b53423e80558c68b8c2ae1c3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"11\" style=\"vertical-align: -4px;\"\/> are both prime, <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 23px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-78897a96fb28835ee3c52e34d555c6d5_l3.png\" height=\"23\" width=\"165\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#97;&#94;&#123;&#92;&#112;&#104;&#105;&#40;&#109;&#41;&#125;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#49;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#109;&#125;&#46;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-2ad0e674b9ddff62b6b31247e4f61895_l3.png\" height=\"17\" width=\"96\" class=\"ql-manual-mode quicklatex-auto-format\" alt=\"Rendered by QuickLaTeX.com\" title=\"Rendered by QuickLaTeX.com\"\/><br \/>\nFinally, to address our questions let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-4816ea291c01637eafdec1e02061ed01_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#97;&#108;&#112;&#104;&#97;&#61;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"43\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-387283d9d93e2a9aaa1ee98ae7ffdf30_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#116;&#97;&#32;&#61;&#32;&#53;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"43\" style=\"vertical-align: -4px;\"\/>, so that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-737a6049b53a52a42095aa39ef8df806_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;&#61;&#49;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"57\" style=\"vertical-align: 0px;\"\/>. We know that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-88fcaa46f1c01fc87c6d8d5ab58807a1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#104;&#105;&#40;&#49;&#48;&#41;&#32;&#61;&#32;&#52;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"75\" style=\"vertical-align: -5px;\"\/> from the previous chart. By Euler&#8217;s Theorem then, for <em>any<\/em> number <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/>,<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 22px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-763686b917479673e5ac90d0475423ed_l3.png\" height=\"22\" width=\"143\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#97;&#94;&#52;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#49;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#49;&#48;&#125;&#44;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>and<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 22px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-ab0f19ca4eaa8567c187f7e269952060_l3.png\" height=\"22\" width=\"143\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#97;&#94;&#53;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#97;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#49;&#48;&#125;&#46;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>The fact that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-8a331aec8f3c00d4364d752fc659715c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#94;&#53;&#32;&#45;&#32;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"48\" style=\"vertical-align: 0px;\"\/> is evenly divisible by 10 means that any number that has been raised to the fifth power ends in a digit that is the same as the last digit of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0e55b0b3943237ccfc96979505679274_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"9\" style=\"vertical-align: 0px;\"\/>, answering one of our questions. We also know from earlier discussions that once a number ends in the same digit as the last digit of the number with which we began, that the cycle starts again. There can be no cycle of length greater than 5.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-6516fbc9c97317483144d3e3c53eeede_l3.png\" height=\"22\" width=\"113\" class=\"ql-manual-mode quicklatex-auto-format\" alt=\"Rendered by QuickLaTeX.com\" title=\"Rendered by QuickLaTeX.com\"\/><br \/>\nThe multiplicative property of modular arithmetic states that if <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-f55ecf63e35f004cfdb51482957722d8_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#95;&#49;&#32;&#61;&#32;&#98;&#95;&#49;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#109;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"133\" style=\"vertical-align: -5px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-131c826a85a57c0a41b3e19aa8e6d261_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#95;&#50;&#32;&#61;&#32;&#98;&#95;&#50;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#109;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"133\" style=\"vertical-align: -5px;\"\/> then <\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-945dd6d60b3833a9ce6e5a031815f3cd_l3.png\" height=\"19\" width=\"181\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#32;&#97;&#95;&#49;&#32;&#97;&#95;&#50;&#32;&#61;&#32;&#98;&#95;&#49;&#32;&#98;&#50;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#109;&#125;&#46;&#32;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n<p>To see this, note that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-62818b0c1d804560746c8454810caea0_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#95;&#49;&#32;&#61;&#32;&#107;&#95;&#49;&#32;&#109;&#32;&#43;&#32;&#98;&#95;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"109\" style=\"vertical-align: -3px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-89e179a9ed395bb82fb6fd3243b5edef_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#95;&#50;&#32;&#61;&#32;&#107;&#95;&#50;&#32;&#109;&#32;&#43;&#32;&#98;&#95;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"110\" style=\"vertical-align: -3px;\"\/>. Then<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 48px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.davidgunter.com\/wordpress\/wp-content\/ql-cache\/quicklatex.com-f8163cc88eeb3a202b3cb4cdb65b5194_l3.png\" height=\"48\" width=\"328\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125; &#97;&#95;&#49;&#32;&#97;&#95;&#50;&#32;&#38;&#32;&#61;&#32;&#38;&#32;&#107;&#95;&#49;&#32;&#107;&#95;&#50;&#32;&#109;&#94;&#50;&#32;&#43;&#32;&#107;&#95;&#49;&#32;&#98;&#95;&#50;&#32;&#109;&#32;&#43;&#32;&#107;&#95;&#50;&#32;&#98;&#95;&#49;&#32;&#109;&#32;&#43;&#32;&#98;&#95;&#49;&#32;&#98;&#95;&#50;&#32;&#32;&#92;&#92;&#32; &#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#38;&#32;&#92;&#101;&#113;&#117;&#105;&#118;&#32;&#38;&#32;&#98;&#95;&#49;&#32;&#98;&#95;&#50;&#32;&#92;&#112;&#109;&#111;&#100;&#123;&#109;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#110;&#97;&#114;&#114;&#97;&#121;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently drove 12 hours from our home in Santa Fe to our beach spot in Mexico while Sonya had numerous virtual meetings and phone calls en route. This meant that I was not&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1468,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[159],"tags":[162,161,163,160,164],"class_list":["post-1336","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mathematics","tag-eulers-theorom","tag-fermats-little-theorem","tag-fifth-powers","tag-mathematics","tag-modular-arithmetic"],"_links":{"self":[{"href":"https:\/\/www.davidgunter.com\/es-mx\/wp-json\/wp\/v2\/posts\/1336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.davidgunter.com\/es-mx\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.davidgunter.com\/es-mx\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.davidgunter.com\/es-mx\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.davidgunter.com\/es-mx\/wp-json\/wp\/v2\/comments?post=1336"}],"version-history":[{"count":5,"href":"https:\/\/www.davidgunter.com\/es-mx\/wp-json\/wp\/v2\/posts\/1336\/revisions"}],"predecessor-version":[{"id":1469,"href":"https:\/\/www.davidgunter.com\/es-mx\/wp-json\/wp\/v2\/posts\/1336\/revisions\/1469"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.davidgunter.com\/es-mx\/wp-json\/wp\/v2\/media\/1468"}],"wp:attachment":[{"href":"https:\/\/www.davidgunter.com\/es-mx\/wp-json\/wp\/v2\/media?parent=1336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.davidgunter.com\/es-mx\/wp-json\/wp\/v2\/categories?post=1336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.davidgunter.com\/es-mx\/wp-json\/wp\/v2\/tags?post=1336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}