<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>modular arithmetic &#8211; Problems in Mathematics</title>
	<atom:link href="https://yutsumura.com/tag/modular-arithmetic/feed/" rel="self" type="application/rss+xml" />
	<link>https://yutsumura.com</link>
	<description></description>
	<lastBuildDate>Thu, 30 Nov 2017 23:34:44 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.3.6</generator>

<image>
	<url>https://i2.wp.com/yutsumura.com/wp-content/uploads/2016/12/cropped-question-logo.jpg?fit=32%2C32&#038;ssl=1</url>
	<title>modular arithmetic &#8211; Problems in Mathematics</title>
	<link>https://yutsumura.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">114989322</site>	<item>
		<title>The Trick of a Mathematical Game. The One&#8217;s Digit of the Sum of Two Numbers.</title>
		<link>https://yutsumura.com/the-trick-of-a-mathematical-game-the-ones-digit-of-the-sum-of-two-numbers/</link>
				<comments>https://yutsumura.com/the-trick-of-a-mathematical-game-the-ones-digit-of-the-sum-of-two-numbers/#respond</comments>
				<pubDate>Fri, 28 Jul 2017 01:08:41 +0000</pubDate>
		<dc:creator><![CDATA[Yu]]></dc:creator>
				<category><![CDATA[Math-Magic]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[math-magic]]></category>
		<category><![CDATA[modular arithmetic]]></category>
		<category><![CDATA[remainder]]></category>
		<category><![CDATA[trick]]></category>

		<guid isPermaLink="false">https://yutsumura.com/?p=4101</guid>
				<description><![CDATA[<p>Decipher the trick of the following mathematical magic. &#160; The Rule of the Game Here is the game. Pick six natural numbers ($1, 2, 3, \dots$) and place them in the yellow discs of&#46;&#46;&#46;</p>
<p>The post <a href="https://yutsumura.com/the-trick-of-a-mathematical-game-the-ones-digit-of-the-sum-of-two-numbers/" target="_blank">The Trick of a Mathematical Game. The One's Digit of the Sum of Two Numbers.</a> first appeared on <a href="https://yutsumura.com/" target="_blank">Problems in Mathematics</a>.</p>]]></description>
								<content:encoded><![CDATA[<h2> Problem 521</h2>
<p>Decipher the trick of the following mathematical magic.</p>
<p>&nbsp;<br />
<span id="more-4101"></span></p>
<h2>The Rule of the Game </h2>
<p>Here is the game.</p>
<p>Pick six natural numbers ($1, 2, 3, \dots$) and place them in the yellow discs of the picture below.</p>
<p><img src="https://i2.wp.com/yutsumura.com/wp-content/uploads/2017/07/Untitled-drawing-4.jpg?resize=960%2C720" alt="Math-Magic Tree empty" width="960" height="720" class="alignnone size-full wp-image-4102" srcset="https://i2.wp.com/yutsumura.com/wp-content/uploads/2017/07/Untitled-drawing-4.jpg?w=960&amp;ssl=1 960w, https://i2.wp.com/yutsumura.com/wp-content/uploads/2017/07/Untitled-drawing-4.jpg?resize=300%2C225&amp;ssl=1 300w, https://i2.wp.com/yutsumura.com/wp-content/uploads/2017/07/Untitled-drawing-4.jpg?resize=768%2C576&amp;ssl=1 768w" sizes="(max-width: 960px) 100vw, 960px" data-recalc-dims="1" /></p>
<p>For example, let&#8217;s say I have chosen the numbers $7, 5, 3, 2, 9, 4$.<br />
<img src="https://i0.wp.com/yutsumura.com/wp-content/uploads/2017/07/Untitled-drawing-3.jpg?resize=960%2C720" alt="Math-Magic Tree top row" width="960" height="720" class="alignnone size-full wp-image-4103" srcset="https://i0.wp.com/yutsumura.com/wp-content/uploads/2017/07/Untitled-drawing-3.jpg?w=960&amp;ssl=1 960w, https://i0.wp.com/yutsumura.com/wp-content/uploads/2017/07/Untitled-drawing-3.jpg?resize=300%2C225&amp;ssl=1 300w, https://i0.wp.com/yutsumura.com/wp-content/uploads/2017/07/Untitled-drawing-3.jpg?resize=768%2C576&amp;ssl=1 768w" sizes="(max-width: 960px) 100vw, 960px" data-recalc-dims="1" /></p>
<p>The next step is adding the adjacent two numbers and put the one&#8217;s digit of the sum in the discs connecting the two.</p>
<p>For example, look at the top-left numbers $7$ and $5$.</p>
<p>The sum is $7+5=12$, and the one&#8217;s digit is $2$. So I put $2$ in the blue disc below the discs of $7$ and $5$.</p>
<p>Repeat this procedure: Summing two numbers next to each other and write down the one&#8217;s digit of the sum below.</p>
<p>The number on the last disc ( the red one) is your result.</p>
<p>With my choice $7, 5, 3, 2, 9, 4$, I get<br />
<img src="https://i1.wp.com/yutsumura.com/wp-content/uploads/2017/07/Untitled-drawing-2.jpg?resize=960%2C720" alt="Math-Magic Tree filled" width="960" height="720" class="alignnone size-full wp-image-4104" srcset="https://i1.wp.com/yutsumura.com/wp-content/uploads/2017/07/Untitled-drawing-2.jpg?w=960&amp;ssl=1 960w, https://i1.wp.com/yutsumura.com/wp-content/uploads/2017/07/Untitled-drawing-2.jpg?resize=300%2C225&amp;ssl=1 300w, https://i1.wp.com/yutsumura.com/wp-content/uploads/2017/07/Untitled-drawing-2.jpg?resize=768%2C576&amp;ssl=1 768w" sizes="(max-width: 960px) 100vw, 960px" data-recalc-dims="1" /><br />
and the result is $1$.</p>
<p>This is the rule of the game.</p>
<h2>Lightning Speed Computation </h2>
<p>Now, let play this game with you.</p>
<p>Suppose that you chose the numbers are $6, 3, 11, 5, 2, 1$.<br />
Then you start the game. As soon as you write down the one&#8217;s digit of the first sum, I exclaim that the result is $2$!!<br />
(We will come back to this after explaining the trick.)</p>
<hr />
<p>How did I get the answer very quickly? Am I a computational generous that can calculate like a robot?</p>
<p>No.</p>
<p>There is a trick, a mathematical trick behind the game.</p>
<h2>A Secret Trick of the Mathematical Magic</h2>
<p>Let me give the conclusion first.</p>
<div style="padding: 16px; border: none 3px #4169e1; border-radius: 10px; background-color: #f0f8ff; margin-top: 30px; margin-bottom: 30px;">
<strong>Trick</strong>.<br />
If the six numbers are $a, b, c, d, e, f$, then the result is given by the one&#8217;s digit of the number<br />
\[a+f+5(b+e).\]
<p>Furthermore, </p>
<ul>
<li>If $b+e$ is even, then the result is the one&#8217;s digit of $a+f$. </li>
<li>If $b+e$ is odd, then the result is the one&#8217;s digit of $a+f+5$.</li>
</ul>
</div>
<h3>Proof of the Trick</h3>
<p>Let $a, b, c, d, e, f$ be the chosen six natural numbers.</p>
<p>Here is an important observation.<br />
Even though we take the one&#8217;s digit after summing two numbers, the result will not change if we just sum numbers in each step except the last step (we take the one&#8217;s digit of the last entry).</p>
<p>So  we have the tree diagram<br />
<img src="https://i1.wp.com/yutsumura.com/wp-content/uploads/2017/07/tree.jpg?resize=960%2C720" alt="Math-Magic Tree Trick" width="960" height="720" class="alignnone size-full wp-image-4105" srcset="https://i1.wp.com/yutsumura.com/wp-content/uploads/2017/07/tree.jpg?w=960&amp;ssl=1 960w, https://i1.wp.com/yutsumura.com/wp-content/uploads/2017/07/tree.jpg?resize=300%2C225&amp;ssl=1 300w, https://i1.wp.com/yutsumura.com/wp-content/uploads/2017/07/tree.jpg?resize=768%2C576&amp;ssl=1 768w" sizes="(max-width: 960px) 100vw, 960px" data-recalc-dims="1" /></p>
<p>So the result is the one&#8217;s digit of<br />
\[a+5b+10c+10d+5e+f.\]
<p>Note that the one&#8217;s digit of a number is the remainder when the number is divided by $10$.<br />
(If you know modular arithmetic, then this means that we compute modulo $10$.)</p>
<p>Thus, $10c$ and $10d$ give no contribution to the remainder.</p>
<p>It follows that the result is the one&#8217;s digit of<br />
\[a+5b+5e+f=a+f+5(b+e).\]
<hr />
<p>If $b+e$ is even, then $5(b+e)$ is a multiple of $10$.<br />
Hence the one&#8217;s digit of $5(b+e)$ is zero.</p>
<p>Thus if $b+e$ is even, then the result is the one&#8217;s digit of $a+f$.</p>
<hr />
<p>If $b+e$ is odd, then the one&#8217;s digit of $5(b+e)$ is always $5$.</p>
<p>Hence if $b+e$ is odd, then the result is the one&#8217;s digit of $a+f+5$.</p>
<hr />
<p>This is the trick of the game.</p>
<p>An interesting observation is that the middle numbers $c, d$ do not appear in the formula.</p>
<h2>Example </h2>
<p>Let&#8217;s go back the numbers $6, 3, 11, 5, 2, 1$.</p>
<p>In this case, $a=6, b=3, c=11, d=5, e=2, f=1$.</p>
<p>We compute<br />
\[a+f+5(b+e)=6+1+5(3+2)=7+25=32\]
and the one&#8217;s digit of $32$ is $2$.</p>
<p>Thus the result is $2$ as I exclaimed before.</p>
<hr />
<p>The faster way is to determine the parity of $b+e$ first.<br />
Since $b+e=3+2=5$ is odd, the result is the one&#8217;s digit of $a+f+5=6+1+5$, and hence the result is $2$.</p>
<hr />
<p>If you don&#8217;t know the formula then you would complete the tree diagram like this:<br />
<img src="https://i2.wp.com/yutsumura.com/wp-content/uploads/2017/07/Untitled-drawing-5.jpg?resize=960%2C720" alt="Math-Magic Tree example" width="960" height="720" class="alignnone size-full wp-image-4106" srcset="https://i2.wp.com/yutsumura.com/wp-content/uploads/2017/07/Untitled-drawing-5.jpg?w=960&amp;ssl=1 960w, https://i2.wp.com/yutsumura.com/wp-content/uploads/2017/07/Untitled-drawing-5.jpg?resize=300%2C225&amp;ssl=1 300w, https://i2.wp.com/yutsumura.com/wp-content/uploads/2017/07/Untitled-drawing-5.jpg?resize=768%2C576&amp;ssl=1 768w" sizes="(max-width: 960px) 100vw, 960px" data-recalc-dims="1" /><br />
and clearly it takes more time to get the result without the trick.</p>
<h3>Modulo $10$</h3>
<p>Here is a tip to use the formula $a+f+5(b+e)$.</p>
<p>If the numbers are relatively small, then just compute it and find the one&#8217;s digit.</p>
<p>But remember that you can always do modulo $10$ computation anytime. (Considering the one&#8217;s digit or the remainder of division by $10$.)</p>
<p>For example, if $a=11, f=29, b=17, e=104$ are given, I first find the one&#8217;s digits of them and can assume that $a=1, f=9, b=7, e=4$.</p>
<p>Then $a+f=10$ and the one&#8217;s digit is $0$. So I can safely ignore the $a+f$ part in the formula.<br />
Next, $b+e=11$ and the one&#8217;s digit is $1$.<br />
(Or you could first determine the parity of $b+e$.)</p>
<p>Thus by the formula, the result is $5$.</p>
<h2>Do Practice and Have some Fun! </h2>
<p>Practice how to use the formula several times and get used to it.</p>
<p>Then show off your machinelike computational skill and amaze your friend!!</p>
<button class="simplefavorite-button has-count" data-postid="4101" data-siteid="1" data-groupid="1" data-favoritecount="20" style="">Click here if solved <i class="sf-icon-star-empty"></i><span class="simplefavorite-button-count" style="">20</span></button><p>The post <a href="https://yutsumura.com/the-trick-of-a-mathematical-game-the-ones-digit-of-the-sum-of-two-numbers/" target="_blank">The Trick of a Mathematical Game. The One's Digit of the Sum of Two Numbers.</a> first appeared on <a href="https://yutsumura.com/" target="_blank">Problems in Mathematics</a>.</p>]]></content:encoded>
							<wfw:commentRss>https://yutsumura.com/the-trick-of-a-mathematical-game-the-ones-digit-of-the-sum-of-two-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
						<post-id xmlns="com-wordpress:feed-additions:1">4101</post-id>	</item>
		<item>
		<title>The Quadratic Integer Ring $\Z[\sqrt{5}]$ is not a Unique Factorization Domain (UFD)</title>
		<link>https://yutsumura.com/the-quadratic-integer-ring-zsqrt5-is-not-a-unique-factorization-domain-ufd/</link>
				<comments>https://yutsumura.com/the-quadratic-integer-ring-zsqrt5-is-not-a-unique-factorization-domain-ufd/#comments</comments>
				<pubDate>Tue, 25 Jul 2017 03:56:31 +0000</pubDate>
		<dc:creator><![CDATA[Yu]]></dc:creator>
				<category><![CDATA[Ring theory]]></category>
		<category><![CDATA[irreducible element]]></category>
		<category><![CDATA[modular arithmetic]]></category>
		<category><![CDATA[norm]]></category>
		<category><![CDATA[quadratic integer ring]]></category>
		<category><![CDATA[ring theory]]></category>
		<category><![CDATA[UFD]]></category>
		<category><![CDATA[Unique Factorization Domain]]></category>
		<category><![CDATA[unit element]]></category>

		<guid isPermaLink="false">https://yutsumura.com/?p=4023</guid>
				<description><![CDATA[<p>Prove that the quadratic integer ring $\Z[\sqrt{5}]$ is not a Unique Factorization Domain (UFD). &#160; Proof. Every element of the ring $\Z[\sqrt{5}]$ can be written as $a+b\sqrt{5}$ for some integers $a, b$. The (field)&#46;&#46;&#46;</p>
<p>The post <a href="https://yutsumura.com/the-quadratic-integer-ring-zsqrt5-is-not-a-unique-factorization-domain-ufd/" target="_blank">The Quadratic Integer Ring $\Z[\sqrt{5}]$ is not a Unique Factorization Domain (UFD)</a> first appeared on <a href="https://yutsumura.com/" target="_blank">Problems in Mathematics</a>.</p>]]></description>
								<content:encoded><![CDATA[<h2> Problem 519</h2>
<p>	Prove that the quadratic integer ring $\Z[\sqrt{5}]$ is not a Unique Factorization Domain (UFD).</p>
<p>&nbsp;<br />
<span id="more-4023"></span><br />

<h2> Proof. </h2>
<p>    	Every element of the ring $\Z[\sqrt{5}]$ can be written as $a+b\sqrt{5}$ for some integers $a, b$.<br />
    	The (field) norm $N$ of an element $a+b\sqrt{5}$ is defined by<br />
    	\[N(a+b\sqrt{5})=(a+b\sqrt{5})(a-b\sqrt{5})=a^2-5b^2.\]
<p>    	Consider the case when $a=3, b=1$.<br />
    	Then we have<br />
    	\[(3+\sqrt{5})(3-\sqrt{5})=4=2\cdot 2. \tag{*}\]
<p>    	We prove that elements $2, 3\pm \sqrt{5}$ are irreducible in $\Z[\sqrt{5}]$.<br />
    	Note that the norms of these elements are $4$.<br />
    	<strong>We claim that each element $\alpha \in \Z[\sqrt{5}]$ of norm $4$ is irreducible</strong>.</p>
<hr />
<p>    	Suppose that $\alpha=\beta \gamma$ for some $\beta, \gamma \in \Z[\sqrt{5}]$.<br />
    	Our objective is to show that either $\beta$ or $\gamma$ is a unit.</p>
<p>    	Since we have<br />
    	\[4=N(\alpha)=N(\beta \gamma)=N(\beta) N(\gamma)\]
    	and the norms are integers, the value of $N(\beta)$ is one of $\pm 1, \pm 2, \pm 4$.</p>
<p>    	If $N(\beta)=\pm 1$, then $\beta$ is a unit.<br />
    	If $N(\beta)=\pm 4$, then $N(\gamma)=\pm 1$ and hence $\gamma$ is a unit.</p>
<p>    	Let us consider the case $N(\beta)=\pm 2$.<br />
    	We show that this case does not happen.<br />
    	Write $\beta=a+b\sqrt{5}$ for some integers $a, b$.<br />
    	Then we have<br />
    	\[\pm 2 =N(\beta)=a^2-5b^2.\]
    	 Considering the above equality modulo $5$ yields that<br />
    	\[\pm 2 \equiv a^2 \pmod{5}.\]
    	However note that any square of an integer modulo $5$ is one of $0, 1, 4$.<br />
    	So this shows that there is no such $a$.</p>
<p>    	Therefore, we have proved that either $\beta$ or $\gamma$ is a unit, hence $\alpha$ is irreducible.<br />
    	The claim is proved.</p>
<hr />
<p>    	It follows from (*) that the element $4 \in \Z[\sqrt{5}]$ has two different decompositions into irreducible elements.<br />
    	Thus the ring $\Z[\sqrt{5}]$ is not a UFD.</p>
<h2> Related Question. </h2>
<div style="padding: 16px; border: none 3px #4169e1; border-radius: 10px; background-color: #f0f8ff; margin-top: 30px; margin-bottom: 30px;">
<strong>Problem</strong>.<br />
Prove that the quadratic integer ring $\Z[\sqrt{-5}]$ is not a Unique Factorization Domain (UFD).
</div>
<p>This problem only differs from the current problem by the sign.<br />
($-5$ is used instead of $5$.)</p>
<p>For a proof of this problem, check out the post &#8628;<br />
<a href="//yutsumura.com/the-quadratic-integer-ring-zsqrt-5-is-not-a-unique-factorization-domain-ufd/" target="_blank">The Quadratic Integer Ring $\Z[\sqrt{-5}]$ is not a Unique Factorization Domain (UFD)</a></p>
<button class="simplefavorite-button has-count" data-postid="4023" data-siteid="1" data-groupid="1" data-favoritecount="50" style="">Click here if solved <i class="sf-icon-star-empty"></i><span class="simplefavorite-button-count" style="">50</span></button><p>The post <a href="https://yutsumura.com/the-quadratic-integer-ring-zsqrt5-is-not-a-unique-factorization-domain-ufd/" target="_blank">The Quadratic Integer Ring $\Z[\sqrt{5}]$ is not a Unique Factorization Domain (UFD)</a> first appeared on <a href="https://yutsumura.com/" target="_blank">Problems in Mathematics</a>.</p>]]></content:encoded>
							<wfw:commentRss>https://yutsumura.com/the-quadratic-integer-ring-zsqrt5-is-not-a-unique-factorization-domain-ufd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
						<post-id xmlns="com-wordpress:feed-additions:1">4023</post-id>	</item>
	</channel>
</rss>
