<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ubc.ca/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jerome</id>
	<title>UBC Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ubc.ca/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jerome"/>
	<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/Special:Contributions/Jerome"/>
	<updated>2026-07-23T09:11:58Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=91061</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=91061"/>
		<updated>2011-04-11T18:01:27Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* Problem 2 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. Despite being commonly perceived as difficult to apply, it is actually a simple technique based on a logical inference rule. Like all techniques, practice makes proficiency.&lt;br /&gt;
&lt;br /&gt;
== Form ==&lt;br /&gt;
&lt;br /&gt;
Recall the inference rule known as &#039;&#039;modus ponens&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \rightarrow b&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now suppose we have a property P(&#039;&#039;n&#039;&#039;) for a natural number &#039;&#039;n&#039;&#039;. First, prove the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where f(&#039;&#039;n&#039;&#039;) is some function on &#039;&#039;n&#039;&#039;. The left-hand side of the claim is called the &#039;&#039;inductive hypothesis&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, prove P(&#039;&#039;n&#039;&#039;) for &#039;&#039;n&#039;&#039; = &#039;&#039;x&#039;&#039;. This is called a &#039;&#039;base premise&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, apply modus ponens, resulting in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(x))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(f(x)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
=== A Special Case ===&lt;br /&gt;
&lt;br /&gt;
The following case is seen often:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. This simply proves P(&#039;&#039;n&#039;&#039;) for all &#039;&#039;n&#039;&#039; greater than or equal to &#039;&#039;x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Strong Induction ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, the inductive hypothesis can be changed in order to express proofs more elegantly. One such change is the following:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } c \le k \le n \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } c \le k \le x&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. Here, we prove P(&#039;&#039;n&#039;&#039;) for all &#039;&#039;n&#039;&#039; greater or equal to &#039;&#039;c&#039;&#039;. This is called &amp;quot;strong induction&amp;quot; because its hypothesis is stricter, or stronger.&lt;br /&gt;
&lt;br /&gt;
Note that &amp;quot;all&amp;quot; is taken to mean all possible values within the domain of the problem.&lt;br /&gt;
&lt;br /&gt;
=== Final Thoughts ===&lt;br /&gt;
&lt;br /&gt;
All proofs using induction consist of a proof of an inductive claim and one or more proofs of base premises. Other claims can support the inductive claim, if needed. Examples will follow.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(&#039;&#039;n&#039;&#039; + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property, formally written&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = Q(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (Q + y^n)(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From the sum of powers formula, &#039;&#039;Q&#039;&#039; is an integer. Since &#039;&#039;Q + y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is an integer, this satisfies P(&#039;&#039;n&#039;&#039; + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using strong induction. Let P(&#039;&#039;n&#039;&#039;) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. We note that when&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;n&#039;&#039; = 8, we can make 8 units using 3, 5.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; = 9, we can make 9 units using 3, 3, 3.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; = 10, we can make 10 units using 5, 5.&lt;br /&gt;
&lt;br /&gt;
Therefore, we have&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } 8 \le k \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for &#039;&#039;n&#039;&#039; = 10. We can add a 3-unit coin to &#039;&#039;n&#039;&#039; - 2, giving &#039;&#039;n&#039;&#039; + 1. Thus&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } 8 \le k \le n \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore, P(&#039;&#039;n&#039;&#039;) for all natural numbers &#039;&#039;n&#039;&#039; greater than 7.&lt;br /&gt;
&lt;br /&gt;
=== Problem 4 ===&lt;br /&gt;
&lt;br /&gt;
Without using the fundamental theorem of arithmetic, prove that for every natural number &#039;&#039;n&#039;&#039; there exists an integer &#039;&#039;x&#039;&#039; and an odd integer &#039;&#039;y&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n = 2^{x}y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
2n &amp;amp; = 2 \cdot 2^{x}y \\&lt;br /&gt;
&amp;amp; = 2^{x+1}y \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;x&#039;&#039; + 1 is also an integer, this satisfies P(2&#039;&#039;n&#039;&#039;). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(2n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; be any odd integer. Then, letting &#039;&#039;x&#039;&#039; = 0 and &#039;&#039;y&#039;&#039; = &#039;&#039;n&#039;&#039; satisfies P(n). Therefore, we have proven the claim that P(&#039;&#039;n&#039;&#039;) for all odd integers &#039;&#039;n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Now, we use strong induction to complete the proof. If&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } 1 \le k \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then consider two cases:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is odd. Then, P(n + 1) by the second claim.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is even. Then, since&lt;br /&gt;
::&amp;lt;math&amp;gt;1 \le \frac{n+1}{2} \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
:therefore P((&#039;&#039;n&#039;&#039; + 1) / 2) by the inductive hypothesis, and P(&#039;&#039;n&#039;&#039; + 1) by the first claim.&lt;br /&gt;
&lt;br /&gt;
We have now proven&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since P(1), it follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematics]]&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=57909</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=57909"/>
		<updated>2010-10-27T01:42:17Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* Problem 3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. Despite being commonly perceived as difficult to apply, it is actually a simple technique based on a logical inference rule. Like all techniques, practice makes proficiency.&lt;br /&gt;
&lt;br /&gt;
== Form ==&lt;br /&gt;
&lt;br /&gt;
Recall the inference rule known as &#039;&#039;modus ponens&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \rightarrow b&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now suppose we have a property P(&#039;&#039;n&#039;&#039;) for a natural number &#039;&#039;n&#039;&#039;. First, prove the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where f(&#039;&#039;n&#039;&#039;) is some function on &#039;&#039;n&#039;&#039;. The left-hand side of the claim is called the &#039;&#039;inductive hypothesis&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, prove P(&#039;&#039;n&#039;&#039;) for &#039;&#039;n&#039;&#039; = &#039;&#039;x&#039;&#039;. This is called a &#039;&#039;base premise&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, apply modus ponens, resulting in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(x))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(f(x)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
=== A Special Case ===&lt;br /&gt;
&lt;br /&gt;
The following case is seen often:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. This simply proves P(&#039;&#039;n&#039;&#039;) for all &#039;&#039;n&#039;&#039; greater than or equal to &#039;&#039;x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Strong Induction ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, the inductive hypothesis can be changed in order to express proofs more elegantly. One such change is the following:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } c \le k \le n \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } c \le k \le x&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. Here, we prove P(&#039;&#039;n&#039;&#039;) for all &#039;&#039;n&#039;&#039; greater or equal to &#039;&#039;c&#039;&#039;. This is called &amp;quot;strong induction&amp;quot; because its hypothesis is stricter, or stronger.&lt;br /&gt;
&lt;br /&gt;
Note that &amp;quot;all&amp;quot; is taken to mean all possible values within the domain of the problem.&lt;br /&gt;
&lt;br /&gt;
=== Final Thoughts ===&lt;br /&gt;
&lt;br /&gt;
All proofs using induction consist of a proof of an inductive claim and one or more proofs of base premises. Other claims can support the inductive claim, if needed. Examples will follow.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(&#039;&#039;n&#039;&#039; + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property, formally written&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = xk(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (xk + y^n)(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;xk + y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is an integer, this satisfies P(&#039;&#039;n&#039;&#039; + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using strong induction. Let P(&#039;&#039;n&#039;&#039;) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. We note that when&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;n&#039;&#039; = 8, we can make 8 units using 3, 5.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; = 9, we can make 9 units using 3, 3, 3.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; = 10, we can make 10 units using 5, 5.&lt;br /&gt;
&lt;br /&gt;
Therefore, we have&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } 8 \le k \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for &#039;&#039;n&#039;&#039; = 10. We can add a 3-unit coin to &#039;&#039;n&#039;&#039; - 2, giving &#039;&#039;n&#039;&#039; + 1. Thus&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } 8 \le k \le n \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore, P(&#039;&#039;n&#039;&#039;) for all natural numbers &#039;&#039;n&#039;&#039; greater than 7.&lt;br /&gt;
&lt;br /&gt;
=== Problem 4 ===&lt;br /&gt;
&lt;br /&gt;
Without using the fundamental theorem of arithmetic, prove that for every natural number &#039;&#039;n&#039;&#039; there exists an integer &#039;&#039;x&#039;&#039; and an odd integer &#039;&#039;y&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n = 2^{x}y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
2n &amp;amp; = 2 \cdot 2^{x}y \\&lt;br /&gt;
&amp;amp; = 2^{x+1}y \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;x&#039;&#039; + 1 is also an integer, this satisfies P(2&#039;&#039;n&#039;&#039;). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(2n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; be any odd integer. Then, letting &#039;&#039;x&#039;&#039; = 0 and &#039;&#039;y&#039;&#039; = &#039;&#039;n&#039;&#039; satisfies P(n). Therefore, we have proven the claim that P(&#039;&#039;n&#039;&#039;) for all odd integers &#039;&#039;n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Now, we use strong induction to complete the proof. If&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } 1 \le k \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then consider two cases:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is odd. Then, P(n + 1) by the second claim.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is even. Then, since&lt;br /&gt;
::&amp;lt;math&amp;gt;1 \le \frac{n+1}{2} \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
:therefore P((&#039;&#039;n&#039;&#039; + 1) / 2) by the inductive hypothesis, and P(&#039;&#039;n&#039;&#039; + 1) by the first claim.&lt;br /&gt;
&lt;br /&gt;
We have now proven&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since P(1), it follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematics]]&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=User:Jerome&amp;diff=57908</id>
		<title>User:Jerome</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=User:Jerome&amp;diff=57908"/>
		<updated>2010-10-27T01:30:54Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Stuff ==&lt;br /&gt;
&lt;br /&gt;
[[Propositional Logic]]&lt;br /&gt;
&lt;br /&gt;
[[Predicate Logic]]&lt;br /&gt;
&lt;br /&gt;
[[Mathematical Induction]]&lt;br /&gt;
&lt;br /&gt;
[[Modular Arithmetic]]&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=User:Jerome&amp;diff=57907</id>
		<title>User:Jerome</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=User:Jerome&amp;diff=57907"/>
		<updated>2010-10-27T01:30:08Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Stuff ==&lt;br /&gt;
&lt;br /&gt;
[[Propositional Logic]]&lt;br /&gt;
&lt;br /&gt;
[[Predicate Logic]]&lt;br /&gt;
&lt;br /&gt;
[[Mathematical Induction]]&lt;br /&gt;
&lt;br /&gt;
[[Modular Arithmetic]]&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
[[Sandbox/Jerome&#039;s Notes]]&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=User_talk:Jerome&amp;diff=57905</id>
		<title>User talk:Jerome</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=User_talk:Jerome&amp;diff=57905"/>
		<updated>2010-10-27T01:26:31Z</updated>

		<summary type="html">&lt;p&gt;Jerome: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=User:Jerome&amp;diff=48054</id>
		<title>User:Jerome</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=User:Jerome&amp;diff=48054"/>
		<updated>2010-09-20T01:17:37Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Pages ==&lt;br /&gt;
&lt;br /&gt;
[[Propositional Logic]]&lt;br /&gt;
&lt;br /&gt;
[[Predicate Logic]]&lt;br /&gt;
&lt;br /&gt;
[[Mathematical Induction]]&lt;br /&gt;
&lt;br /&gt;
[[Modular Arithmetic]]&lt;br /&gt;
&lt;br /&gt;
== Under construction ==&lt;br /&gt;
&lt;br /&gt;
[[Basics of Linear Algebra]]&lt;br /&gt;
&lt;br /&gt;
[[CPSC 110 Reference]]&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=User:Jerome&amp;diff=48053</id>
		<title>User:Jerome</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=User:Jerome&amp;diff=48053"/>
		<updated>2010-09-20T01:17:00Z</updated>

		<summary type="html">&lt;p&gt;Jerome: Created page with &amp;#039;Pages:  Propositional Logic Predicate Logic Mathematical Induction Modular Arithmetic  Under construction:  Basics of Linear Algebra CPSC 110&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Pages:&lt;br /&gt;
&lt;br /&gt;
[[Propositional Logic]]&lt;br /&gt;
[[Predicate Logic]]&lt;br /&gt;
[[Mathematical Induction]]&lt;br /&gt;
[[Modular Arithmetic]]&lt;br /&gt;
&lt;br /&gt;
Under construction:&lt;br /&gt;
&lt;br /&gt;
[[Basics of Linear Algebra]]&lt;br /&gt;
[[CPSC 110]]&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=44773</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=44773"/>
		<updated>2010-08-30T23:31:33Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* Problem 3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. Despite being commonly perceived as difficult to apply, it is actually a simple technique based on a logical inference rule. Like all techniques, practice makes proficiency.&lt;br /&gt;
&lt;br /&gt;
== Form ==&lt;br /&gt;
&lt;br /&gt;
Recall the inference rule known as &#039;&#039;modus ponens&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \rightarrow b&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now suppose we have a property P(&#039;&#039;n&#039;&#039;) for a natural number &#039;&#039;n&#039;&#039;. First, prove the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where f(&#039;&#039;n&#039;&#039;) is some function on &#039;&#039;n&#039;&#039;. The left-hand side of the claim is called the &#039;&#039;inductive hypothesis&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, prove P(&#039;&#039;n&#039;&#039;) for &#039;&#039;n&#039;&#039; = &#039;&#039;x&#039;&#039;. This is called a &#039;&#039;base premise&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, apply modus ponens, resulting in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(x))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(f(x)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
=== A Special Case ===&lt;br /&gt;
&lt;br /&gt;
The following case is seen often:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. This simply proves P(&#039;&#039;n&#039;&#039;) for all &#039;&#039;n&#039;&#039; greater than or equal to &#039;&#039;x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Strong Induction ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, the inductive hypothesis can be changed in order to express proofs more elegantly. One such change is the following:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } c \le k \le n \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } c \le k \le x&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. Here, we prove P(&#039;&#039;n&#039;&#039;) for all &#039;&#039;n&#039;&#039; greater or equal to &#039;&#039;c&#039;&#039;. This is called &amp;quot;strong induction&amp;quot; because its hypothesis is stricter, or stronger.&lt;br /&gt;
&lt;br /&gt;
Note that &amp;quot;all&amp;quot; is taken to mean all possible values within the domain of the problem.&lt;br /&gt;
&lt;br /&gt;
=== Final Thoughts ===&lt;br /&gt;
&lt;br /&gt;
All proofs using induction consist of a proof of an inductive claim and one or more proofs of base premises. Other claims can support the inductive claim, if needed. Examples will follow.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(&#039;&#039;n&#039;&#039; + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property, formally written&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = xk(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (xk + y^n)(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;xk + y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is an integer, this satisfies P(&#039;&#039;n&#039;&#039; + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base premises. Let P(&#039;&#039;n&#039;&#039;) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If P(&#039;&#039;n&#039;&#039;), then adding a 3-unit coin would satisfy P(&#039;&#039;n&#039;&#039; + 3). Thus, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we establish our base premises:&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5.&lt;br /&gt;
&lt;br /&gt;
From each premise, we prove separately&lt;br /&gt;
&lt;br /&gt;
:We can make all values of the form 8 + 3&#039;&#039;k&#039;&#039; = 7 + (3&#039;&#039;k&#039;&#039; + 1).&lt;br /&gt;
:We can make all values of the form 9 + 3&#039;&#039;k&#039;&#039; = 7 + (3&#039;&#039;k&#039;&#039; + 2).&lt;br /&gt;
:We can make all values of the form 10 + 3&#039;&#039;k&#039;&#039; = 7 + (3&#039;&#039;k&#039;&#039; + 3).&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;k&#039;&#039; is a non-negative integer.&lt;br /&gt;
&lt;br /&gt;
It can be seen that the property holds true for all natural numbers greater than 7. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternatively, we could use strong induction. Given the same premises, if&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } 8 \le k \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then, to get n + 1, we can either replace a 5-unit coin with two 3-unit coins, or we can replace three 3-unit coins with two 5-unit coins. Given the restriction on &#039;&#039;n&#039;&#039;, we either have at least one 5-unit coin or at least three 3-unit coins. Therefore, it is always possible to make a replacement.&lt;br /&gt;
&lt;br /&gt;
=== Problem 4 ===&lt;br /&gt;
&lt;br /&gt;
Without using the fundamental theorem of arithmetic, prove that for every natural number &#039;&#039;n&#039;&#039; there exists an integer &#039;&#039;x&#039;&#039; and an odd integer &#039;&#039;y&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n = 2^{x}y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
2n &amp;amp; = 2 \cdot 2^{x}y \\&lt;br /&gt;
&amp;amp; = 2^{x+1}y \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;x&#039;&#039; + 1 is also an integer, this satisfies P(2&#039;&#039;n&#039;&#039;). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(2n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; be any odd integer. Then, letting &#039;&#039;x&#039;&#039; = 0 and &#039;&#039;y&#039;&#039; = &#039;&#039;n&#039;&#039; satisfies P(n). Therefore, we have proven the claim that P(&#039;&#039;n&#039;&#039;) for all odd integers &#039;&#039;n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Now, we use strong induction to complete the proof. If&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } 1 \le k \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then consider two cases:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is odd. Then, P(n + 1) by the second claim.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is even. Then, since&lt;br /&gt;
::&amp;lt;math&amp;gt;1 \le \frac{n+1}{2} \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
:therefore P((&#039;&#039;n&#039;&#039; + 1) / 2) by the inductive hypothesis, and P(&#039;&#039;n&#039;&#039; + 1) by the first claim.&lt;br /&gt;
&lt;br /&gt;
We have now proven&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since P(1), it follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematics]]&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=44771</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=44771"/>
		<updated>2010-08-30T23:30:57Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* Problem 3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. Despite being commonly perceived as difficult to apply, it is actually a simple technique based on a logical inference rule. Like all techniques, practice makes proficiency.&lt;br /&gt;
&lt;br /&gt;
== Form ==&lt;br /&gt;
&lt;br /&gt;
Recall the inference rule known as &#039;&#039;modus ponens&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \rightarrow b&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now suppose we have a property P(&#039;&#039;n&#039;&#039;) for a natural number &#039;&#039;n&#039;&#039;. First, prove the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where f(&#039;&#039;n&#039;&#039;) is some function on &#039;&#039;n&#039;&#039;. The left-hand side of the claim is called the &#039;&#039;inductive hypothesis&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, prove P(&#039;&#039;n&#039;&#039;) for &#039;&#039;n&#039;&#039; = &#039;&#039;x&#039;&#039;. This is called a &#039;&#039;base premise&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, apply modus ponens, resulting in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(x))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(f(x)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
=== A Special Case ===&lt;br /&gt;
&lt;br /&gt;
The following case is seen often:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. This simply proves P(&#039;&#039;n&#039;&#039;) for all &#039;&#039;n&#039;&#039; greater than or equal to &#039;&#039;x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Strong Induction ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, the inductive hypothesis can be changed in order to express proofs more elegantly. One such change is the following:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } c \le k \le n \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } c \le k \le x&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. Here, we prove P(&#039;&#039;n&#039;&#039;) for all &#039;&#039;n&#039;&#039; greater or equal to &#039;&#039;c&#039;&#039;. This is called &amp;quot;strong induction&amp;quot; because its hypothesis is stricter, or stronger.&lt;br /&gt;
&lt;br /&gt;
Note that &amp;quot;all&amp;quot; is taken to mean all possible values within the domain of the problem.&lt;br /&gt;
&lt;br /&gt;
=== Final Thoughts ===&lt;br /&gt;
&lt;br /&gt;
All proofs using induction consist of a proof of an inductive claim and one or more proofs of base premises. Other claims can support the inductive claim, if needed. Examples will follow.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(&#039;&#039;n&#039;&#039; + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property, formally written&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = xk(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (xk + y^n)(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;xk + y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is an integer, this satisfies P(&#039;&#039;n&#039;&#039; + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base premises. Let P(&#039;&#039;n&#039;&#039;) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If P(&#039;&#039;n&#039;&#039;), then adding a 3-unit coin would satisfy P(&#039;&#039;n&#039;&#039; + 3). Thus, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we establish our base premises:&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5.&lt;br /&gt;
&lt;br /&gt;
From each premise, we prove separately&lt;br /&gt;
&lt;br /&gt;
:We can make all values of the form 8 + 3&#039;&#039;k&#039;&#039; = 7 + (3&#039;&#039;k&#039;&#039; + 1).&lt;br /&gt;
:We can make all values of the form 9 + 3&#039;&#039;k&#039;&#039; = 7 + (3&#039;&#039;k&#039;&#039; + 2).&lt;br /&gt;
:We can make all values of the form 10 + 3&#039;&#039;k&#039;&#039; = 7 + (3&#039;&#039;k&#039;&#039; + 3).&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;k&#039;&#039; is a non-negative integer.&lt;br /&gt;
&lt;br /&gt;
It can be seen that the property holds true for all natural numbers greater than 7. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternatively, we could use strong induction. Given the same premises, if&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } 8 \le k \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then we can either replace a 5-unit coin with two 3-unit coins, or we can replace three 3-unit coins with two 5-unit coins. Given the restriction on &#039;&#039;n&#039;&#039;, we either have at least one 5-unit coin or at least three 3-unit coins. Therefore, it is always possible to make a replacement.&lt;br /&gt;
&lt;br /&gt;
=== Problem 4 ===&lt;br /&gt;
&lt;br /&gt;
Without using the fundamental theorem of arithmetic, prove that for every natural number &#039;&#039;n&#039;&#039; there exists an integer &#039;&#039;x&#039;&#039; and an odd integer &#039;&#039;y&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n = 2^{x}y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
2n &amp;amp; = 2 \cdot 2^{x}y \\&lt;br /&gt;
&amp;amp; = 2^{x+1}y \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;x&#039;&#039; + 1 is also an integer, this satisfies P(2&#039;&#039;n&#039;&#039;). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(2n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; be any odd integer. Then, letting &#039;&#039;x&#039;&#039; = 0 and &#039;&#039;y&#039;&#039; = &#039;&#039;n&#039;&#039; satisfies P(n). Therefore, we have proven the claim that P(&#039;&#039;n&#039;&#039;) for all odd integers &#039;&#039;n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Now, we use strong induction to complete the proof. If&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } 1 \le k \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then consider two cases:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is odd. Then, P(n + 1) by the second claim.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is even. Then, since&lt;br /&gt;
::&amp;lt;math&amp;gt;1 \le \frac{n+1}{2} \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
:therefore P((&#039;&#039;n&#039;&#039; + 1) / 2) by the inductive hypothesis, and P(&#039;&#039;n&#039;&#039; + 1) by the first claim.&lt;br /&gt;
&lt;br /&gt;
We have now proven&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since P(1), it follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematics]]&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=37057</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=37057"/>
		<updated>2010-07-21T01:08:55Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. Despite being commonly perceived as difficult to apply, it is actually a simple technique based on a logical inference rule. Like all techniques, practice makes proficiency.&lt;br /&gt;
&lt;br /&gt;
== Form ==&lt;br /&gt;
&lt;br /&gt;
Recall the inference rule known as &#039;&#039;modus ponens&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \rightarrow b&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now suppose we have a property P(&#039;&#039;n&#039;&#039;) for a natural number &#039;&#039;n&#039;&#039;. First, prove the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where f(&#039;&#039;n&#039;&#039;) is some function on &#039;&#039;n&#039;&#039;. The left-hand side of the claim is called the &#039;&#039;inductive hypothesis&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, prove P(&#039;&#039;n&#039;&#039;) for &#039;&#039;n&#039;&#039; = &#039;&#039;x&#039;&#039;. This is called a &#039;&#039;base premise&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, apply modus ponens, resulting in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(x))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(f(x)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
=== A Special Case ===&lt;br /&gt;
&lt;br /&gt;
The following case is seen often:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. This simply proves P(&#039;&#039;n&#039;&#039;) for all &#039;&#039;n&#039;&#039; greater than or equal to &#039;&#039;x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Strong Induction ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, the inductive hypothesis can be changed in order to express proofs more elegantly. One such change is the following:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } c \le k \le n \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } c \le k \le x&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. Here, we prove P(&#039;&#039;n&#039;&#039;) for all &#039;&#039;n&#039;&#039; greater or equal to &#039;&#039;c&#039;&#039;. This is called &amp;quot;strong induction&amp;quot; because its hypothesis is stricter, or stronger.&lt;br /&gt;
&lt;br /&gt;
Note that &amp;quot;all&amp;quot; is taken to mean all possible values within the domain of the problem.&lt;br /&gt;
&lt;br /&gt;
=== Final Thoughts ===&lt;br /&gt;
&lt;br /&gt;
All proofs using induction consist of a proof of an inductive claim and one or more proofs of base premises. Other claims can support the inductive claim, if needed. Examples will follow.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(&#039;&#039;n&#039;&#039; + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property, formally written&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = xk(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (xk + y^n)(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;xk + y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is an integer, this satisfies P(&#039;&#039;n&#039;&#039; + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base premises. Let P(&#039;&#039;n&#039;&#039;) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If P(&#039;&#039;n&#039;&#039;), then adding a 3-unit coin would satisfy P(&#039;&#039;n&#039;&#039; + 3). Thus, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we establish our base premises:&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5.&lt;br /&gt;
&lt;br /&gt;
From each premise, we prove separately&lt;br /&gt;
&lt;br /&gt;
:We can make all values of the form 8 + 3&#039;&#039;k&#039;&#039; = 7 + (3&#039;&#039;k&#039;&#039; + 1).&lt;br /&gt;
:We can make all values of the form 9 + 3&#039;&#039;k&#039;&#039; = 7 + (3&#039;&#039;k&#039;&#039; + 2).&lt;br /&gt;
:We can make all values of the form 10 + 3&#039;&#039;k&#039;&#039; = 7 + (3&#039;&#039;k&#039;&#039; + 3).&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;k&#039;&#039; is a non-negative integer.&lt;br /&gt;
&lt;br /&gt;
It can be seen that the property holds true for all natural numbers greater than 7. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternatively, we could use strong induction. Given the same premises, if&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } 8 \le k \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then we can either replace a 5-unit coin with two 3-unit coins, or we can replace three 3-unit coins with two 5-unit coins. Given the restriction on &#039;&#039;n&#039;&#039;, we either have at least one 3-unit coin or at least three 3-unit coins. Therefore, it is always possible to make a replacement.&lt;br /&gt;
&lt;br /&gt;
=== Problem 4 ===&lt;br /&gt;
&lt;br /&gt;
Without using the fundamental theorem of arithmetic, prove that for every natural number &#039;&#039;n&#039;&#039; there exists an integer &#039;&#039;x&#039;&#039; and an odd integer &#039;&#039;y&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n = 2^{x}y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
2n &amp;amp; = 2 \cdot 2^{x}y \\&lt;br /&gt;
&amp;amp; = 2^{x+1}y \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;x&#039;&#039; + 1 is also an integer, this satisfies P(2&#039;&#039;n&#039;&#039;). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(2n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; be any odd integer. Then, letting &#039;&#039;x&#039;&#039; = 0 and &#039;&#039;y&#039;&#039; = &#039;&#039;n&#039;&#039; satisfies P(n). Therefore, we have proven the claim that P(&#039;&#039;n&#039;&#039;) for all odd integers &#039;&#039;n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Now, we use strong induction to complete the proof. If&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } 1 \le k \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then consider two cases:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is odd. Then, P(n + 1) by the second claim.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is even. Then, since&lt;br /&gt;
::&amp;lt;math&amp;gt;1 \le \frac{n+1}{2} \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
:therefore P((&#039;&#039;n&#039;&#039; + 1) / 2) by the inductive hypothesis, and P(&#039;&#039;n&#039;&#039; + 1) by the first claim.&lt;br /&gt;
&lt;br /&gt;
We have now proven&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since P(1), it follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematics]]&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=37056</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=37056"/>
		<updated>2010-07-21T01:07:35Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. Despite being commonly perceived as difficult to apply, it is actually a simple technique based on a logical inference rule. Like all techniques, practice makes proficiency.&lt;br /&gt;
&lt;br /&gt;
== Form ==&lt;br /&gt;
&lt;br /&gt;
Recall the inference rule known as &#039;&#039;modus ponens&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \rightarrow b&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now suppose we have a property P(&#039;&#039;n&#039;&#039;) for a natural number &#039;&#039;n&#039;&#039;. First, prove the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where f(&#039;&#039;n&#039;&#039;) is some function on &#039;&#039;n&#039;&#039;. The left-hand side of the claim is called the &#039;&#039;inductive hypothesis&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, prove P(&#039;&#039;n&#039;&#039;) for &#039;&#039;n&#039;&#039; = &#039;&#039;x&#039;&#039;. This is called a &#039;&#039;base premise&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, apply modus ponens, resulting in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(x))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(f(x)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
=== A Special Case ===&lt;br /&gt;
&lt;br /&gt;
The following case is seen often:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. This simply proves P(&#039;&#039;n&#039;&#039;) for all &#039;&#039;n&#039;&#039; greater than or equal to &#039;&#039;x&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Strong Induction ===&lt;br /&gt;
&lt;br /&gt;
Sometimes, the inductive hypothesis can be changed in order to express proofs more elegantly. One such change is the following:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } c \le k \le n \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } c \le k \le x&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. Here, we prove P(&#039;&#039;n&#039;&#039;) for all &#039;&#039;n&#039;&#039; greater or equal to &#039;&#039;c&#039;&#039;. This is called &amp;quot;strong induction&amp;quot; because its hypothesis is stricter, or stronger.&lt;br /&gt;
&lt;br /&gt;
Note that &amp;quot;all&amp;quot; is taken to mean all possible values within the domain of the problem.&lt;br /&gt;
&lt;br /&gt;
=== Final Thoughts ===&lt;br /&gt;
&lt;br /&gt;
All proofs using induction consist of a proof of an inductive claim and one or more proofs of base premises. Other claims can support the inductive claim, if needed. Examples will follow.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(&#039;&#039;n&#039;&#039; + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property, formally written&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = xk(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (xk + y^n)(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;xk + y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is an integer, this satisfies P(&#039;&#039;n&#039;&#039; + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base premises. Let P(&#039;&#039;n&#039;&#039;) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If P(&#039;&#039;n&#039;&#039;), then adding a 3-unit coin would satisfy P(&#039;&#039;n&#039;&#039; + 3). Thus, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we establish our base premises:&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5.&lt;br /&gt;
&lt;br /&gt;
From each premise, we prove separately&lt;br /&gt;
&lt;br /&gt;
:We can make all values of the form 8 + 3&#039;&#039;k&#039;&#039; = 7 + (3&#039;&#039;k&#039;&#039; + 1).&lt;br /&gt;
:We can make all values of the form 9 + 3&#039;&#039;k&#039;&#039; = 7 + (3&#039;&#039;k&#039;&#039; + 2).&lt;br /&gt;
:We can make all values of the form 10 + 3&#039;&#039;k&#039;&#039; = 7 + (3&#039;&#039;k&#039;&#039; + 3).&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;k&#039;&#039; is a non-negative integer.&lt;br /&gt;
&lt;br /&gt;
It can be seen that the property holds true for all natural numbers greater than 7. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternatively, we could use strong induction. Given the same premises, if&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } 8 \le k \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then we can either replace a 5-unit coin with two 3-unit coins, or we can replace three 3-unit coins with two 5-unit coins. This is possible with &#039;&#039;n&#039;&#039; = 8 and &#039;&#039;n&#039;&#039; = 9. Beyond that, either &#039;&#039;n&#039;&#039; is composed of at least one 5-unit coin, or &#039;&#039;n&#039;&#039; is composed of more than three 3-unit coins. Therefore, it is always possible to make a replacement.&lt;br /&gt;
&lt;br /&gt;
=== Problem 4 ===&lt;br /&gt;
&lt;br /&gt;
Without using the fundamental theorem of arithmetic, prove that for every natural number &#039;&#039;n&#039;&#039; there exists an integer &#039;&#039;x&#039;&#039; and an odd integer &#039;&#039;y&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n = 2^{x}y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(&#039;&#039;n&#039;&#039;) be the above property. If P(&#039;&#039;n&#039;&#039;), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
2n &amp;amp; = 2 \cdot 2^{x}y \\&lt;br /&gt;
&amp;amp; = 2^{x+1}y \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;x&#039;&#039; + 1 is also an integer, this satisfies P(2&#039;&#039;n&#039;&#039;). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(2n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; be any odd integer. Then, letting &#039;&#039;x&#039;&#039; = 0 and &#039;&#039;y&#039;&#039; = &#039;&#039;n&#039;&#039; satisfies P(n). Therefore, we have proven the claim that P(&#039;&#039;n&#039;&#039;) for all odd integers &#039;&#039;n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Now, we use strong induction to complete the proof. If&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(k) \text{ for all } k \text{ such that } 1 \le k \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then consider two cases:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is odd. Then, P(n + 1) by the second claim.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is even. Then, since&lt;br /&gt;
::&amp;lt;math&amp;gt;1 \le \frac{n+1}{2} \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
:therefore P((&#039;&#039;n&#039;&#039; + 1) / 2) by the inductive hypothesis, and P(&#039;&#039;n&#039;&#039; + 1) by the first claim.&lt;br /&gt;
&lt;br /&gt;
We have now proven&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since P(1), it follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematics]]&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=How_To_Solve_Problems&amp;diff=36991</id>
		<title>How To Solve Problems</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=How_To_Solve_Problems&amp;diff=36991"/>
		<updated>2010-07-20T21:19:30Z</updated>

		<summary type="html">&lt;p&gt;Jerome: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Modular_Arithmetic&amp;diff=23308</id>
		<title>Modular Arithmetic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Modular_Arithmetic&amp;diff=23308"/>
		<updated>2010-04-01T14:35:50Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Modular arithmetic is a system of arithmetic that concerns remainders. Instead of mainstream notation, I have introduced a new notation. I will provide examples to clarify. For the duration of this text, variables are denoted by italicized lowercase letters, and can represent any integer, unless restrictions are specified. &#039;&#039;n&#039;&#039;, however, is always positive.&lt;br /&gt;
&lt;br /&gt;
== Axioms  ==&lt;br /&gt;
&lt;br /&gt;
=== Remainders  ===&lt;br /&gt;
&lt;br /&gt;
Define&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_n(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to be the remainder when &#039;&#039;a&#039;&#039; is divided by &#039;&#039;n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_5(13) = 3&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the axiom &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a = kn + R_n(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some &#039;&#039;k&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;13 = 5k + R_5(13) = 5(2) + 3&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Congruence  ===&lt;br /&gt;
&lt;br /&gt;
Define the relation &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b) \iff R_n(a) = R_n(b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_5(8) = R_5(13) \iff 3 = 3 \iff C_5(8,\;13)&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Define the axioms &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;R_n(a))&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a \cdot 1,\;a)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(kn + a,\;a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the axioms &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
C_n(a,\;b) &amp;amp; \iff &amp;amp; C_n(b,\;a) \\&lt;br /&gt;
C_n(a,\;b),\;C_n(b,\;c) &amp;amp; \iff &amp;amp; C_n(a,\;c)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the axiom &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a_1,\;a_2),\;C_n(a_2,\;a_3)\;\cdots\;{C_n(a_{i-1},\;a_i})\iff{C_n(a_1,\;a_2,\;a_3\;\cdots\;a_{i-1},\;a_i)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;i&#039;&#039; is any positive integer.&lt;br /&gt;
&lt;br /&gt;
== Theorems  ==&lt;br /&gt;
&lt;br /&gt;
=== Additive Property  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a+b,\;R_n(a)+R_n(b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cn + R_n(a) \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dn + R_n(b)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n({a+b},\;{cn+R_n(a)+dn+R_n(b)},\;{n(c+d)+R_n(a)+R_n(b)},\;{R_n(a)+R_n(b)})~~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(a+c,\;b+c)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Multiplicative Property  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(ab,\;R_n(a)R_n(b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cn + R_n(a) \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dn + R_n(b)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(ab,\;{cn\,dn+cn\,R_n(b)+R_n(a)\,dn+R_n(a)\,R_n(b)},\;{n(c\,d{n}+c\,R_n(b)+R_n(a)\,d)+R_n(a)\,R_n(b)},\;R_n(a)\,R_n(b))~~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(ac,\;bc)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exponential Property  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^b,\;(R_n(a))^b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;b&#039;&#039; is positive. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Assume this relation holds for some &#039;&#039;b&#039;&#039;. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{b+1},\;a^b\,{a},\;R_n(a^b)\,R_n(a),\;(R_n(a))^b\,R_n(a),\;(R_n(a))^{b+1})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore, it follows that if this relation holds for &#039;&#039;b&#039;&#039;, it also holds for &#039;&#039;b&#039;&#039; + 1. Let &#039;&#039;b&#039;&#039; = 1. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^1,\;(R_n(a))^1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;(R_n(a)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This holds true. Therefore, this relation holds true for any positive &#039;&#039;b&#039;&#039;. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(a^c,\;b^c)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;c&#039;&#039; is positive.&lt;br /&gt;
&lt;br /&gt;
=== Divisor Rule  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)\Rightarrow{C_x(a,\;b),\;C_y(a,\;b)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039; are positive. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)\iff{R_{xy}(a)=R_{xy}(b)=r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some &#039;&#039;r&#039;&#039;. Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cxy + r \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dxy + r&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, it follows that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; jx + r \\&lt;br /&gt;
b &amp;amp; = &amp;amp; kx + r&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;{jx+r},\;r)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(b,\;{kx+r},\;r)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;b)~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for &#039;&#039;y&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
=== Product Rule  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;b),\;C_y(a,\;b),\;gcd(x,\;y)=1\Rightarrow{C_{xy}(a,\;b)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039; are positive, and &#039;&#039;gcd&#039;&#039; is the greatest common divisor function. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; b + k_1{x} \\&lt;br /&gt;
a &amp;amp; = &amp;amp; b + k_2{y} \\&lt;br /&gt;
k_1{x} &amp;amp; = &amp;amp; k_2{y}&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, by &#039;&#039;gcd&#039;&#039;(&#039;&#039;x&#039;&#039;, &#039;&#039;y&#039;&#039;) = 1,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
k_1 &amp;amp; = &amp;amp; ly \\&lt;br /&gt;
k_2 &amp;amp; = &amp;amp; lx \\&lt;br /&gt;
a &amp;amp; = &amp;amp; b + lxy&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exponential Identity ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{a^q}((a+b)^p,\;\sum_{i=0}^{q-1} \tbinom{p}{i}\,a^i\,b^{p-i})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1 &amp;lt; q &amp;lt; b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
This directly follows from the binomial theorem. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exponential Congruence Theorem ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;gcd&#039;&#039;(&#039;&#039;n&#039;&#039;, &#039;&#039;a&#039;&#039;) = 1, then there exists &#039;&#039;p&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^p,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof:&lt;br /&gt;
&lt;br /&gt;
Assume there does not exist such &#039;&#039;p&#039;&#039;. By the Pigeonhole Principle, there exist &#039;&#039;p&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039; and &#039;&#039;p&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;p_1&amp;gt;p_2&amp;gt;0,\;C_n(a^{p_1},\;a^{p_2})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, it must be the case that either&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1-p_2},\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1},\;0)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But since &#039;&#039;p&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039; - &#039;&#039;p&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&#039;&#039; &amp;gt; 0, this case contradicts the assumption. Then, the second case must be true.&lt;br /&gt;
&lt;br /&gt;
But&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1},\;0) \Rightarrow a^{p_1}=kn&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is not satisfied since &#039;&#039;gcd&#039;&#039;(&#039;&#039;n&#039;&#039;, &#039;&#039;a&#039;&#039;) = 1. Therefore, the assumption is false, and the theorem is proven. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples  ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Does there exist a number that is a perfect square, a multiple of 2 but not a multiple of 4?&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This is equivalent to finding &#039;&#039;n&#039;&#039; such that &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;n=4x+2=y^2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, if such &#039;&#039;n&#039;&#039; exists,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_4(2,\;y^2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Clearly, &#039;&#039;y&#039;&#039; = 2&#039;&#039;k&#039;&#039;. But&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_4(2,\;(2k)^2,\;4k^2,0)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is impossible. Therefore, &#039;&#039;n&#039;&#039; does not exist. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Given the function &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;f(x) = &lt;br /&gt;
\begin{cases} &lt;br /&gt;
1,          &amp;amp; \mbox{if }x = 1 \\&lt;br /&gt;
x^{f(x-1)}, &amp;amp; \mbox{if }x &amp;gt; 1&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
find &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_{100}(f(2009))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: this is equivalent to the last 2 base 10 digits of&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2009^{2008^{2007^{\cdot^{\cdot^{3^{2^1}}}}}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(f(2009),\;2009^{f(2008)},\;9^{f(2008)})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simplify this, we look for simpler congruences. By the exponential identity, we get &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(81^p,\;1+80p,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if p = 5k. Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(9^{f(2008)},\;9^{R_{10}(f(2008))}\,9^{10k},\;9^{R_{10}(f(2008))})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To proceed, we use the product rule to split up 10 into 2 and 5, getting &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_2(f(2008),\;2008^{f(2007)},\;0)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_5(f(2008),\;2008^{f(2007)},\;3^{R_4(f(2007))}\,3^{4k},\;3^{R_4(f(2007))}\,81^k,\;3^{R_4(f(2007))})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some k. To proceed, we evaluate &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_4(f(2007),\;2007^{f(2006)},\;3^{f(2006)},\;3^{2k},\;9^k,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some k. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_5(f(2008),\;3,\;8)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_2(f(2008),\;0,\;8)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Putting the product back together, we get &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{10}(f(2008),\;8)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;R_{10}(f(2008))=8&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(f(2009),\;9^{f(2008)},\;9^{R_{10}(f(2008))},\;9^8,\;81^4,\;61^2\;,21)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore, our desired result is &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_{100}(f(2009))=21&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Modular_Arithmetic&amp;diff=23304</id>
		<title>Modular Arithmetic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Modular_Arithmetic&amp;diff=23304"/>
		<updated>2010-04-01T07:28:34Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Modular arithmetic is a system of arithmetic that concerns remainders. Instead of mainstream notation, I have introduced a new notation. I will provide examples to clarify. For the duration of this text, variables are denoted by italicized lowercase letters, and can represent any integer, unless restrictions are specified. &#039;&#039;n&#039;&#039;, however, is always positive.&lt;br /&gt;
&lt;br /&gt;
== Axioms  ==&lt;br /&gt;
&lt;br /&gt;
=== Remainders  ===&lt;br /&gt;
&lt;br /&gt;
Define&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_n(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to be the remainder when &#039;&#039;a&#039;&#039; is divided by &#039;&#039;n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_5(13) = 3&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the axiom &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a = kn + R_n(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some &#039;&#039;k&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;13 = 5k + R_5(13) = 5(2) + 3&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Congruence  ===&lt;br /&gt;
&lt;br /&gt;
Define the relation &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b) \iff R_n(a) = R_n(b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_5(8) = R_5(13) \iff 3 = 3 \iff C_5(8,\;13)&amp;lt;/math&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Define the axioms &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;R_n(a))&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a \cdot 1,\;a)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(kn + a,\;a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the axioms &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
C_n(a,\;b) &amp;amp; \iff &amp;amp; C_n(b,\;a) \\&lt;br /&gt;
C_n(a,\;b),\;C_n(b,\;c) &amp;amp; \iff &amp;amp; C_n(a,\;c)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the axiom &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a_1,\;a_2),\;C_n(a_2,\;a_3)\;\cdots\;{C_n(a_{i-1},\;a_i})\iff{C_n(a_1,\;a_2,\;a_3\;\cdots\;a_{i-1},\;a_i)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;i&#039;&#039; is any positive integer.&lt;br /&gt;
&lt;br /&gt;
== Theorems  ==&lt;br /&gt;
&lt;br /&gt;
=== Additive Property  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a+b,\;R_n(a)+R_n(b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cn + R_n(a) \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dn + R_n(b)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n({a+b},\;{cn+R_n(a)+dn+R_n(b)},\;{n(c+d)+R_n(a)+R_n(b)},\;{R_n(a)+R_n(b)})~~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(a+c,\;b+c)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Multiplicative Property  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(ab,\;R_n(a)R_n(b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cn + R_n(a) \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dn + R_n(b)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(ab,\;{cn\,dn+cn\,R_n(b)+R_n(a)\,dn+R_n(a)\,R_n(b)},\;{n(c\,d{n}+c\,R_n(b)+R_n(a)\,d)+R_n(a)\,R_n(b)},\;R_n(a)\,R_n(b))~~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(ac,\;bc)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exponential Property  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^b,\;(R_n(a))^b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;b&#039;&#039; is positive. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Assume this relation holds for some &#039;&#039;b&#039;&#039;. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{b+1},\;a^b\,{a},\;R_n(a^b)\,R_n(a),\;(R_n(a))^b\,R_n(a),\;(R_n(a))^{b+1})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore, it follows that if this relation holds for &#039;&#039;b&#039;&#039;, it also holds for &#039;&#039;b&#039;&#039; + 1. Let &#039;&#039;b&#039;&#039; = 1. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^1,\;(R_n(a))^1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;(R_n(a)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This holds true. Therefore, this relation holds true for any positive &#039;&#039;b&#039;&#039;. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(a^c,\;b^c)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;c&#039;&#039; is positive.&lt;br /&gt;
&lt;br /&gt;
=== Divisor Rule  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)\Rightarrow{C_x(a,\;b),\;C_y(a,\;b)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039; are positive. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)\iff{R_{xy}(a)=R_{xy}(b)=r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some &#039;&#039;r&#039;&#039;. Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cxy + r \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dxy + r&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, it follows that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; jx + r \\&lt;br /&gt;
b &amp;amp; = &amp;amp; kx + r&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;{jx+r},\;r)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(b,\;{kx+r},\;r)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;b)~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for &#039;&#039;y&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
=== Product Rule  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;b),\;C_y(a,\;b),\;gcd(x,\;y)=1\Rightarrow{C_{xy}(a,\;b)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039; are positive, and &#039;&#039;gcd&#039;&#039; is the greatest common divisor function. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; b + k_1{x} \\&lt;br /&gt;
a &amp;amp; = &amp;amp; b + k_2{y} \\&lt;br /&gt;
k_1{x} &amp;amp; = &amp;amp; k_2{y}&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, by &#039;&#039;gcd&#039;&#039;(&#039;&#039;x&#039;&#039;, &#039;&#039;y&#039;&#039;) = 1,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
k_1 &amp;amp; = &amp;amp; ly \\&lt;br /&gt;
k_2 &amp;amp; = &amp;amp; lx \\&lt;br /&gt;
a &amp;amp; = &amp;amp; b + lxy&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exponential Identity ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{a^q}((a+b)^p,\;\sum_{i=0}^{q-1} \tbinom{p}{i}\,a^i\,b^{p-i})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1 &amp;lt; q &amp;lt; b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
This directly follows from the binomial theorem. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exponential Congruence Theorem ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;gcd&#039;&#039;(&#039;&#039;n&#039;&#039;, &#039;&#039;a&#039;&#039;) = 1, then there exists &#039;&#039;p&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^p,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof:&lt;br /&gt;
&lt;br /&gt;
Assume there does not exist such &#039;&#039;p&#039;&#039;. By the Pigeonhole Principle, there exist &#039;&#039;p&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039; and &#039;&#039;p&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;p_1&amp;gt;p_2&amp;gt;0,\;C_n(a^{p_1},\;a^{p_2})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, it must be the case that either&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1-p_2},\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1},\;0)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But since &#039;&#039;p&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039; - &#039;&#039;p&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&#039;&#039; &amp;gt; 0, this case contradicts the assumption. Then, the second case must be true.&lt;br /&gt;
&lt;br /&gt;
But&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1},\;0) \Rightarrow a^{p_1}=kn&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is not satisfied since &#039;&#039;gcd&#039;&#039;(&#039;&#039;n&#039;&#039;, &#039;&#039;a&#039;&#039;) = 1. Therefore, the assumption is false, and the theorem is proven. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples  ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Does there exist a number that is a perfect square, a multiple of 2 but not a multiple of 4?&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This is equivalent to finding &#039;&#039;n&#039;&#039; such that &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;n=4x+2=y^2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, if such &#039;&#039;n&#039;&#039; exists,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_4(2,\;y^2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Clearly, &#039;&#039;y&#039;&#039; = 2&#039;&#039;k&#039;&#039;. But&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_4(2,\;(2k)^2,\;4k^2,0)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is impossible. Therefore, &#039;&#039;n&#039;&#039; does not exist. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Given the function &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;f(x) = &lt;br /&gt;
\begin{cases} &lt;br /&gt;
1,          &amp;amp; \mbox{if }x = 1 \\&lt;br /&gt;
x^{f(x-1)}, &amp;amp; \mbox{if }x &amp;gt; 1&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
find &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_{100}(f(2009))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: this is equivalent to the last 2 base 10 digits of&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2009^{2008^{2007^{\cdot^{\cdot^{3^{2^1}}}}}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(f(2009),\;2009^{f(2008)},\;9^{f(2008)})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simplify this, we look for simpler congruences. By the exponential identity, we get &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(81^p,\;1+80p,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if p = 5k. Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(9^{f(2008)},\;9^{R_{10}(f(2008))}\,9^{10k},\;9^{R_{10}(f(2008))})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To proceed, we use the product rule to split up 10 into 2 and 5, getting &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_2(f(2008),\;2008^{f(2007)},\;0)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_5(f(2008),\;2008^{f(2007)},\;8^{R_4(f(2007))}\,8^{4k},\;8^{R_4(f(2007))}\,4096^k,\;8^{R_4(f(2007))})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some k. To proceed, we evaluate &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_4(f(2007),\;2007^{f(2006)},\;7^{f(2006)},\;49^k,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some k. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_5(f(2008),\;8)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_2(f(2008),\;0,\;8)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Putting the product back together, we get &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{10}(f(2008),\;8)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;R_{10}(f(2008))=8&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(f(2009),\;9^{f(2008)},\;9^{R_{10}(f(2008))},\;9^8,\;81^4,\;61^2\;,21)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore, our desired result is &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_{100}(f(2009))=21&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=How_To_Solve_Problems&amp;diff=23303</id>
		<title>How To Solve Problems</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=How_To_Solve_Problems&amp;diff=23303"/>
		<updated>2010-04-01T07:16:30Z</updated>

		<summary type="html">&lt;p&gt;Jerome: Created page with &amp;#039;__TOC__  == What is a problem? ==  Before solving a problem, you should have some idea of what a problem is. Unfortunately, this question is rarely asked.  Imagine that anything …&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
== What is a problem? ==&lt;br /&gt;
&lt;br /&gt;
Before solving a problem, you should have some idea of what a problem is. Unfortunately, this question is rarely asked.&lt;br /&gt;
&lt;br /&gt;
Imagine that anything were possible. Then, you can do anything you want. But no! In reality, many things are impossible, or very difficult to do. Things break - how to make them more sturdy? People fall ill - how to cure them? Iron rusts, fruit rots, ice melts - does anything behave the way we want them?&lt;br /&gt;
&lt;br /&gt;
There must be a catch: the universe follows certain rules. To manipulate things in the universe, we must also follow these rules. Therefore, what is a problem? It is the catch itself. It is the balancing act of both following the rules and doing what we want to do.&lt;br /&gt;
&lt;br /&gt;
=== What&#039;s next? ===&lt;br /&gt;
&lt;br /&gt;
Now that you know what a problem is, what&#039;s next? Why, you could try solving it, of course. But tn the meantime, you could hone your problem solving skills so that you are better prepared to tackle real problems.&lt;br /&gt;
&lt;br /&gt;
All that is required to practice solving problems is a set of rules. One very commonly used set of rules is the body of mathematics. We will use this to practice.&lt;br /&gt;
&lt;br /&gt;
Without further ado, let us begin with something simple.&lt;br /&gt;
&lt;br /&gt;
== Something simple ==&lt;br /&gt;
&lt;br /&gt;
:If x = 5, what is the value of x?&lt;br /&gt;
&lt;br /&gt;
Wait a minute, that&#039;s too easy! You may have found the solution before you finished reading the question. However, you must not overlook the fact that you applied a rule in solving this problem: the rule where both sides of an equals sign must be equal. From that, you have determined the value of x to be 5. This is an example of a single application of a rule.&lt;br /&gt;
&lt;br /&gt;
Consider another problem:&lt;br /&gt;
&lt;br /&gt;
:If x = 3 and y = 2x + 1, what is the value of y?&lt;br /&gt;
&lt;br /&gt;
You immediately determine the value of x to be 3. Then, you apply the rule of substituting a variable with its value. Thus, you substitute x with 3 in y = 2x + 1, and determine the value of y to be 2(3) + 1. Then, you can simplify that expression to 7 using the rules of addition and multiplication. You have now seen that solving a problem can require applying more than one rule, and that values can be changed by applying further rules.&lt;br /&gt;
&lt;br /&gt;
And another:&lt;br /&gt;
&lt;br /&gt;
:If x is the remainder of 2010&amp;lt;sup&amp;gt;2010&amp;lt;/sup&amp;gt; when divided by 7, what is the value of x?&lt;br /&gt;
&lt;br /&gt;
Now hold on, that is a huge leap in difficulty! But really, it is not; you just require different rules. If you do not know these rules, visit [[http://wiki.ubc.ca/Modular_Arithmetic this page]]. When you have solved the problem, check that the value of x is 1.&lt;br /&gt;
&lt;br /&gt;
So, what gives with that last problem? It is merely to illustrate that the perceived difficulty of a problem depends on the set of rules you have. The more rules you know, the more situations in which you can apply them, the less difficult, potentially, problems become.&lt;br /&gt;
&lt;br /&gt;
== And onwards ==&lt;br /&gt;
&lt;br /&gt;
To be continued...&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=23302</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=23302"/>
		<updated>2010-04-01T06:05:34Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* A Special Case */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. Despite being commonly perceived as difficult to apply, it is actually a simple technique based on a logical inference rule. Like all techniques, practice makes proficiency.&lt;br /&gt;
&lt;br /&gt;
== Basic Form ==&lt;br /&gt;
&lt;br /&gt;
Recall the inference rule called &#039;&#039;modus ponens&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \rightarrow b&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now suppose we have a property P(n) for a natural number &#039;&#039;n&#039;&#039;. First, prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where f(n) is a function on &#039;&#039;n&#039;&#039;. This is called the &#039;&#039;inductive claim&#039;&#039;. Its left-hand side called the &#039;&#039;inductive hypothesis&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, prove P(n) for &#039;&#039;n&#039;&#039; = &#039;&#039;x&#039;&#039;. This is called the &#039;&#039;base premise&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, apply modus ponens, resulting in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(x))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(f(x)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
=== A Special Case ===&lt;br /&gt;
&lt;br /&gt;
Since this case is so common, it deserves its own mention. If we wish to prove P(n) for natural numbers greater or equal to &#039;&#039;x&#039;&#039;, let f(n) = &#039;&#039;n&#039;&#039; + 1. Then prove P(x). Applying modus ponens results in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. If we let &#039;&#039;x&#039;&#039; = 1, for example, then we have proven P(x) for all natural numbers.&lt;br /&gt;
&lt;br /&gt;
== Strong Induction ==&lt;br /&gt;
&lt;br /&gt;
The following is a variant of induction, using a stronger inductive hypothesis:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le x) : P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
Note: it is possible to let f(n) be something other than &#039;&#039;n&#039;&#039; + 1. However, this would also require fine-tuning the hypothesis in some way.&lt;br /&gt;
&lt;br /&gt;
== Parting Words ==&lt;br /&gt;
&lt;br /&gt;
Any proof using induction can be written using the basic form. However, it is sometimes easier to use the stronger hypothesis, as you will see in one of the sample problems.&lt;br /&gt;
&lt;br /&gt;
All proofs using induction consist of a proof of an inductive claim and one or more proofs of base premises. Other claims can support the inductive claim as needed.&lt;br /&gt;
&lt;br /&gt;
== Sample Problems ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(n + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property, more formally described as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = xk(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (xk + y^n)(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;xk + y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is an integer, this satisfies P(n + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base premises. Let P(n) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If P(n), then adding a 3-unit coin would satisfy P(n + 3). Thus, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we establish our base premises:&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5. Thus, we can make all values of the form 7 + 1 + 3k.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3. Thus, we can make all values of the form 7 + 2 + 3k.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5. Thus, we can make all values of the form 7 + 3 + 3k.&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;k&#039;&#039; is a non-negative integer.&lt;br /&gt;
&lt;br /&gt;
Therefore, it is easy to see that the property holds true for all natural numbers greater than 7. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 4 ===&lt;br /&gt;
&lt;br /&gt;
Without using the fundamental theorem of arithmetic, prove that for every natural number &#039;&#039;n&#039;&#039; there exists an integer &#039;&#039;x&#039;&#039; and an odd integer &#039;&#039;y&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n = 2^{x}y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
2n &amp;amp; = 2 \cdot 2^{x}y \\&lt;br /&gt;
&amp;amp; = 2^{x+1}y \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;x&#039;&#039; + 1 is also an integer, this satisfies P(2n). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(2n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; be any odd integer. Then, letting &#039;&#039;x&#039;&#039; = 0 and &#039;&#039;y&#039;&#039; = &#039;&#039;n&#039;&#039; satisfies P(n). Therefore, we have proven the claim that P(n) for all odd integers &#039;&#039;n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Now, we use the stronger hypothesis to complete the proof. If&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then consider two cases:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is odd. Then, P(n + 1) by the second claim.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is even. Then&lt;br /&gt;
::&amp;lt;math&amp;gt;1 \le \frac{n+1}{2} \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
:and thus P((n + 1) / 2) by the assumption, and P(n + 1) by the first claim.&lt;br /&gt;
&lt;br /&gt;
We have now proven&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since P(1), it follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=23301</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=23301"/>
		<updated>2010-04-01T06:03:42Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. Despite being commonly perceived as difficult to apply, it is actually a simple technique based on a logical inference rule. Like all techniques, practice makes proficiency.&lt;br /&gt;
&lt;br /&gt;
== Basic Form ==&lt;br /&gt;
&lt;br /&gt;
Recall the inference rule called &#039;&#039;modus ponens&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \rightarrow b&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now suppose we have a property P(n) for a natural number &#039;&#039;n&#039;&#039;. First, prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where f(n) is a function on &#039;&#039;n&#039;&#039;. This is called the &#039;&#039;inductive claim&#039;&#039;. Its left-hand side called the &#039;&#039;inductive hypothesis&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, prove P(n) for &#039;&#039;n&#039;&#039; = &#039;&#039;x&#039;&#039;. This is called the &#039;&#039;base premise&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, apply modus ponens, resulting in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(x))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(f(x)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
=== A Special Case ===&lt;br /&gt;
&lt;br /&gt;
If we wish to prove P(n) for natural numbers greater or equal to &#039;&#039;x&#039;&#039;, then we can use a special case of induction. Simply let f(n) = &#039;&#039;n&#039;&#039; + 1. Then prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. If we let &#039;&#039;x&#039;&#039; = 1, for example, then we have proven P(x) for all natural numbers.&lt;br /&gt;
&lt;br /&gt;
== Strong Induction ==&lt;br /&gt;
&lt;br /&gt;
The following is a variant of induction, using a stronger inductive hypothesis:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le x) : P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
Note: it is possible to let f(n) be something other than &#039;&#039;n&#039;&#039; + 1. However, this would also require fine-tuning the hypothesis in some way.&lt;br /&gt;
&lt;br /&gt;
== Parting Words ==&lt;br /&gt;
&lt;br /&gt;
Any proof using induction can be written using the basic form. However, it is sometimes easier to use the stronger hypothesis, as you will see in one of the sample problems.&lt;br /&gt;
&lt;br /&gt;
All proofs using induction consist of a proof of an inductive claim and one or more proofs of base premises. Other claims can support the inductive claim as needed.&lt;br /&gt;
&lt;br /&gt;
== Sample Problems ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(n + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property, more formally described as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = xk(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (xk + y^n)(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;xk + y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is an integer, this satisfies P(n + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base premises. Let P(n) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If P(n), then adding a 3-unit coin would satisfy P(n + 3). Thus, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we establish our base premises:&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5. Thus, we can make all values of the form 7 + 1 + 3k.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3. Thus, we can make all values of the form 7 + 2 + 3k.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5. Thus, we can make all values of the form 7 + 3 + 3k.&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;k&#039;&#039; is a non-negative integer.&lt;br /&gt;
&lt;br /&gt;
Therefore, it is easy to see that the property holds true for all natural numbers greater than 7. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 4 ===&lt;br /&gt;
&lt;br /&gt;
Without using the fundamental theorem of arithmetic, prove that for every natural number &#039;&#039;n&#039;&#039; there exists an integer &#039;&#039;x&#039;&#039; and an odd integer &#039;&#039;y&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n = 2^{x}y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
2n &amp;amp; = 2 \cdot 2^{x}y \\&lt;br /&gt;
&amp;amp; = 2^{x+1}y \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;x&#039;&#039; + 1 is also an integer, this satisfies P(2n). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(2n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; be any odd integer. Then, letting &#039;&#039;x&#039;&#039; = 0 and &#039;&#039;y&#039;&#039; = &#039;&#039;n&#039;&#039; satisfies P(n). Therefore, we have proven the claim that P(n) for all odd integers &#039;&#039;n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Now, we use the stronger hypothesis to complete the proof. If&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then consider two cases:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is odd. Then, P(n + 1) by the second claim.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is even. Then&lt;br /&gt;
::&amp;lt;math&amp;gt;1 \le \frac{n+1}{2} \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
:and thus P((n + 1) / 2) by the assumption, and P(n + 1) by the first claim.&lt;br /&gt;
&lt;br /&gt;
We have now proven&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since P(1), it follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=23300</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=23300"/>
		<updated>2010-04-01T05:57:46Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* Problem 4 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. The set of natural numbers exhibits some interesting properties that it allows induction to be effective; for the curious, [[http://en.wikipedia.org/wiki/Natural_number this page]] is a good place to start.&lt;br /&gt;
&lt;br /&gt;
== Basic Form ==&lt;br /&gt;
&lt;br /&gt;
Recall the inference rule called &#039;&#039;modus ponens&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \rightarrow b&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now suppose we have a property P(n) for a natural number &#039;&#039;n&#039;&#039;. First, prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where f(n) is a function on &#039;&#039;n&#039;&#039;. This is called the &#039;&#039;inductive claim&#039;&#039;. Its left-hand side called the &#039;&#039;inductive hypothesis&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, prove P(n) for &#039;&#039;n&#039;&#039; = &#039;&#039;x&#039;&#039;. This is called the &#039;&#039;base premise&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, apply modus ponens, resulting in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(x))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(f(x)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
=== A Special Case ===&lt;br /&gt;
&lt;br /&gt;
If we wish to prove P(n) for natural numbers greater or equal to &#039;&#039;x&#039;&#039;, then we can use a special case of induction. Simply let f(n) = &#039;&#039;n&#039;&#039; + 1. Then prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. If we let &#039;&#039;x&#039;&#039; = 1, for example, then we have proven P(x) for all natural numbers.&lt;br /&gt;
&lt;br /&gt;
== Strong Induction ==&lt;br /&gt;
&lt;br /&gt;
The following is a variant of induction, using a stronger inductive hypothesis:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le x) : P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
Note: it is possible to let f(n) be something other than &#039;&#039;n&#039;&#039; + 1. However, this would also require fine-tuning the hypothesis in some way.&lt;br /&gt;
&lt;br /&gt;
== Parting Words ==&lt;br /&gt;
&lt;br /&gt;
Any proof using induction can be written using the basic form. However, it is sometimes easier to use the stronger hypothesis, as you will see in one of the sample problems.&lt;br /&gt;
&lt;br /&gt;
All proofs using induction consist of a proof of an inductive claim and one or more proofs of base premises. Other claims can support the inductive claim as needed.&lt;br /&gt;
&lt;br /&gt;
== Sample Problems ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(n + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property, more formally described as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = xk(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (xk + y^n)(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;xk + y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is an integer, this satisfies P(n + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base premises. Let P(n) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If P(n), then adding a 3-unit coin would satisfy P(n + 3). Thus, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we establish our base premises:&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5. Thus, we can make all values of the form 7 + 1 + 3k.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3. Thus, we can make all values of the form 7 + 2 + 3k.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5. Thus, we can make all values of the form 7 + 3 + 3k.&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;k&#039;&#039; is a non-negative integer.&lt;br /&gt;
&lt;br /&gt;
Therefore, it is easy to see that the property holds true for all natural numbers greater than 7. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 4 ===&lt;br /&gt;
&lt;br /&gt;
Without using the fundamental theorem of arithmetic, prove that for every natural number &#039;&#039;n&#039;&#039; there exists an integer &#039;&#039;x&#039;&#039; and an odd integer &#039;&#039;y&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n = 2^{x}y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
2n &amp;amp; = 2 \cdot 2^{x}y \\&lt;br /&gt;
&amp;amp; = 2^{x+1}y \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;x&#039;&#039; + 1 is also an integer, this satisfies P(2n). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(2n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; be any odd integer. Then, letting &#039;&#039;x&#039;&#039; = 0 and &#039;&#039;y&#039;&#039; = &#039;&#039;n&#039;&#039; satisfies P(n). Therefore, we have proven the claim that P(n) for all odd integers &#039;&#039;n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Now, we use the stronger hypothesis to complete the proof. If&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then consider two cases:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is odd. Then, P(n + 1) by the second claim.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is even. Then&lt;br /&gt;
::&amp;lt;math&amp;gt;1 \le \frac{n+1}{2} \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
:and thus P((n + 1) / 2) by the assumption, and P(n + 1) by the first claim.&lt;br /&gt;
&lt;br /&gt;
We have now proven&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since P(1), it follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=23299</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=23299"/>
		<updated>2010-04-01T05:57:18Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. The set of natural numbers exhibits some interesting properties that it allows induction to be effective; for the curious, [[http://en.wikipedia.org/wiki/Natural_number this page]] is a good place to start.&lt;br /&gt;
&lt;br /&gt;
== Basic Form ==&lt;br /&gt;
&lt;br /&gt;
Recall the inference rule called &#039;&#039;modus ponens&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \rightarrow b&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now suppose we have a property P(n) for a natural number &#039;&#039;n&#039;&#039;. First, prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where f(n) is a function on &#039;&#039;n&#039;&#039;. This is called the &#039;&#039;inductive claim&#039;&#039;. Its left-hand side called the &#039;&#039;inductive hypothesis&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, prove P(n) for &#039;&#039;n&#039;&#039; = &#039;&#039;x&#039;&#039;. This is called the &#039;&#039;base premise&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, apply modus ponens, resulting in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(x))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(f(x)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
=== A Special Case ===&lt;br /&gt;
&lt;br /&gt;
If we wish to prove P(n) for natural numbers greater or equal to &#039;&#039;x&#039;&#039;, then we can use a special case of induction. Simply let f(n) = &#039;&#039;n&#039;&#039; + 1. Then prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. If we let &#039;&#039;x&#039;&#039; = 1, for example, then we have proven P(x) for all natural numbers.&lt;br /&gt;
&lt;br /&gt;
== Strong Induction ==&lt;br /&gt;
&lt;br /&gt;
The following is a variant of induction, using a stronger inductive hypothesis:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le x) : P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
Note: it is possible to let f(n) be something other than &#039;&#039;n&#039;&#039; + 1. However, this would also require fine-tuning the hypothesis in some way.&lt;br /&gt;
&lt;br /&gt;
== Parting Words ==&lt;br /&gt;
&lt;br /&gt;
Any proof using induction can be written using the basic form. However, it is sometimes easier to use the stronger hypothesis, as you will see in one of the sample problems.&lt;br /&gt;
&lt;br /&gt;
All proofs using induction consist of a proof of an inductive claim and one or more proofs of base premises. Other claims can support the inductive claim as needed.&lt;br /&gt;
&lt;br /&gt;
== Sample Problems ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(n + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property, more formally described as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = xk(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (xk + y^n)(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;xk + y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is an integer, this satisfies P(n + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base premises. Let P(n) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If P(n), then adding a 3-unit coin would satisfy P(n + 3). Thus, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we establish our base premises:&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5. Thus, we can make all values of the form 7 + 1 + 3k.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3. Thus, we can make all values of the form 7 + 2 + 3k.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5. Thus, we can make all values of the form 7 + 3 + 3k.&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;k&#039;&#039; is a non-negative integer.&lt;br /&gt;
&lt;br /&gt;
Therefore, it is easy to see that the property holds true for all natural numbers greater than 7. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 4 ===&lt;br /&gt;
&lt;br /&gt;
Without using the fundamental theorem of arithmetic, prove that for every natural number &#039;&#039;n&#039;&#039; there exists an integer &#039;&#039;x&#039;&#039; and an odd integer &#039;&#039;y&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n = 2^{x}y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
2n &amp;amp; = 2 \cdot 2^{x}y \\&lt;br /&gt;
&amp;amp; = 2^{x+1}y \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;x&#039;&#039; + 1 is also an integer, this satisfies P(2n). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(2n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; be any odd integer. Then, letting &#039;&#039;x&#039;&#039; = 0 and &#039;&#039;y&#039;&#039; = &#039;&#039;n&#039;&#039; satisfies P(n). Therefore, we have proven the P(n) for all odd integers &#039;&#039;n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Now, we use the stronger hypothesis to complete the proof. If&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then consider two cases:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is odd. Then, P(n + 1) by the second claim.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is even. Then&lt;br /&gt;
::&amp;lt;math&amp;gt;1 \le \frac{n+1}{2} \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
:and thus P((n + 1) / 2) by the assumption, and P(n + 1) by the first claim.&lt;br /&gt;
&lt;br /&gt;
We have now proven&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since P(1), it follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=23298</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=23298"/>
		<updated>2010-04-01T05:54:27Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* Parting Words */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. The set of natural numbers exhibits some interesting properties that it allows induction to be effective; for the curious, [[http://en.wikipedia.org/wiki/Natural_number this page]] is a good place to start.&lt;br /&gt;
&lt;br /&gt;
== Basic Form ==&lt;br /&gt;
&lt;br /&gt;
Recall the inference rule called &#039;&#039;modus ponens&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \rightarrow b&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now suppose we have a property P(n) for a natural number &#039;&#039;n&#039;&#039;. First, prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where f(n) is a function on &#039;&#039;n&#039;&#039;. This is called the &#039;&#039;inductive claim&#039;&#039;. Its left-hand side called the &#039;&#039;inductive hypothesis&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, prove P(n) for &#039;&#039;n&#039;&#039; = &#039;&#039;x&#039;&#039;. This is called the &#039;&#039;base premise&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, apply modus ponens, resulting in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(x))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(f(x)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
=== A Special Case ===&lt;br /&gt;
&lt;br /&gt;
If we wish to prove P(n) for natural numbers greater or equal to &#039;&#039;x&#039;&#039;, then we can use a special case of induction. Simply let f(n) = &#039;&#039;n&#039;&#039; + 1. Then prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. If we let &#039;&#039;x&#039;&#039; = 1, for example, then we have proven P(x) for all natural numbers.&lt;br /&gt;
&lt;br /&gt;
== Strong Induction ==&lt;br /&gt;
&lt;br /&gt;
The following is a variant of induction, using a stronger inductive hypothesis:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le x) : P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
Note: it is possible to let f(n) be something other than &#039;&#039;n&#039;&#039; + 1. However, this would also require fine-tuning the hypothesis in some way.&lt;br /&gt;
&lt;br /&gt;
== Parting Words ==&lt;br /&gt;
&lt;br /&gt;
Any proof using induction can be written using the basic form. However, it is sometimes easier to use the stronger hypothesis, as you will see in one of the sample problems.&lt;br /&gt;
&lt;br /&gt;
All proofs using induction consist of a proof of an inductive claim and one or more proofs of base premises. Other claims can support the inductive claim as needed.&lt;br /&gt;
&lt;br /&gt;
== Sample Problems ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(n + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property, more formally described as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = xk(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (xk + y^n)(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;xk + y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is an integer, this satisfies P(n + 1). Therefore, we have proven the claim.&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base premises. Let P(n) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If P(n), then adding a 3-unit coin would satisfy P(n + 3). Thus, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we establish our base premises:&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5. Thus, we can make all values of the form 7 + 1 + 3k.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3. Thus, we can make all values of the form 7 + 2 + 3k.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5. Thus, we can make all values of the form 7 + 3 + 3k.&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;k&#039;&#039; is a non-negative integer.&lt;br /&gt;
&lt;br /&gt;
Therefore, it is easy to see that the property holds true for all natural numbers greater than 7. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 4 ===&lt;br /&gt;
&lt;br /&gt;
Without using the fundamental theorem of arithmetic, prove that for every natural number &#039;&#039;n&#039;&#039; there exists an integer &#039;&#039;x&#039;&#039; and an odd integer &#039;&#039;y&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n = 2^{x}y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
2n &amp;amp; = 2 \cdot 2^{x}y \\&lt;br /&gt;
&amp;amp; = 2^{x+1}y \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;x&#039;&#039; + 1 is also an integer, this satisfies P(2n). This the first claim.&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; be any odd integer. Then, letting &#039;&#039;x&#039;&#039; = 0 and &#039;&#039;y&#039;&#039; = &#039;&#039;n&#039;&#039; satisfies P(n). This is the second claim.&lt;br /&gt;
&lt;br /&gt;
We now use the stronger hypothesis. If&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then consider two cases:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is odd. Then, P(n + 1) is satisfied from the second claim.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is even. Then&lt;br /&gt;
::&amp;lt;math&amp;gt;1 \le \frac{n+1}{2} \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
:and thus P((n + 1) / 2) by the assumption. Therefore, by the first claim, P(n + 1).&lt;br /&gt;
&lt;br /&gt;
We have now proven&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since P(1), it follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=23297</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=23297"/>
		<updated>2010-04-01T05:49:18Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* Problem 4 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. The set of natural numbers exhibits some interesting properties that it allows induction to be effective; for the curious, [[http://en.wikipedia.org/wiki/Natural_number this page]] is a good place to start.&lt;br /&gt;
&lt;br /&gt;
== Basic Form ==&lt;br /&gt;
&lt;br /&gt;
Recall the inference rule called &#039;&#039;modus ponens&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \rightarrow b&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now suppose we have a property P(n) for a natural number &#039;&#039;n&#039;&#039;. First, prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where f(n) is a function on &#039;&#039;n&#039;&#039;. This is called the &#039;&#039;inductive claim&#039;&#039;. Its left-hand side called the &#039;&#039;inductive hypothesis&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, prove P(n) for &#039;&#039;n&#039;&#039; = &#039;&#039;x&#039;&#039;. This is called the &#039;&#039;base premise&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, apply modus ponens, resulting in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(x))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(f(x)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
=== A Special Case ===&lt;br /&gt;
&lt;br /&gt;
If we wish to prove P(n) for natural numbers greater or equal to &#039;&#039;x&#039;&#039;, then we can use a special case of induction. Simply let f(n) = &#039;&#039;n&#039;&#039; + 1. Then prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. If we let &#039;&#039;x&#039;&#039; = 1, for example, then we have proven P(x) for all natural numbers.&lt;br /&gt;
&lt;br /&gt;
== Strong Induction ==&lt;br /&gt;
&lt;br /&gt;
The following is a variant of induction, using a stronger inductive hypothesis:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le x) : P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
Note: it is possible to let f(n) be something other than &#039;&#039;n&#039;&#039; + 1. However, this would also require fine-tuning the hypothesis in some way.&lt;br /&gt;
&lt;br /&gt;
== Parting Words ==&lt;br /&gt;
&lt;br /&gt;
Any proof using a stronger hypothesis can also be written using the basic form. However, it is sometimes easier to use the stronger hypothesis, as you will see in one of the sample problems.&lt;br /&gt;
&lt;br /&gt;
All proofs using induction consist of a proof of an inductive claim and one or more proofs of base premises. Note that other claims can support the inductive claim as needed.&lt;br /&gt;
&lt;br /&gt;
== Sample Problems ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(n + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property, more formally described as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = xk(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (xk + y^n)(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;xk + y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is an integer, this satisfies P(n + 1). Therefore, we have proven the claim.&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base premises. Let P(n) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If P(n), then adding a 3-unit coin would satisfy P(n + 3). Thus, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we establish our base premises:&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5. Thus, we can make all values of the form 7 + 1 + 3k.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3. Thus, we can make all values of the form 7 + 2 + 3k.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5. Thus, we can make all values of the form 7 + 3 + 3k.&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;k&#039;&#039; is a non-negative integer.&lt;br /&gt;
&lt;br /&gt;
Therefore, it is easy to see that the property holds true for all natural numbers greater than 7. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 4 ===&lt;br /&gt;
&lt;br /&gt;
Without using the fundamental theorem of arithmetic, prove that for every natural number &#039;&#039;n&#039;&#039; there exists an integer &#039;&#039;x&#039;&#039; and an odd integer &#039;&#039;y&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n = 2^{x}y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
2n &amp;amp; = 2 \cdot 2^{x}y \\&lt;br /&gt;
&amp;amp; = 2^{x+1}y \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;x&#039;&#039; + 1 is also an integer, this satisfies P(2n). This the first claim.&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; be any odd integer. Then, letting &#039;&#039;x&#039;&#039; = 0 and &#039;&#039;y&#039;&#039; = &#039;&#039;n&#039;&#039; satisfies P(n). This is the second claim.&lt;br /&gt;
&lt;br /&gt;
We now use the stronger hypothesis. If&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then consider two cases:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is odd. Then, P(n + 1) is satisfied from the second claim.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is even. Then&lt;br /&gt;
::&amp;lt;math&amp;gt;1 \le \frac{n+1}{2} \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
:and thus P((n + 1) / 2) by the assumption. Therefore, by the first claim, P(n + 1).&lt;br /&gt;
&lt;br /&gt;
We have now proven&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since P(1), it follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=23296</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=23296"/>
		<updated>2010-04-01T05:31:46Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. The set of natural numbers exhibits some interesting properties that it allows induction to be effective; for the curious, [[http://en.wikipedia.org/wiki/Natural_number this page]] is a good place to start.&lt;br /&gt;
&lt;br /&gt;
== Basic Form ==&lt;br /&gt;
&lt;br /&gt;
Recall the inference rule called &#039;&#039;modus ponens&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \rightarrow b&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now suppose we have a property P(n) for a natural number &#039;&#039;n&#039;&#039;. First, prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where f(n) is a function on &#039;&#039;n&#039;&#039;. This is called the &#039;&#039;inductive claim&#039;&#039;. Its left-hand side called the &#039;&#039;inductive hypothesis&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, prove P(n) for &#039;&#039;n&#039;&#039; = &#039;&#039;x&#039;&#039;. This is called the &#039;&#039;base premise&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, apply modus ponens, resulting in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(x))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(f(x)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
=== A Special Case ===&lt;br /&gt;
&lt;br /&gt;
If we wish to prove P(n) for natural numbers greater or equal to &#039;&#039;x&#039;&#039;, then we can use a special case of induction. Simply let f(n) = &#039;&#039;n&#039;&#039; + 1. Then prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. If we let &#039;&#039;x&#039;&#039; = 1, for example, then we have proven P(x) for all natural numbers.&lt;br /&gt;
&lt;br /&gt;
== Strong Induction ==&lt;br /&gt;
&lt;br /&gt;
The following is a variant of induction, using a stronger inductive hypothesis:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le x) : P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
Note: it is possible to let f(n) be something other than &#039;&#039;n&#039;&#039; + 1. However, this would also require fine-tuning the hypothesis in some way.&lt;br /&gt;
&lt;br /&gt;
== Parting Words ==&lt;br /&gt;
&lt;br /&gt;
Any proof using a stronger hypothesis can also be written using the basic form. However, it is sometimes easier to use the stronger hypothesis, as you will see in one of the sample problems.&lt;br /&gt;
&lt;br /&gt;
All proofs using induction consist of a proof of an inductive claim and one or more proofs of base premises. Note that other claims can support the inductive claim as needed.&lt;br /&gt;
&lt;br /&gt;
== Sample Problems ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(n + 1). Therefore, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property, more formally described as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = xk(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (xk + y^n)(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;xk + y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is an integer, this satisfies P(n + 1). Therefore, we have proven the claim.&lt;br /&gt;
&lt;br /&gt;
Now let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base premises. Let P(n) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If P(n), then adding a 3-unit coin would satisfy P(n + 3). Thus, we have proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 3)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we establish our base premises:&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5. Thus, we can make all values of the form 7 + 1 + 3k.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3. Thus, we can make all values of the form 7 + 2 + 3k.&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5. Thus, we can make all values of the form 7 + 3 + 3k.&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;k&#039;&#039; is a non-negative integer.&lt;br /&gt;
&lt;br /&gt;
Therefore, it is easy to see that the property holds true for all natural numbers greater than 7. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 4 ===&lt;br /&gt;
&lt;br /&gt;
Without using the fundamental theorem of arithmetic, prove that for every natural number &#039;&#039;n&#039;&#039; there exists an integer &#039;&#039;x&#039;&#039; and an odd integer &#039;&#039;y&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n = 2^{x}y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
2n &amp;amp; = 2 \cdot 2^{x}y \\&lt;br /&gt;
&amp;amp; = 2^{x+1}y \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;x&#039;&#039; + 1 is also an integer, this satisfies P(2n). Thus, we have the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(2n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; be any odd integer. Then, letting &#039;&#039;x&#039;&#039; = 0 and &#039;&#039;y&#039;&#039; = &#039;&#039;n&#039;&#039; satisfies P(n). This will be the second claim.&lt;br /&gt;
&lt;br /&gt;
We now use the stronger hypothesis. If&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then consider two cases:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is odd. Then, P(n + 1) is satisfied from our second claim.&lt;br /&gt;
:&#039;&#039;n&#039;&#039; + 1 is even. Then&lt;br /&gt;
::&amp;lt;math&amp;gt;1 \le \frac{n+1}{2} \le n&amp;lt;/math&amp;gt;&lt;br /&gt;
:and thus P((n + 1) / 2) by our assumption. Therefore, by our first claim, P(n + 1).&lt;br /&gt;
&lt;br /&gt;
We have now proven the claim&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (1 \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since P(1), it follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=23295</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=23295"/>
		<updated>2010-04-01T04:55:44Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. The set of natural numbers exhibits some interesting properties that it allows induction to be effective; for the curious, [[http://en.wikipedia.org/wiki/Natural_number this page]] is a good place to start.&lt;br /&gt;
&lt;br /&gt;
== Basic Form ==&lt;br /&gt;
&lt;br /&gt;
Consider the inference rule called &#039;&#039;modus ponens&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \rightarrow b&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now suppose we have a property P(n) for a natural number &#039;&#039;n&#039;&#039;. First, prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where f(n) is a function on &#039;&#039;n&#039;&#039;. This is called the &#039;&#039;claim&#039;&#039;. The left-hand side of the claim is called the &#039;&#039;inductive hypothesis&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, prove P(n) for &#039;&#039;n&#039;&#039; = &#039;&#039;x&#039;&#039;. This is called the &#039;&#039;base premise&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, apply modus ponens, resulting in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(x))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(f(x)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
=== A Special Case ===&lt;br /&gt;
&lt;br /&gt;
If we wish to prove P(n) for natural numbers greater or equal to &#039;&#039;x&#039;&#039;, then we can use a special case of induction. Simply let f(n) = &#039;&#039;n&#039;&#039; + 1. Then prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. If we let &#039;&#039;x&#039;&#039; = 1, for example, then we have proven P(x) for all natural numbers.&lt;br /&gt;
&lt;br /&gt;
== A Stronger Hypothesis ==&lt;br /&gt;
&lt;br /&gt;
The following is a variant of induction, using a stronger inductive hypothesis:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le x) : P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
Note: it is possible to let f(n) be something other than &#039;&#039;n&#039;&#039; + 1. However, this would also require fine-tuning the hypothesis in some way.&lt;br /&gt;
&lt;br /&gt;
== Parting Words ==&lt;br /&gt;
&lt;br /&gt;
Any proof using a stronger hypothesis can also be written using the basic form. However, it is sometimes easier to use the stronger hypothesis, i.e. shorten the length of a proof.&lt;br /&gt;
&lt;br /&gt;
All proofs using induction consist of a proof of one or more claims and one or more proofs of base premises.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(n + 1); therefore, the claim is proven.&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property, more formally described as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = xj(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (xj + y^n)(x - y) \\&lt;br /&gt;
&amp;amp; = k(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. We have thus proven P(n + 1), and therefore proven the claim.&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base premises. Let P(n) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If P(n) then clearly P(n + 3) by adding a 3-unit coin. Then,&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5. Then, we can make 11, 14, 17...&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3. Then, we can make 12, 15, 18...&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5. Then, we can make 13, 16, 19...&lt;br /&gt;
&lt;br /&gt;
Thus, the property holds true for all natural numbers greater than 7. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 4 ===&lt;br /&gt;
&lt;br /&gt;
Without using the fundamental theorem of arithmetic, prove that for every natural number &#039;&#039;n&#039;&#039; there exists an odd number &#039;&#039;x&#039;&#039; and an integer &#039;&#039;k&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;n = 2^k \cdot x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
2n &amp;amp; = 2 \cdot 2^k \cdot x \\&lt;br /&gt;
&amp;amp; = 2^{k+1} \cdot x \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since &#039;&#039;k&#039;&#039; + 1 is also an integer, thus P(2n). We have proven that ... to be continued&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=21592</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=21592"/>
		<updated>2010-03-19T20:14:33Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. The set of natural numbers exhibits some interesting properties that it allows induction to be effective; for the curious, [[http://en.wikipedia.org/wiki/Natural_number this page]] is a good place to start.&lt;br /&gt;
&lt;br /&gt;
== Basic Form ==&lt;br /&gt;
&lt;br /&gt;
Consider the inference rule called &#039;&#039;modus ponens&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \rightarrow b&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now suppose we have a property P(n) for a natural number &#039;&#039;n&#039;&#039;. First, prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where f(n) is a function on &#039;&#039;n&#039;&#039;. This is called the &#039;&#039;claim&#039;&#039;. The left-hand side of the claim is called the &#039;&#039;inductive hypothesis&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, prove P(n) for &#039;&#039;n&#039;&#039; = &#039;&#039;x&#039;&#039;. This is called the &#039;&#039;base premise&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, apply modus ponens, resulting in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(x))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(f(x)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
=== A Special Case ===&lt;br /&gt;
&lt;br /&gt;
If we wish to prove P(n) for natural numbers greater or equal to &#039;&#039;x&#039;&#039;, then we can use a special case of induction. Simply let f(n) = &#039;&#039;n&#039;&#039; + 1. Then prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. If we let &#039;&#039;x&#039;&#039; = 1, for example, then we have proven P(x) for all natural numbers.&lt;br /&gt;
&lt;br /&gt;
== A Stronger Hypothesis ==&lt;br /&gt;
&lt;br /&gt;
The following is a variant of induction, using a stronger inductive hypothesis:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le x) : P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
Note: it is possible to let f(n) be something other than &#039;&#039;n&#039;&#039; + 1. However, this would also require fine-tuning the hypothesis in some way.&lt;br /&gt;
&lt;br /&gt;
== Parting Words ==&lt;br /&gt;
&lt;br /&gt;
Any proof using a stronger hypothesis can also be written using the basic form. However, it is sometimes easier to use the stronger hypothesis, i.e. shorten the length of a proof.&lt;br /&gt;
&lt;br /&gt;
All proofs using induction consist of a proof of one or more claims and one or more proofs of base premises.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(n + 1); therefore, the claim is proven.&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property, more formally described as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = xj(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (xj + y^n)(x - y) \\&lt;br /&gt;
&amp;amp; = k(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. We have thus proven P(n + 1), and therefore proven the claim.&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base premises. Let P(n) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If P(n) then clearly P(n + 3) by adding a 3-unit coin. Then,&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5. Then, we can make 11, 14, 17...&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3. Then, we can make 12, 15, 18...&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5. Then, we can make 13, 16, 19...&lt;br /&gt;
&lt;br /&gt;
Thus, the property holds true for all natural numbers greater than 7. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=21591</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=21591"/>
		<updated>2010-03-19T20:13:55Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. The set of natural numbers exhibits some interesting properties that it allows induction to be effective; for the curious, [[http://en.wikipedia.org/wiki/Natural_number this page]] is a good place to start.&lt;br /&gt;
&lt;br /&gt;
=== Basic Form ===&lt;br /&gt;
&lt;br /&gt;
Consider the inference rule called &#039;&#039;modus ponens&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a \rightarrow b&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now suppose we have a property P(n) for a natural number &#039;&#039;n&#039;&#039;. First, prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where f(n) is a function on &#039;&#039;n&#039;&#039;. This is called the &#039;&#039;claim&#039;&#039;. The left-hand side of the claim is called the &#039;&#039;inductive hypothesis&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, prove P(n) for &#039;&#039;n&#039;&#039; = &#039;&#039;x&#039;&#039;. This is called the &#039;&#039;base premise&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Then, apply modus ponens, resulting in&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(f(n))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(x))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(f(f(x)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
=== A Special Case ===&lt;br /&gt;
&lt;br /&gt;
If we wish to prove P(n) for natural numbers greater or equal to &#039;&#039;x&#039;&#039;, then we can use a special case of induction. Simply let f(n) = &#039;&#039;n&#039;&#039; + 1. Then prove&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on. If we let &#039;&#039;x&#039;&#039; = 1, for example, then we have proven P(x) for all natural numbers.&lt;br /&gt;
&lt;br /&gt;
=== A Stronger Hypothesis ===&lt;br /&gt;
&lt;br /&gt;
The following is a variant of induction, using a stronger inductive hypothesis:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le n) : P(n) \rightarrow P(n + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall k \; (c \le k \le x) : P(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\therefore P(x + 2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
Note: it is possible to let f(n) be something other than &#039;&#039;n&#039;&#039; + 1. However, this would also require fine-tuning the hypothesis in some way.&lt;br /&gt;
&lt;br /&gt;
=== Parting Words ===&lt;br /&gt;
&lt;br /&gt;
Any proof using a stronger hypothesis can also be written using the basic form. However, it is sometimes easier to use the stronger hypothesis, i.e. shorten the length of a proof.&lt;br /&gt;
&lt;br /&gt;
All proofs using induction consist of a proof of one or more claims and one or more proofs of base premises.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(n + 1); therefore, the claim is proven.&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property, more formally described as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = xj(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (xj + y^n)(x - y) \\&lt;br /&gt;
&amp;amp; = k(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. We have thus proven P(n + 1), and therefore proven the claim.&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base premises. Let P(n) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If P(n) then clearly P(n + 3) by adding a 3-unit coin. Then,&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5. Then, we can make 11, 14, 17...&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3. Then, we can make 12, 15, 18...&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5. Then, we can make 13, 16, 19...&lt;br /&gt;
&lt;br /&gt;
Thus, the property holds true for all natural numbers greater than 7. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=21120</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=21120"/>
		<updated>2010-03-15T02:17:05Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. The set of natural numbers exhibits some interesting properties that it allows induction to be effective; for the curious, [[http://en.wikipedia.org/wiki/Natural_number this page]] is a good place to start.&lt;br /&gt;
&lt;br /&gt;
Induction is a simple technique. Suppose we have a property P(n) for a natural number &#039;&#039;n&#039;&#039;. If we prove the assumptions&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n+1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, we have proven&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n+1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And therefore, we have also proven P for the rest of the natural numbers! One can imagine a chain of events, starting from a first cause and causing each other in succession.&lt;br /&gt;
&lt;br /&gt;
A proof using induction simply consists of the inductive hypothesis and the base case, corresponding to each of the two assumptions. Some examples of proofs follow.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This satisfies P(n + 1); therefore, the inductive hypothesis is proven.&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that &#039;&#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt; - y&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&#039;&#039; is divisible by &#039;&#039;x - y&#039;&#039;, for all integers &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let P(n) be the above property, more formally described as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x^n - y^n = k(x - y)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. If P(n), then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
x^{n+1} - y^{n+1} &amp;amp; = x^{n+1} - xy^n + xy^n - y^{n+1} \\&lt;br /&gt;
&amp;amp; = x(x^n - y^n) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = xj(x - y) + y^n(x - y) \\&lt;br /&gt;
&amp;amp; = (xj + y^n)(x - y) \\&lt;br /&gt;
&amp;amp; = k(x - y) \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some integer &#039;&#039;k&#039;&#039;. We have thus proven P(n + 1), and therefore the inductive hypothesis.&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 3 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base cases. Let P(n) be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If P(n) then clearly P(n + 3) by adding a 3-unit coin. Then,&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5. Then, we can make 11, 14, 17...&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3. Then, we can make 12, 15, 18...&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5. Then, we can make 13, 16, 19...&lt;br /&gt;
&lt;br /&gt;
Thus, the property holds true for all natural numbers greater than 7. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=21094</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=21094"/>
		<updated>2010-03-14T09:19:48Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. Consider the property that for each natural number &#039;&#039;n&#039;&#039;, the next is &#039;&#039;n&#039;&#039; + 1. Thus, if we prove the assumptions&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n+1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, we have proven&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n+1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from this, we have also proven the property for the rest of the natural numbers! A proof by induction in its simplest form consists of the inductive hypothesis, and the base case, corresponding to the two assumptions.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt; be the above property. If &amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt;, then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which satisfies &amp;lt;math&amp;gt;P(n+1)&amp;lt;/math&amp;gt;. Therefore, &amp;lt;math&amp;gt;P(n) \rightarrow P(n+1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base cases. Let &amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt; be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If &amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt; then clearly &amp;lt;math&amp;gt;P(n+3)&amp;lt;/math&amp;gt; by adding a 3-unit coin.&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5. Then, we can make 11, 14, 17...&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3. Then, we can make 12, 15, 18...&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5. Then, we can make 13, 16, 19...&lt;br /&gt;
&lt;br /&gt;
Thus, the property holds true for all natural numbers greater than 7. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: this proof is equivalent to a proof by &#039;&#039;strong induction&#039;&#039;.&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=21093</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=21093"/>
		<updated>2010-03-14T08:45:17Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* Problem 2 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. Consider the property that for each natural number &#039;&#039;n&#039;&#039;, the next is &#039;&#039;n&#039;&#039; + 1. Thus, if we prove the assumptions&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n+1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, we have proven&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n+1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from this, we have also proven the property for the rest of the natural numbers! A proof by induction in its simplest form consists of the inductive hypothesis, and the base case, corresponding to the two assumptions.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt; be the above property. If &amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt;, then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which satisfies &amp;lt;math&amp;gt;P(n+1)&amp;lt;/math&amp;gt;. Therefore, &amp;lt;math&amp;gt;P(n) \rightarrow P(n+1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base cases. Let &amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt; be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If &amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt; then clearly &amp;lt;math&amp;gt;P(n+3)&amp;lt;/math&amp;gt; by adding a 3-unit coin.&lt;br /&gt;
&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units using 3, 5. Then, we can make 11, 14, 17...&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units using 3, 3, 3. Then, we can make 12, 15, 18...&lt;br /&gt;
:Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units using 5, 5. Then, we can make 13, 16, 19...&lt;br /&gt;
&lt;br /&gt;
Thus, the property holds true for all natural numbers greater than 7.&lt;br /&gt;
&lt;br /&gt;
Note: this proof is equivalent to a proof by &#039;&#039;strong induction&#039;&#039;.&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=21092</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=21092"/>
		<updated>2010-03-14T08:43:10Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Mathematical induction is a proof technique used to prove that a statement is true for all natural numbers. Consider the property that for each natural number &#039;&#039;n&#039;&#039;, the next is &#039;&#039;n&#039;&#039; + 1. Thus, if we prove the assumptions&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n) \rightarrow P(n+1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, we have proven&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(n+1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from this, we have also proven the property for the rest of the natural numbers! A proof by induction in its simplest form consists of the inductive hypothesis, and the base case, corresponding to the two assumptions.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Prove for all natural numbers &#039;&#039;n&#039;&#039; that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1+2+3+\cdots+n = \frac{n(n+1)}{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt; be the above property. If &amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt;, then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}&lt;br /&gt;
1+2+3+\cdots+n+(n+1) &amp;amp; = \frac{n(n+1)}{2}+(n+1) \\&lt;br /&gt;
&amp;amp; = \frac{n(n+1)+2(n+1)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)(n+2)}{2} \\&lt;br /&gt;
&amp;amp; = \frac{(n+1)((n+1)+1)}{2} \\&lt;br /&gt;
\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which satisfies &amp;lt;math&amp;gt;P(n+1)&amp;lt;/math&amp;gt;. Therefore, &amp;lt;math&amp;gt;P(n) \rightarrow P(n+1)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; = 1. By substitution, the property holds true. It follows that the property holds true for all natural numbers. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Suppose only two kinds of coins existed, having 3 and 5 units of value. Prove that it is possible to make values of all natural numbers greater than 7 using just these coins.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This can be proven using multiple base cases. Let &amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt; be the property that it is possible to make a value of &#039;&#039;n&#039;&#039;. If &amp;lt;math&amp;gt;P(n)&amp;lt;/math&amp;gt;, then clearly, &amp;lt;math&amp;gt;P(n+3)&amp;lt;/math&amp;gt; by adding a 3-unit coin.&lt;br /&gt;
&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; = 8. We can make 8 units as follows: 3 + 5 = 8. Then, we can make 11, 14, 17...&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; = 9. We can make 9 units as follows: 3 + 3 + 3 = 9. Then, we can make 12, 15, 18...&lt;br /&gt;
Let &#039;&#039;n&#039;&#039; = 10. We can make 10 units as follows: 5 + 5 = 10. Then, we can make 13, 16, 19...&lt;br /&gt;
&lt;br /&gt;
Thus, the property holds true for all natural numbers greater than 7.&lt;br /&gt;
&lt;br /&gt;
Note: this proof is equivalent to a proof by &#039;&#039;strong induction&#039;&#039;.&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Modular_Arithmetic&amp;diff=21091</id>
		<title>Modular Arithmetic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Modular_Arithmetic&amp;diff=21091"/>
		<updated>2010-03-14T08:04:35Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Modular arithmetic is a system of arithmetic, introduced to the world by Carl Friedrich Gauss. Instead of the mainstream notation, I have introduced a new notation, the rationale of which can be found [[http://www.ugrad.cs.ubc.ca/~p1n6/#0 here]].&lt;br /&gt;
&lt;br /&gt;
For the duration of this text, variables are denoted by italicized lowercase letters, and can represent any integer, unless restrictions are specified. &#039;&#039;n&#039;&#039;, however, is always positive.&lt;br /&gt;
&lt;br /&gt;
== Axioms  ==&lt;br /&gt;
&lt;br /&gt;
=== Remainders  ===&lt;br /&gt;
&lt;br /&gt;
Define&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_n(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to be the remainder when &#039;&#039;a&#039;&#039; is divided by &#039;&#039;n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Define the axiom &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a=kn+R_n(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some &#039;&#039;k&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Congruence  ===&lt;br /&gt;
&lt;br /&gt;
Define the relation &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b){\iff}R_n(a)=R_n(b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is equivalent to &#039;&#039;a&#039;&#039; ≡ &#039;&#039;b&#039;&#039; (mod &#039;&#039;n&#039;&#039;). &lt;br /&gt;
&lt;br /&gt;
Define the axioms &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;R_n(a))&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;a)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a\cdot1,\;a)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(kn+a,\;a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the axioms &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
C_n(a,\;b) &amp;amp; \iff &amp;amp; C_n(b,\;a) \\&lt;br /&gt;
C_n(a,\;b),\;C_n(b,\;c) &amp;amp; \iff &amp;amp; C_n(a,\;c)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the axiom &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a_1,\;a_2),\;C_n(a_2,\;a_3)\;\cdots\;{C_n(a_{i-1},\;a_i})\iff{C_n(a_1,\;a_2,\;a_3\;\cdots\;a_{i-1},\;a_i)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;i&#039;&#039; is any positive integer.&lt;br /&gt;
&lt;br /&gt;
== Theorems  ==&lt;br /&gt;
&lt;br /&gt;
=== Additive Property  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a+b,\;R_n(a)+R_n(b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cn + R_n(a) \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dn + R_n(b)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n({a+b},\;{cn+R_n(a)+dn+R_n(b)},\;{n(c+d)+R_n(a)+R_n(b)},\;{R_n(a)+R_n(b)})~~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(a+c,\;b+c)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Multiplicative Property  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(ab,\;R_n(a)R_n(b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cn + R_n(a) \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dn + R_n(b)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(ab,\;{cn\,dn+cn\,R_n(b)+R_n(a)\,dn+R_n(a)\,R_n(b)},\;{n(c\,d{n}+c\,R_n(b)+R_n(a)\,d)+R_n(a)\,R_n(b)},\;R_n(a)\,R_n(b))~~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(ac,\;bc)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exponential Property  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^b,\;(R_n(a))^b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;b&#039;&#039; is positive. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Assume this relation holds for some &#039;&#039;b&#039;&#039;. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{b+1},\;a^b\,{a},\;R_n(a^b)\,R_n(a),\;(R_n(a))^b\,R_n(a),\;(R_n(a))^{b+1})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore, it follows that if this relation holds for &#039;&#039;b&#039;&#039;, it also holds for &#039;&#039;b&#039;&#039; + 1. Let &#039;&#039;b&#039;&#039; = 1. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^1,\;(R_n(a))^1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;(R_n(a)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This holds true. Therefore, this relation holds true for any positive &#039;&#039;b&#039;&#039;. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(a^c,\;b^c)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;c&#039;&#039; is positive.&lt;br /&gt;
&lt;br /&gt;
=== Divisor Rule  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)\Rightarrow{C_x(a,\;b),\;C_y(a,\;b)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039; are positive. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)\iff{R_{xy}(a)=R_{xy}(b)=r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some &#039;&#039;r&#039;&#039;. Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cxy + r \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dxy + r&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, it follows that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; jx + r \\&lt;br /&gt;
b &amp;amp; = &amp;amp; kx + r&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;{jx+r},\;r)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(b,\;{kx+r},\;r)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;b)~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for &#039;&#039;y&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
=== Product Rule  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;b),\;C_y(a,\;b),\;gcd(x,\;y)=1\Rightarrow{C_{xy}(a,\;b)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039; are positive, and &#039;&#039;gcd&#039;&#039; is the greatest common divisor function. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; b + k_1{x} \\&lt;br /&gt;
a &amp;amp; = &amp;amp; b + k_2{y} \\&lt;br /&gt;
k_1{x} &amp;amp; = &amp;amp; k_2{y}&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, by &#039;&#039;gcd&#039;&#039;(&#039;&#039;x&#039;&#039;, &#039;&#039;y&#039;&#039;) = 1,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
k_1 &amp;amp; = &amp;amp; ly \\&lt;br /&gt;
k_2 &amp;amp; = &amp;amp; lx \\&lt;br /&gt;
a &amp;amp; = &amp;amp; b + lxy&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exponential Identity ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{a^q}((a+b)^p,\;\sum_{i=0}^{q-1} \tbinom{p}{i}\,a^i\,b^{p-i})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1 &amp;lt; q &amp;lt; b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
This directly follows from the binomial theorem. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exponential Congruence Theorem ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;gcd&#039;&#039;(&#039;&#039;n&#039;&#039;, &#039;&#039;a&#039;&#039;) = 1, then there exists &#039;&#039;p&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^p,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof:&lt;br /&gt;
&lt;br /&gt;
Assume there does not exist such &#039;&#039;p&#039;&#039;. By the Pigeonhole Principle, there exist &#039;&#039;p&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039; and &#039;&#039;p&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;p_1&amp;gt;p_2&amp;gt;0,\;C_n(a^{p_1},\;a^{p_2})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, it must be the case that either&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1-p_2},\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1},\;0)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But since &#039;&#039;p&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039; - &#039;&#039;p&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&#039;&#039; &amp;gt; 0, this case contradicts the assumption. Then, the second case must be true.&lt;br /&gt;
&lt;br /&gt;
But&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1},\;0) \Rightarrow a^{p_1}=kn&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is not satisfied since &#039;&#039;gcd&#039;&#039;(&#039;&#039;n&#039;&#039;, &#039;&#039;a&#039;&#039;) = 1. Therefore, the assumption is false, and the theorem is proven. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples  ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Does there exist a number that is a perfect square, a multiple of 2 but not a multiple of 4?&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This is equivalent to finding &#039;&#039;n&#039;&#039; such that &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;n=4x+2=y^2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, if such &#039;&#039;n&#039;&#039; exists,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_4(2,\;y^2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Clearly, &#039;&#039;y&#039;&#039; = 2&#039;&#039;k&#039;&#039;. But&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_4(2,\;(2k)^2,\;4k^2,0)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is impossible. Therefore, &#039;&#039;n&#039;&#039; does not exist. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Given the function &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;f(x) = &lt;br /&gt;
\begin{cases} &lt;br /&gt;
1,          &amp;amp; \mbox{if }x = 1 \\&lt;br /&gt;
x^{f(x-1)}, &amp;amp; \mbox{if }x &amp;gt; 1&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
find &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_{100}(f(2009))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: this is equivalent to the last 2 base 10 digits of&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2009^{2008^{2007^{\cdot^{\cdot^{3^{2^1}}}}}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(f(2009),\;2009^{f(2008)},\;9^{f(2008)})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simplify this, we look for simpler congruences. By the exponential identity, we get &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(81^p,\;1+80p,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if p = 5k. Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(9^{f(2008)},\;9^{R_{10}(f(2008))}\,9^{10k},\;9^{R_{10}(f(2008))})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To proceed, we use the product rule to split up 10 into 2 and 5, getting &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_2(f(2008),\;2008^{f(2007)},\;0)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_5(f(2008),\;2008^{f(2007)},\;8^{R_4(f(2007))}\,8^{4k},\;8^{R_4(f(2007))}\,4096^k,\;8^{R_4(f(2007))})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some k. To proceed, we evaluate &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_4(f(2007),\;2007^{f(2006)},\;7^{f(2006)},\;49^k,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some k. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_5(f(2008),\;8)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_2(f(2008),\;0,\;8)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Putting the product back together, we get &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{10}(f(2008),\;8)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;R_{10}(f(2008))=8&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(f(2009),\;9^{f(2008)},\;9^{R_{10}(f(2008))},\;9^8,\;81^4,\;61^2\;,21)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore, our desired result is &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_{100}(f(2009))=21&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Modular_Arithmetic&amp;diff=21090</id>
		<title>Modular Arithmetic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Modular_Arithmetic&amp;diff=21090"/>
		<updated>2010-03-14T08:02:26Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Modular arithmetic is a system of arithmetic, introduced to the world by Carl Friedrich Gauss. It is a beautiful field of mathematics, but in my opinion suffers from one fatal flaw: its notation. [[http://www.ugrad.cs.ubc.ca/~p1n6/#1 Here is a rant.]] Therefore, I have taken the liberty of changing the current mainstream notation to one more suitable. I leave it to the reader to judge the changes I have made.&lt;br /&gt;
&lt;br /&gt;
In this text, I will first provide some axioms, which carry over directly. Then, I will provide some basic theorems, and prove these using the new notation, so as to demonstrate its capabilities.&lt;br /&gt;
&lt;br /&gt;
For the duration of this text, variables are denoted by italicized lowercase letters, and can represent any integer, unless restrictions are specified. &#039;&#039;n&#039;&#039;, however, is always positive.&lt;br /&gt;
&lt;br /&gt;
== Axioms  ==&lt;br /&gt;
&lt;br /&gt;
=== Remainders  ===&lt;br /&gt;
&lt;br /&gt;
Define&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_n(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to be the remainder when &#039;&#039;a&#039;&#039; is divided by &#039;&#039;n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Define the axiom &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a=kn+R_n(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some &#039;&#039;k&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Congruence  ===&lt;br /&gt;
&lt;br /&gt;
Define the relation &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b){\iff}R_n(a)=R_n(b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is equivalent to &#039;&#039;a&#039;&#039; ≡ &#039;&#039;b&#039;&#039; (mod &#039;&#039;n&#039;&#039;). &lt;br /&gt;
&lt;br /&gt;
Define the axioms &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;R_n(a))&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;a)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a\cdot1,\;a)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(kn+a,\;a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the axioms &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
C_n(a,\;b) &amp;amp; \iff &amp;amp; C_n(b,\;a) \\&lt;br /&gt;
C_n(a,\;b),\;C_n(b,\;c) &amp;amp; \iff &amp;amp; C_n(a,\;c)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the axiom &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a_1,\;a_2),\;C_n(a_2,\;a_3)\;\cdots\;{C_n(a_{i-1},\;a_i})\iff{C_n(a_1,\;a_2,\;a_3\;\cdots\;a_{i-1},\;a_i)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;i&#039;&#039; is any positive integer.&lt;br /&gt;
&lt;br /&gt;
== Theorems  ==&lt;br /&gt;
&lt;br /&gt;
=== Additive Property  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a+b,\;R_n(a)+R_n(b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cn + R_n(a) \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dn + R_n(b)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n({a+b},\;{cn+R_n(a)+dn+R_n(b)},\;{n(c+d)+R_n(a)+R_n(b)},\;{R_n(a)+R_n(b)})~~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(a+c,\;b+c)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Multiplicative Property  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(ab,\;R_n(a)R_n(b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cn + R_n(a) \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dn + R_n(b)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(ab,\;{cn\,dn+cn\,R_n(b)+R_n(a)\,dn+R_n(a)\,R_n(b)},\;{n(c\,d{n}+c\,R_n(b)+R_n(a)\,d)+R_n(a)\,R_n(b)},\;R_n(a)\,R_n(b))~~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(ac,\;bc)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exponential Property  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^b,\;(R_n(a))^b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;b&#039;&#039; is positive. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Assume this relation holds for some &#039;&#039;b&#039;&#039;. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{b+1},\;a^b\,{a},\;R_n(a^b)\,R_n(a),\;(R_n(a))^b\,R_n(a),\;(R_n(a))^{b+1})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore, it follows that if this relation holds for &#039;&#039;b&#039;&#039;, it also holds for &#039;&#039;b&#039;&#039; + 1. Let &#039;&#039;b&#039;&#039; = 1. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^1,\;(R_n(a))^1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;(R_n(a)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This holds true. Therefore, this relation holds true for any positive &#039;&#039;b&#039;&#039;. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(a^c,\;b^c)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;c&#039;&#039; is positive.&lt;br /&gt;
&lt;br /&gt;
=== Divisor Rule  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)\Rightarrow{C_x(a,\;b),\;C_y(a,\;b)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039; are positive. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)\iff{R_{xy}(a)=R_{xy}(b)=r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some &#039;&#039;r&#039;&#039;. Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cxy + r \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dxy + r&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, it follows that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; jx + r \\&lt;br /&gt;
b &amp;amp; = &amp;amp; kx + r&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;{jx+r},\;r)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(b,\;{kx+r},\;r)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;b)~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for &#039;&#039;y&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
=== Product Rule  ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;b),\;C_y(a,\;b),\;gcd(x,\;y)=1\Rightarrow{C_{xy}(a,\;b)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039; are positive, and &#039;&#039;gcd&#039;&#039; is the greatest common divisor function. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; b + k_1{x} \\&lt;br /&gt;
a &amp;amp; = &amp;amp; b + k_2{y} \\&lt;br /&gt;
k_1{x} &amp;amp; = &amp;amp; k_2{y}&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, by &#039;&#039;gcd&#039;&#039;(&#039;&#039;x&#039;&#039;, &#039;&#039;y&#039;&#039;) = 1,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
k_1 &amp;amp; = &amp;amp; ly \\&lt;br /&gt;
k_2 &amp;amp; = &amp;amp; lx \\&lt;br /&gt;
a &amp;amp; = &amp;amp; b + lxy&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exponential Identity ===&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{a^q}((a+b)^p,\;\sum_{i=0}^{q-1} \tbinom{p}{i}\,a^i\,b^{p-i})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1 &amp;lt; q &amp;lt; b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
This directly follows from the binomial theorem. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Exponential Congruence Theorem ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;gcd&#039;&#039;(&#039;&#039;n&#039;&#039;, &#039;&#039;a&#039;&#039;) = 1, then there exists &#039;&#039;p&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^p,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof:&lt;br /&gt;
&lt;br /&gt;
Assume there does not exist such &#039;&#039;p&#039;&#039;. By the Pigeonhole Principle, there exist &#039;&#039;p&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039; and &#039;&#039;p&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;p_1&amp;gt;p_2&amp;gt;0,\;C_n(a^{p_1},\;a^{p_2})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, it must be the case that either&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1-p_2},\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1},\;0)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But since &#039;&#039;p&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039; - &#039;&#039;p&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&#039;&#039; &amp;gt; 0, this case contradicts the assumption. Then, the second case must be true.&lt;br /&gt;
&lt;br /&gt;
But&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1},\;0) \Rightarrow a^{p_1}=kn&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is not satisfied since &#039;&#039;gcd&#039;&#039;(&#039;&#039;n&#039;&#039;, &#039;&#039;a&#039;&#039;) = 1. Therefore, the assumption is false, and the theorem is proven. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples  ==&lt;br /&gt;
&lt;br /&gt;
=== Problem 1 ===&lt;br /&gt;
&lt;br /&gt;
Does there exist a number that is a perfect square, a multiple of 2 but not a multiple of 4?&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This is equivalent to finding &#039;&#039;n&#039;&#039; such that &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;n=4x+2=y^2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, if such &#039;&#039;n&#039;&#039; exists,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_4(2,\;y^2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Clearly, &#039;&#039;y&#039;&#039; = 2&#039;&#039;k&#039;&#039;. But&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_4(2,\;(2k)^2,\;4k^2,0)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is impossible. Therefore, &#039;&#039;n&#039;&#039; does not exist. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem 2 ===&lt;br /&gt;
&lt;br /&gt;
Given the function &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;f(x) = &lt;br /&gt;
\begin{cases} &lt;br /&gt;
1,          &amp;amp; \mbox{if }x = 1 \\&lt;br /&gt;
x^{f(x-1)}, &amp;amp; \mbox{if }x &amp;gt; 1&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
find &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_{100}(f(2009))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: this is equivalent to the last 2 base 10 digits of&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2009^{2008^{2007^{\cdot^{\cdot^{3^{2^1}}}}}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(f(2009),\;2009^{f(2008)},\;9^{f(2008)})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simplify this, we look for simpler congruences. By the exponential identity, we get &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(81^p,\;1+80p,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if p = 5k. Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(9^{f(2008)},\;9^{R_{10}(f(2008))}\,9^{10k},\;9^{R_{10}(f(2008))})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To proceed, we use the product rule to split up 10 into 2 and 5, getting &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_2(f(2008),\;2008^{f(2007)},\;0)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_5(f(2008),\;2008^{f(2007)},\;8^{R_4(f(2007))}\,8^{4k},\;8^{R_4(f(2007))}\,4096^k,\;8^{R_4(f(2007))})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some k. To proceed, we evaluate &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_4(f(2007),\;2007^{f(2006)},\;7^{f(2006)},\;49^k,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some k. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_5(f(2008),\;8)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_2(f(2008),\;0,\;8)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Putting the product back together, we get &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{10}(f(2008),\;8)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;R_{10}(f(2008))=8&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(f(2009),\;9^{f(2008)},\;9^{R_{10}(f(2008))},\;9^8,\;81^4,\;61^2\;,21)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore, our desired result is &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_{100}(f(2009))=21&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=21089</id>
		<title>Mathematical Induction</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Mathematical_Induction&amp;diff=21089"/>
		<updated>2010-03-14T06:40:08Z</updated>

		<summary type="html">&lt;p&gt;Jerome: Created page with &amp;#039;__TOC__  stuff  === S1 ===  ==== P1 ====&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
stuff&lt;br /&gt;
&lt;br /&gt;
=== S1 ===&lt;br /&gt;
&lt;br /&gt;
==== P1 ====&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=21088</id>
		<title>Predicate Logic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=21088"/>
		<updated>2010-03-14T06:19:51Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* Predicate */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Predicate logic, also called first-order logic, is a formal system that extends propositional logic. The primary application of predicate logic is also to model statements in natural language; however, it is more expressive than propositional logic, given its larger set of rules.&lt;br /&gt;
&lt;br /&gt;
== Domain ==&lt;br /&gt;
&lt;br /&gt;
There are only two distinct values: true and false, denoted by T and F respectively.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
The rules for constructing expressions in predicate logic follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;negation&#039;&#039;&#039; is denoted by the following symbol: &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Connective ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;connective&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\and,\;\or&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Quantifier ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;quantifier&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\forall,\;\exists&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Variable ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;variable&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with a lowercase letter. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;thisIsAnotherVariable&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Quantification ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;quantification&#039;&#039;&#039; is denoted by a quantifier followed by a variable. It may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,\forall\,x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Function ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;function&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with an uppercase letter; then, a list of elements enclosed in parentheses, separated by commas. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;Married(a, b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Predicate ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;predicate&#039;&#039;&#039; is denoted by a function which may be preceded by a negation. Then, it may be preceded by a quantification. If so, a colon follows the quantification, and the rest is enclosed in parentheses. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,Married(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall\,a : (\neg\,Q(a, b, c))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;clause&#039;&#039;&#039; is either of the following: a predicate; or a clause, followed by a connective, followed by a clause. In the second case, it must be enclosed in parentheses. A clause may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a : (\neg\,P(a) \and \forall\,b : (Q(a, b)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Semantics ==&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of expressions follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A negation in predicate logic is treated in the same way as in propositional logic.&lt;br /&gt;
&lt;br /&gt;
=== Variable ===&lt;br /&gt;
&lt;br /&gt;
A variable represents a unit on which a clause acts. It can represent any idea.&lt;br /&gt;
&lt;br /&gt;
=== Quantification ===&lt;br /&gt;
&lt;br /&gt;
A quantification represents a statement about a variable. &amp;lt;math&amp;gt;\forall\,a&amp;lt;/math&amp;gt; means &amp;quot;for all &#039;&#039;a&#039;&#039;&amp;quot; and &amp;lt;math&amp;gt;\exists\,a&amp;lt;/math&amp;gt; means &amp;quot;for at least one &#039;&#039;a&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Function ===&lt;br /&gt;
&lt;br /&gt;
A function also represents a statement about one or more variables. The value of a function is one of T and F, but not both or neither. The conditions under which the value is T or F are defined arbitrarily. For instance, a function&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;OwesMoney(a, b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
means &amp;quot;&#039;&#039;a&#039;&#039; owes money to &#039;&#039;b&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Predicate ===&lt;br /&gt;
&lt;br /&gt;
A predicate is simply the extension of a function. The value of a predicate is also one of T and F. A quantification acts on the predicate that immediately follows the colon. The meaning, therefore, can be interpreted literally. For instance, the predicate&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a : (OwesMoney(a, George))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
means &amp;quot;for at least one &#039;&#039;a&#039;&#039;, &#039;&#039;a&#039;&#039; owes money to &#039;&#039;George&#039;&#039;&amp;quot;, or &amp;quot;at least one person owes money to &#039;&#039;George&#039;&#039;&amp;quot;. A predicate may contain more than one quantification. For instance, the predicate&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,\forall\,a : (\exists\,b : (OwesMoney(a, b))))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
means &amp;quot;it is not the case that for all &#039;&#039;a&#039;&#039;: for at least one &#039;&#039;b&#039;&#039;, &#039;&#039;a&#039;&#039; owes money to &#039;&#039;b&#039;&#039;&amp;quot;. In plain English: &amp;quot;not everyone owes someone money&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
Each part of a clause corresponds to an equivalent part in propositional logic: a predicate to an atom, and a connective to itself. Therefore, this rule can be deduced from propositional logic.&lt;br /&gt;
&lt;br /&gt;
Thus conclude the rules of predicate logic.&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=20101</id>
		<title>Predicate Logic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=20101"/>
		<updated>2010-03-04T19:49:11Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Predicate logic, also called first-order logic, is a formal system that extends propositional logic. The primary application of predicate logic is also to model statements in natural language; however, it is more expressive than propositional logic, given its larger set of rules.&lt;br /&gt;
&lt;br /&gt;
== Domain ==&lt;br /&gt;
&lt;br /&gt;
There are only two distinct values: true and false, denoted by T and F respectively.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
The rules for constructing expressions in predicate logic follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;negation&#039;&#039;&#039; is denoted by the following symbol: &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Connective ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;connective&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\and,\;\or&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Quantifier ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;quantifier&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\forall,\;\exists&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Variable ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;variable&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with a lowercase letter. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;thisIsAnotherVariable&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Quantification ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;quantification&#039;&#039;&#039; is denoted by a quantifier followed by a variable. It may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,\forall\,x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Function ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;function&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with an uppercase letter; then, a list of elements enclosed in parentheses, separated by commas. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;Married(a, b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Predicate ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;predicate&#039;&#039;&#039; is denoted by a function which may be preceded by a negation. Then, it may be preceded by a quantification. If so, a colon follows the quantification, and the rest is enclosed in parentheses. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,Married(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall\,a : (\neg\,Q(a, b, c))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;clause&#039;&#039;&#039; is either of the following: a predicate; or a clause, followed by a connective, followed by a clause. In the second case, it must be enclosed in parentheses. A clause may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a : (\neg\,P(a) \and \forall\,b : (Q(a, b)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Semantics ==&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of expressions follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A negation in predicate logic is treated in the same way as in propositional logic.&lt;br /&gt;
&lt;br /&gt;
=== Variable ===&lt;br /&gt;
&lt;br /&gt;
A variable represents a unit on which a clause acts. It can represent any idea.&lt;br /&gt;
&lt;br /&gt;
=== Quantification ===&lt;br /&gt;
&lt;br /&gt;
A quantification represents a statement about a variable. &amp;lt;math&amp;gt;\forall\,a&amp;lt;/math&amp;gt; means &amp;quot;for all &#039;&#039;a&#039;&#039;&amp;quot; and &amp;lt;math&amp;gt;\exists\,a&amp;lt;/math&amp;gt; means &amp;quot;for at least one &#039;&#039;a&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Function ===&lt;br /&gt;
&lt;br /&gt;
A function also represents a statement about one or more variables. The value of a function is one of T and F, but not both or neither. The conditions under which the value is T or F are defined arbitrarily. For instance, a function&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;OwesMoney(a, b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
means &amp;quot;&#039;&#039;a&#039;&#039; owes money to &#039;&#039;b&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Predicate ===&lt;br /&gt;
&lt;br /&gt;
A predicate is simply the extension of a function. The value of a predicate is also one of T and F. A quantification acts on the predicate that immediately follows the colon. The meaning, therefore, can be interpreted literally. For instance, the predicate&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a : (OwesMoney(a, George))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
means &amp;quot;for at least one &#039;&#039;a&#039;&#039;, &#039;&#039;a&#039;&#039; owes money to &#039;&#039;George&#039;&#039;&amp;quot;. A predicate may contain more than one quantification. For instance, the predicate&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,\forall\,a : (\exists\,b : (OwesMoney(a, b))))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
means &amp;quot;it is not the case that for all &#039;&#039;a&#039;&#039;: for at least one &#039;&#039;b&#039;&#039;, &#039;&#039;a&#039;&#039; owes money to &#039;&#039;b&#039;&#039;&amp;quot;. In plain English: &amp;quot;not everyone owes someone money&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
Each part of a clause corresponds to an equivalent part in propositional logic: a predicate to an atom, and a connective to itself. Therefore, this rule can be deduced from propositional logic.&lt;br /&gt;
&lt;br /&gt;
Thus conclude the rules of predicate logic.&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=20100</id>
		<title>Predicate Logic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=20100"/>
		<updated>2010-03-04T19:47:56Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* Predicate */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Predicate logic, also called first-order logic, is a formal system that extends propositional logic. The primary application of predicate logic is also to model statements in natural language; however, it is more expressive than propositional logic, given its larger set of rules.&lt;br /&gt;
&lt;br /&gt;
== Domain ==&lt;br /&gt;
&lt;br /&gt;
There are only two distinct values: true and false, denoted by T and F respectively.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
The rules for constructing expressions in predicate logic follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;negation&#039;&#039;&#039; is denoted by the following symbol: &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Connective ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;connective&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\and,\;\or&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Quantifier ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;quantifier&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\forall,\;\exists&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Variable ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;variable&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with a lowercase letter. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;thisIsAnotherVariable&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Quantification ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;quantification&#039;&#039;&#039; is denoted by a quantifier followed by a variable. It may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,\forall\,x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Function ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;function&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with an uppercase letter; then, a list of elements enclosed in parentheses, separated by commas. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;Married(a, b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Predicate ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;predicate&#039;&#039;&#039; is denoted by a function which may be preceded by a negation. Then, it may be preceded by a quantification. If so, a colon follows the quantification, and the rest is enclosed in parentheses. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,Married(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall\,a : \neg\,(Q(a, b, c))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;clause&#039;&#039;&#039; is either of the following: a predicate; or a clause, followed by a connective, followed by a clause. In the second case, it must be enclosed in parentheses. A clause may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a : (\neg\,P(a) \and \forall\,b : Q(a, b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Semantics ==&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of expressions follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A negation in predicate logic is treated in the same way as in propositional logic.&lt;br /&gt;
&lt;br /&gt;
=== Variable ===&lt;br /&gt;
&lt;br /&gt;
A variable represents a unit on which a clause acts. It can represent any idea.&lt;br /&gt;
&lt;br /&gt;
=== Quantification ===&lt;br /&gt;
&lt;br /&gt;
A quantification represents a statement about a variable. &amp;lt;math&amp;gt;\forall\,a&amp;lt;/math&amp;gt; means &amp;quot;for all &#039;&#039;a&#039;&#039;&amp;quot; and &amp;lt;math&amp;gt;\exists\,a&amp;lt;/math&amp;gt; means &amp;quot;for at least one &#039;&#039;a&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Function ===&lt;br /&gt;
&lt;br /&gt;
A function also represents a statement about one or more variables. The value of a function is one of T and F, but not both or neither. The conditions under which the value is T or F are defined arbitrarily. For instance, a function&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;OwesMoney(a, b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
means &amp;quot;&#039;&#039;a&#039;&#039; owes money to &#039;&#039;b&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Predicate ===&lt;br /&gt;
&lt;br /&gt;
A predicate is simply the extension of a function. The value of a predicate is also one of T and F. A quantification acts on the predicate that immediately follows the colon. The meaning, therefore, can be interpreted literally. For instance, the predicate&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a : OwesMoney(a, George)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
means &amp;quot;for at least one &#039;&#039;a&#039;&#039;, &#039;&#039;a&#039;&#039; owes money to &#039;&#039;George&#039;&#039;&amp;quot;. A predicate may contain more than one quantification. For instance, the predicate&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall\,a : (\exists\,b : OwesMoney(a, b)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
means &amp;quot;for all &#039;&#039;a&#039;&#039;, the following is true: for at least one &#039;&#039;b&#039;&#039;, &#039;&#039;a&#039;&#039; owes money to &#039;&#039;b&#039;&#039;&amp;quot;. In plain English: &amp;quot;everyone owes someone money&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
Each part of a clause corresponds to an equivalent part in propositional logic: a predicate to an atom, and a connective to itself. Therefore, this rule can be deduced from propositional logic.&lt;br /&gt;
&lt;br /&gt;
Thus conclude the rules of predicate logic.&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=20099</id>
		<title>Predicate Logic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=20099"/>
		<updated>2010-03-04T19:45:56Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* Semantics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Predicate logic, also called first-order logic, is a formal system that extends propositional logic. The primary application of predicate logic is also to model statements in natural language; however, it is more expressive than propositional logic, given its larger set of rules.&lt;br /&gt;
&lt;br /&gt;
== Domain ==&lt;br /&gt;
&lt;br /&gt;
There are only two distinct values: true and false, denoted by T and F respectively.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
The rules for constructing expressions in predicate logic follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;negation&#039;&#039;&#039; is denoted by the following symbol: &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Connective ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;connective&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\and,\;\or&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Quantifier ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;quantifier&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\forall,\;\exists&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Variable ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;variable&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with a lowercase letter. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;thisIsAnotherVariable&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Quantification ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;quantification&#039;&#039;&#039; is denoted by a quantifier followed by a variable. It may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,\forall\,x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Function ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;function&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with an uppercase letter; then, a list of elements enclosed in parentheses, separated by commas. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;Married(a, b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Predicate ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;predicate&#039;&#039;&#039; is denoted by a function which may be preceded by a negation. Then, it may be preceded by a quantification. If so, a colon follows the quantification. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,Married(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall\,a : \neg\,Q(a, b, c)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;clause&#039;&#039;&#039; is either of the following: a predicate; or a clause, followed by a connective, followed by a clause. In the second case, it must be enclosed in parentheses. A clause may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a : (\neg\,P(a) \and \forall\,b : Q(a, b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Semantics ==&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of expressions follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A negation in predicate logic is treated in the same way as in propositional logic.&lt;br /&gt;
&lt;br /&gt;
=== Variable ===&lt;br /&gt;
&lt;br /&gt;
A variable represents a unit on which a clause acts. It can represent any idea.&lt;br /&gt;
&lt;br /&gt;
=== Quantification ===&lt;br /&gt;
&lt;br /&gt;
A quantification represents a statement about a variable. &amp;lt;math&amp;gt;\forall\,a&amp;lt;/math&amp;gt; means &amp;quot;for all &#039;&#039;a&#039;&#039;&amp;quot; and &amp;lt;math&amp;gt;\exists\,a&amp;lt;/math&amp;gt; means &amp;quot;for at least one &#039;&#039;a&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Function ===&lt;br /&gt;
&lt;br /&gt;
A function also represents a statement about one or more variables. The value of a function is one of T and F, but not both or neither. The conditions under which the value is T or F are defined arbitrarily. For instance, a function&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;OwesMoney(a, b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
means &amp;quot;&#039;&#039;a&#039;&#039; owes money to &#039;&#039;b&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Predicate ===&lt;br /&gt;
&lt;br /&gt;
A predicate is simply the extension of a function. The value of a predicate is also one of T and F. A quantification acts on the predicate that immediately follows the colon. The meaning, therefore, can be interpreted literally. For instance, the predicate&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a : OwesMoney(a, George)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
means &amp;quot;for at least one &#039;&#039;a&#039;&#039;, &#039;&#039;a&#039;&#039; owes money to &#039;&#039;George&#039;&#039;&amp;quot;. A predicate may contain more than one quantification. For instance, the predicate&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall\,a : (\exists\,b : OwesMoney(a, b)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
means &amp;quot;for all &#039;&#039;a&#039;&#039;, the following is true: for at least one &#039;&#039;b&#039;&#039;, &#039;&#039;a&#039;&#039; owes money to &#039;&#039;b&#039;&#039;&amp;quot;. In plain English: &amp;quot;everyone owes someone money&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
Each part of a clause corresponds to an equivalent part in propositional logic: a predicate to an atom, and a connective to itself. Therefore, this rule can be deduced from propositional logic.&lt;br /&gt;
&lt;br /&gt;
Thus conclude the rules of predicate logic.&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=20098</id>
		<title>Predicate Logic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=20098"/>
		<updated>2010-03-04T19:29:33Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Predicate logic, also called first-order logic, is a formal system that extends propositional logic. The primary application of predicate logic is also to model statements in natural language; however, it is more expressive than propositional logic, given its larger set of rules.&lt;br /&gt;
&lt;br /&gt;
== Domain ==&lt;br /&gt;
&lt;br /&gt;
There are only two distinct values: true and false, denoted by T and F respectively.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
The rules for constructing expressions in predicate logic follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;negation&#039;&#039;&#039; is denoted by the following symbol: &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Connective ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;connective&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\and,\;\or&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Quantifier ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;quantifier&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\forall,\;\exists&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Variable ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;variable&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with a lowercase letter. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;thisIsAnotherVariable&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Quantification ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;quantification&#039;&#039;&#039; is denoted by a quantifier followed by a variable. It may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,\forall\,x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Function ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;function&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with an uppercase letter; then, a list of elements enclosed in parentheses, separated by commas. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;Married(a, b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Predicate ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;predicate&#039;&#039;&#039; is denoted by a function which may be preceded by a negation. Then, it may be preceded by a quantification. If so, a colon follows the quantification. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,Married(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\forall\,a : \neg\,Q(a, b, c)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;clause&#039;&#039;&#039; is either of the following: a predicate; or a clause, followed by a connective, followed by a clause. In the second case, it must be enclosed in parentheses. A clause may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a : (\neg\,P(a) \and \forall\,b : Q(a, b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Semantics ==&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of expressions follow.&lt;br /&gt;
&lt;br /&gt;
=== Variable ===&lt;br /&gt;
&lt;br /&gt;
A variable represents a unit on which a clause acts. It can represent any idea.&lt;br /&gt;
&lt;br /&gt;
=== Quantification ===&lt;br /&gt;
&lt;br /&gt;
A quantification represents a statement about a variable. &amp;lt;math&amp;gt;\forall\,a&amp;lt;/math&amp;gt; means &amp;quot;for all &#039;&#039;a&#039;&#039;&amp;quot; and &amp;lt;math&amp;gt;\exists\,a&amp;lt;/math&amp;gt; means &amp;quot;for at least one &#039;&#039;a&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Function ===&lt;br /&gt;
&lt;br /&gt;
A function also represents a statement about a variable. However, it can be arbitrarily defined. For instance, a function &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; might be defined as &amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Predicate ===&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
Thus conclude the rules of predicate logic.&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=20097</id>
		<title>Predicate Logic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=20097"/>
		<updated>2010-03-04T19:22:56Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* Semantics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Predicate logic, also called first-order logic, is a formal system that extends propositional logic. The primary application of predicate logic is also to model statements in natural language; however, it is more expressive than propositional logic, given its larger set of rules.&lt;br /&gt;
&lt;br /&gt;
== Domain ==&lt;br /&gt;
&lt;br /&gt;
There are only two distinct values: true and false, denoted by T and F respectively.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
The rules for constructing expressions in predicate logic follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;negation&#039;&#039;&#039; is denoted by the following symbol: &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Connective ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;connective&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\and,\;\or&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Quantifier ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;quantifier&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\forall,\;\exists&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Element ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;element&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with a lowercase letter. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;e&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;thisIsAnotherElement&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Quantification ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;quantification&#039;&#039;&#039; is denoted by a quantifier followed by a variable. It may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,\exists\,x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Function ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;function&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with an uppercase letter. It may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;LifeIsGood&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,LifeIsGood&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Predicate ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;predicate&#039;&#039;&#039; is denoted by a function, followed by a list of elements separated by commas; this list is enclosed in parentheses. It may be preceded by a quantification. If so, a colon follows the quantification. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a : \neg\,P(a, b, c)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;clause&#039;&#039;&#039; is either of the following: a predicate; or a clause, followed by a connective, followed by a clause. In the second case, it must be enclosed in parentheses. A clause may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a : (\neg\,P(a) \and \forall\,b : Q(a, b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Semantics ==&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of expressions follow.&lt;br /&gt;
&lt;br /&gt;
=== Variable ===&lt;br /&gt;
&lt;br /&gt;
A variable represents a unit on which a clause acts. It can represent any idea.&lt;br /&gt;
&lt;br /&gt;
=== Quantification ===&lt;br /&gt;
&lt;br /&gt;
A quantification represents a statement about a variable. &amp;lt;math&amp;gt;\forall\,a&amp;lt;/math&amp;gt; means &amp;quot;for all &#039;&#039;a&#039;&#039;&amp;quot; and &amp;lt;math&amp;gt;\exists\,a&amp;lt;/math&amp;gt; means &amp;quot;for at least one &#039;&#039;a&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Function ===&lt;br /&gt;
&lt;br /&gt;
A function also represents a statement about a variable. However, it can be arbitrarily defined. For instance, a function &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; might be defined as &amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Predicate ===&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
Thus conclude the rules of predicate logic.&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=20096</id>
		<title>Predicate Logic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=20096"/>
		<updated>2010-03-04T19:15:37Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Predicate logic, also called first-order logic, is a formal system that extends propositional logic. The primary application of predicate logic is also to model statements in natural language; however, it is more expressive than propositional logic, given its larger set of rules.&lt;br /&gt;
&lt;br /&gt;
== Domain ==&lt;br /&gt;
&lt;br /&gt;
There are only two distinct values: true and false, denoted by T and F respectively.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
The rules for constructing expressions in predicate logic follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;negation&#039;&#039;&#039; is denoted by the following symbol: &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Connective ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;connective&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\and,\;\or&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Quantifier ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;quantifier&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\forall,\;\exists&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Element ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;element&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with a lowercase letter. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;e&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;thisIsAnotherElement&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Quantification ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;quantification&#039;&#039;&#039; is denoted by a quantifier followed by a variable. It may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,\exists\,x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Function ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;function&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with an uppercase letter. It may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;LifeIsGood&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,LifeIsGood&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Predicate ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;predicate&#039;&#039;&#039; is denoted by a function, followed by a list of elements separated by commas; this list is enclosed in parentheses. It may be preceded by a quantification. If so, a colon follows the quantification. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a : \neg\,P(a, b, c)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;clause&#039;&#039;&#039; is either of the following: a predicate; or a clause, followed by a connective, followed by a clause. In the second case, it must be enclosed in parentheses. A clause may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\exists\,a : (\neg\,P(a) \and \forall\,b : Q(a, b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Semantics ==&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of expressions follow.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;To\;\;be\;\;continued...&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Thus conclude the rules of predicate logic.&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=19661</id>
		<title>Predicate Logic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=19661"/>
		<updated>2010-02-16T07:37:55Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Predicate logic, also called first-order logic, is a formal system that extends propositional logic. The primary application of predicate logic is also to model statements in natural language; however, it is more expressive than propositional logic, given its larger set of rules.&lt;br /&gt;
&lt;br /&gt;
== Domain ==&lt;br /&gt;
&lt;br /&gt;
There are only two distinct values: true and false, denoted by T and F respectively.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
The rules for constructing expressions in predicate logic follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;negation&#039;&#039;&#039; is denoted by the following symbol: &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Connective ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;connective&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\and,\;\or&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Quantifier ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;quantifier&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\forall,\;\exists&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Element ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;element&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with a lowercase letter. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;e&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;thisIsAnotherElement&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Function ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;function&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with an uppercase letter. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;ASplendidPredicate&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Predicate ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;predicate&#039;&#039;&#039; is denoted by a function, followed by a list of elements separated by commas; this list is enclosed in parentheses. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a, b, c)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;clause&#039;&#039;&#039; is either of the following: a predicate; or a clause, followed by a connective, followed by a clause. In the second case, it must be enclosed in parentheses. A clause may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;(\neg\,P(a) \and Q(a, b))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,(P(a) \or (Q(b, c) \and R(a)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;To\;\;be\;\;continued...&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Semantics ==&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of expressions follow.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;To\;\;be\;\;continued...&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Thus conclude the rules of predicate logic.&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=19660</id>
		<title>Predicate Logic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Predicate_Logic&amp;diff=19660"/>
		<updated>2010-02-16T07:37:31Z</updated>

		<summary type="html">&lt;p&gt;Jerome: Created page with &amp;#039;__TOC__  Predicate logic, also called first-order logic, is a formal system that extends propositional logic. The primary application of predicate logic is also to model statemen…&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Predicate logic, also called first-order logic, is a formal system that extends propositional logic. The primary application of predicate logic is also to model statements in natural language; however, it is more expressive than propositional logic, given its larger set of rules.&lt;br /&gt;
&lt;br /&gt;
== Domain ==&lt;br /&gt;
&lt;br /&gt;
There are only two distinct values: true and false, denoted by T and F respectively.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
The rules for constructing expressions in predicate logic follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;negation&#039;&#039;&#039; is denoted by the following symbol: &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Connective ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;connective&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\and,\;\or&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Element ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;element&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with a lowercase letter. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;e&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;thisIsAnotherElement&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Function ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;function&#039;&#039;&#039; is denoted by a string of letters without spaces, starting with an uppercase letter. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;ASplendidPredicate&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Quantifier ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;quantifier&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\forall,\;\exists&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Predicate ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;predicate&#039;&#039;&#039; is denoted by a function, followed by a list of elements separated by commas; this list is enclosed in parentheses. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a, b, c)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;clause&#039;&#039;&#039; is either of the following: a predicate; or a clause, followed by a connective, followed by a clause. In the second case, it must be enclosed in parentheses. A clause may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;P(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;(\neg\,P(a) \and Q(a, b))&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,(P(a) \or (Q(b, c) \and R(a)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;To\;\;be\;\;continued...&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Semantics ==&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of expressions follow.&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;To\;\;be\;\;continued...&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Thus conclude the rules of predicate logic.&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Propositional_Logic&amp;diff=19659</id>
		<title>Propositional Logic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Propositional_Logic&amp;diff=19659"/>
		<updated>2010-02-16T07:32:19Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Propositional logic, also called zeroth-order logic, is a formal system. Given the properties of a formal system, this means that the rules are entirely regular. The primary application of propositional logic is to model statements in natural language.&lt;br /&gt;
&lt;br /&gt;
== Domain ==&lt;br /&gt;
&lt;br /&gt;
There are only two distinct values: true and false, denoted by T and F respectively.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
The rules for constructing expressions in propositional logic follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;negation&#039;&#039;&#039; is denoted by the following symbol: &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Connective ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;connective&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\and,\;\or&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Atom ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;atom&#039;&#039;&#039; is denoted by a string of letters without spaces. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;something&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;thisIsAnAtom&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;clause&#039;&#039;&#039; is either of the following: an atom; or a clause, followed by a connective, followed by a clause. In the second case, it must be enclosed in parentheses. A clause may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;(a \and b)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,(a \and b)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;(a \and \neg\,(b \or \neg\,c))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Semantics ==&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of expressions follow.&lt;br /&gt;
&lt;br /&gt;
=== Atom ===&lt;br /&gt;
&lt;br /&gt;
An atom can have one of the values T and F, but not both or neither.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
If an atom &#039;&#039;a&#039;&#039; is preceded by a negation, the value of the resulting expression is represented by this table:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center&amp;quot; border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;50&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;50&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;\neg\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| T || F&lt;br /&gt;
|-&lt;br /&gt;
| F || T&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of clauses follow, where &#039;&#039;a&#039;&#039; and &#039;&#039;b&#039;&#039; are some given clauses:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center&amp;quot; border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;50&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;50&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;100&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;a \and b&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;100&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;a \or b&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| T || T || T || T&lt;br /&gt;
|-&lt;br /&gt;
| T || F || F || T&lt;br /&gt;
|-&lt;br /&gt;
| F || T || F || T&lt;br /&gt;
|-&lt;br /&gt;
| F || F || F || F&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Thus conclude the rules of propositional logic.&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Propositional_Logic&amp;diff=19658</id>
		<title>Propositional Logic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Propositional_Logic&amp;diff=19658"/>
		<updated>2010-02-16T07:13:13Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Propositional logic, also called zeroth-order logic, is a formal system. Given the properties of a formal system, this means that the rules are entirely regular. The primary application of propositional logic is to model statements in natural language.&lt;br /&gt;
&lt;br /&gt;
== Domain ==&lt;br /&gt;
&lt;br /&gt;
There are only two distinct values: true and false, denoted by T and F respectively.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
The rules for constructing expressions in propositional logic follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;negation&#039;&#039;&#039; is denoted by the following symbol: &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Connective ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;connective&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\and,\;\or&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Atom ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;atom&#039;&#039;&#039; is denoted by a string of letters without spaces. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;something&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;thisIsAnAtom&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;clause&#039;&#039;&#039; is either of the following: an atom, or a clause, followed by a connective, followed by a clause. In the second case, it must be enclosed in parentheses. A clause may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;(a \and b)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,(a \and b)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;(a \and \neg\,(b \or \neg\,c))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Semantics ==&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of expressions follow.&lt;br /&gt;
&lt;br /&gt;
=== Atom ===&lt;br /&gt;
&lt;br /&gt;
An atom can have one of the values T and F, but not both or neither.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
If an atom &#039;&#039;a&#039;&#039; is preceded by a negation, the value of the resulting expression is represented by this table:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center&amp;quot; border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;50&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;50&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;\neg\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| T || F&lt;br /&gt;
|-&lt;br /&gt;
| F || T&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of clauses follow, where &#039;&#039;a&#039;&#039; and &#039;&#039;b&#039;&#039; are some given clauses:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center&amp;quot; border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;50&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;50&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;100&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;a \and b&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;100&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;a \or b&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| T || T || T || T&lt;br /&gt;
|-&lt;br /&gt;
| T || F || F || T&lt;br /&gt;
|-&lt;br /&gt;
| F || T || F || T&lt;br /&gt;
|-&lt;br /&gt;
| F || F || F || F&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Thus conclude the rules of propositional logic.&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Propositional_Logic&amp;diff=19657</id>
		<title>Propositional Logic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Propositional_Logic&amp;diff=19657"/>
		<updated>2010-02-16T06:49:25Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* Clause */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Propositional logic, also called zeroth-order logic, is a formal system. Given the properties of a formal system, this means that the rules are entirely regular. The primary application of propositional logic is to model statements in natural language.&lt;br /&gt;
&lt;br /&gt;
== Domain ==&lt;br /&gt;
&lt;br /&gt;
There are only two distinct values: true and false, denoted by T and F respectively.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
The rules for constructing expressions in propositional logic follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;negation&#039;&#039;&#039; is denoted by the following symbol: &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Connective ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;connective&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\and,\;\or&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Atom ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;atom&#039;&#039;&#039; is denoted by a string of letters without spaces. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;something&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;thisIsAnAtom&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;clause&#039;&#039;&#039; is either of the following: an atom, or a clause, followed by a connective, followed by a clause. In the second case, it must be enclosed in parentheses. A clause may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;(a \and b)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,(a \and b)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;(a \and \neg\,(b \or \neg\,c))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Semantics ==&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of expressions follow.&lt;br /&gt;
&lt;br /&gt;
=== Atom ===&lt;br /&gt;
&lt;br /&gt;
An atom can have one of the values T or F, but not both or neither.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
If an atom &#039;&#039;&#039;a&#039;&#039;&#039; is preceded by a negation, the value of the resulting expression is represented by this table:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center&amp;quot; border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;50&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;50&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;\neg\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| T || F&lt;br /&gt;
|-&lt;br /&gt;
| F || T&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of clauses follow, where &#039;&#039;&#039;a&#039;&#039;&#039; and &#039;&#039;&#039;b&#039;&#039;&#039; are some given clauses:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center&amp;quot; border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;50&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;50&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;100&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;a \and b&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;100&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;a \or b&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| T || T || T || T&lt;br /&gt;
|-&lt;br /&gt;
| T || F || F || T&lt;br /&gt;
|-&lt;br /&gt;
| F || T || F || T&lt;br /&gt;
|-&lt;br /&gt;
| F || F || F || F&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Propositional_Logic&amp;diff=19656</id>
		<title>Propositional Logic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Propositional_Logic&amp;diff=19656"/>
		<updated>2010-02-16T06:49:05Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Propositional logic, also called zeroth-order logic, is a formal system. Given the properties of a formal system, this means that the rules are entirely regular. The primary application of propositional logic is to model statements in natural language.&lt;br /&gt;
&lt;br /&gt;
== Domain ==&lt;br /&gt;
&lt;br /&gt;
There are only two distinct values: true and false, denoted by T and F respectively.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
The rules for constructing expressions in propositional logic follow.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;negation&#039;&#039;&#039; is denoted by the following symbol: &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Connective ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;connective&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\and,\;\or&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Atom ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;atom&#039;&#039;&#039; is denoted by a string of letters without spaces. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;something&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;thisIsAnAtom&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;clause&#039;&#039;&#039; is either of the following: an atom, or a clause, followed by a connective, followed by a clause. In the second case, it must be enclosed in parentheses. A clause may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;(a \and b)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,(a \and b)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;(a \and \neg\,(b \or \neg\,c))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Semantics ==&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of expressions follow.&lt;br /&gt;
&lt;br /&gt;
=== Atom ===&lt;br /&gt;
&lt;br /&gt;
An atom can have one of the values T or F, but not both or neither.&lt;br /&gt;
&lt;br /&gt;
=== Negation ===&lt;br /&gt;
&lt;br /&gt;
If an atom &#039;&#039;&#039;a&#039;&#039;&#039; is preceded by a negation, the value of the resulting expression is represented by this table:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center&amp;quot; border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;50&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;50&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;\neg\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| T || F&lt;br /&gt;
|-&lt;br /&gt;
| F || T&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Clause ===&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of clauses follow, where &#039;&#039;&#039;a&#039;&#039;&#039; and &#039;&#039;&#039;b&#039;&#039;&#039; are some given clauses.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center&amp;quot; border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;50&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;50&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;b&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;100&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;a \and b&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;100&amp;quot; height=&amp;quot;25&amp;quot; | &amp;lt;math&amp;gt;a \or b&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| T || T || T || T&lt;br /&gt;
|-&lt;br /&gt;
| T || F || F || T&lt;br /&gt;
|-&lt;br /&gt;
| F || T || F || T&lt;br /&gt;
|-&lt;br /&gt;
| F || F || F || F&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Propositional_Logic&amp;diff=19655</id>
		<title>Propositional Logic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Propositional_Logic&amp;diff=19655"/>
		<updated>2010-02-16T06:38:26Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Propositional logic, also called zeroth-order logic, is a formal system. It can be used to model the behavior of natural language statements.&lt;br /&gt;
&lt;br /&gt;
=== Domain ===&lt;br /&gt;
&lt;br /&gt;
There are only two distinct values: true and false, denoted by T and F respectively.&lt;br /&gt;
&lt;br /&gt;
=== Syntax ===&lt;br /&gt;
&lt;br /&gt;
The rules for constructing expressions in propositional logic follow.&lt;br /&gt;
&lt;br /&gt;
==== Negation ====&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;negation&#039;&#039;&#039; is denoted by the following symbol: &amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== Connective ====&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;connective&#039;&#039;&#039; is one of the following symbols: &amp;lt;math&amp;gt;\and,\;\or&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== Atom ====&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;atom&#039;&#039;&#039; is denoted by a string of letters without spaces. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;something&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;thisIsAnAtom&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Clause ====&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;clause&#039;&#039;&#039; is either of the following: an atom, or a clause, followed by a connective, followed by a clause. In the second case, it must be enclosed in parentheses. A clause may be preceded by a negation. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;(a \and b)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg\,(a \and b)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;(a \and \neg\,(b \or \neg\,c))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Semantics ===&lt;br /&gt;
&lt;br /&gt;
The rules for determining the value of expressions follow.&lt;br /&gt;
&lt;br /&gt;
==== Atom ====&lt;br /&gt;
&lt;br /&gt;
An atom can have one of the values T or F, but not both or neither.&lt;br /&gt;
&lt;br /&gt;
==== Negation ====&lt;br /&gt;
&lt;br /&gt;
If an atom is preceded by a negation, the value of the resulting expression is represented by this table:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;text-align:center&amp;quot; border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;20%&amp;quot; height=&amp;quot;20&amp;quot; | &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&lt;br /&gt;
| width=&amp;quot;20%&amp;quot; height=&amp;quot;20&amp;quot; | &amp;lt;math&amp;gt;\neg\,a&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| T || F&lt;br /&gt;
|-&lt;br /&gt;
| F || T&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Propositional_Logic&amp;diff=19654</id>
		<title>Propositional Logic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Propositional_Logic&amp;diff=19654"/>
		<updated>2010-02-16T06:02:58Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Propositional logic, also called zeroth-order logic, is a formal system. It can be used to model the behavior of natural language statements.&lt;br /&gt;
&lt;br /&gt;
=== Domain ===&lt;br /&gt;
&lt;br /&gt;
There are only two distinct values: true (T) and false (F).&lt;br /&gt;
&lt;br /&gt;
=== Syntax ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;atom&#039;&#039;&#039; is denoted by a string of characters without spaces. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;something&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;this\_is\_an\_atom&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;logical connective&#039;&#039;&#039; is one of the following symbols:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\and,\;\or&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;clause&#039;&#039;&#039; is either of the following: an atom, or a clause followed by a logical connective followed by a clause. For instance:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;x \and y&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;negation operator&#039;&#039;&#039; is the following symbol:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\neg&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Semantics ===&lt;br /&gt;
&lt;br /&gt;
...&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Propositional_Logic&amp;diff=19653</id>
		<title>Propositional Logic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Propositional_Logic&amp;diff=19653"/>
		<updated>2010-02-15T22:02:08Z</updated>

		<summary type="html">&lt;p&gt;Jerome: Created page with &amp;#039;__TOC__  Blah  === A  ===  ==== A1 ====  === B === ==== B1 ====  === C === ==== C1 ====&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Blah&lt;br /&gt;
&lt;br /&gt;
=== A  ===&lt;br /&gt;
&lt;br /&gt;
==== A1 ====&lt;br /&gt;
&lt;br /&gt;
=== B ===&lt;br /&gt;
==== B1 ====&lt;br /&gt;
&lt;br /&gt;
=== C ===&lt;br /&gt;
==== C1 ====&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Modular_Arithmetic&amp;diff=18450</id>
		<title>Modular Arithmetic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Modular_Arithmetic&amp;diff=18450"/>
		<updated>2010-01-26T21:09:46Z</updated>

		<summary type="html">&lt;p&gt;Jerome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Modular arithmetic is a system of arithmetic, introduced to the world by Carl Friedrich Gauss. It is a beautiful field of mathematics, but in my opinion suffers from one fatal flaw: its notation. [[http://www.ugrad.cs.ubc.ca/~p1n6/#1 Here is a rant.]] Therefore, I have taken the liberty of changing the current mainstream notation to one more suitable. I leave it to the reader to judge the changes I have made.&lt;br /&gt;
&lt;br /&gt;
In this text, I will first provide some axioms, which carry over directly. Then, I will provide some basic theorems, and prove these using the new notation, so as to demonstrate its capabilities.&lt;br /&gt;
&lt;br /&gt;
For the duration of this text, variables are denoted by italicized lowercase letters, and can represent any integer, unless restrictions are specified. &#039;&#039;n&#039;&#039;, however, is always positive.&lt;br /&gt;
&lt;br /&gt;
=== Axioms  ===&lt;br /&gt;
&lt;br /&gt;
==== Remainders  ====&lt;br /&gt;
&lt;br /&gt;
Define&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_n(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to be the remainder when &#039;&#039;a&#039;&#039; is divided by &#039;&#039;n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Define the axiom &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a=kn+R_n(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some &#039;&#039;k&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==== Congruence  ====&lt;br /&gt;
&lt;br /&gt;
Define the relation &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b){\iff}R_n(a)=R_n(b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is equivalent to &#039;&#039;a&#039;&#039; ≡ &#039;&#039;b&#039;&#039; (mod &#039;&#039;n&#039;&#039;). &lt;br /&gt;
&lt;br /&gt;
Define the axioms &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;R_n(a))&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;a)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a\cdot1,\;a)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(kn+a,\;a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the axioms &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
C_n(a,\;b) &amp;amp; \iff &amp;amp; C_n(b,\;a) \\&lt;br /&gt;
C_n(a,\;b),\;C_n(b,\;c) &amp;amp; \iff &amp;amp; C_n(a,\;c)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the axiom &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a_1,\;a_2),\;C_n(a_2,\;a_3)\;\cdots\;{C_n(a_{i-1},\;a_i})\iff{C_n(a_1,\;a_2,\;a_3\;\cdots\;a_{i-1},\;a_i)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;i&#039;&#039; is any positive integer.&lt;br /&gt;
&lt;br /&gt;
=== Theorems  ===&lt;br /&gt;
&lt;br /&gt;
==== Additive Property  ====&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a+b,\;R_n(a)+R_n(b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cn + R_n(a) \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dn + R_n(b)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n({a+b},\;{cn+R_n(a)+dn+R_n(b)},\;{n(c+d)+R_n(a)+R_n(b)},\;{R_n(a)+R_n(b)})~~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(a+c,\;b+c)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Multiplicative Property  ====&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(ab,\;R_n(a)R_n(b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cn + R_n(a) \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dn + R_n(b)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(ab,\;{cn\,dn+cn\,R_n(b)+R_n(a)\,dn+R_n(a)\,R_n(b)},\;{n(c\,d{n}+c\,R_n(b)+R_n(a)\,d)+R_n(a)\,R_n(b)},\;R_n(a)\,R_n(b))~~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(ac,\;bc)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exponential Property  ====&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^b,\;(R_n(a))^b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;b&#039;&#039; is positive. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Assume this relation holds for some &#039;&#039;b&#039;&#039;. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{b+1},\;a^b\,{a},\;R_n(a^b)\,R_n(a),\;(R_n(a))^b\,R_n(a),\;(R_n(a))^{b+1})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore, it follows that if this relation holds for &#039;&#039;b&#039;&#039;, it also holds for &#039;&#039;b&#039;&#039; + 1. Let &#039;&#039;b&#039;&#039; = 1. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^1,\;(R_n(a))^1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;(R_n(a)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This holds true. Therefore, this relation holds true for any positive &#039;&#039;b&#039;&#039;. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(a^c,\;b^c)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;c&#039;&#039; is positive.&lt;br /&gt;
&lt;br /&gt;
==== Divisor Rule  ====&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)\Rightarrow{C_x(a,\;b),\;C_y(a,\;b)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039; are positive. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)\iff{R_{xy}(a)=R_{xy}(b)=r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some &#039;&#039;r&#039;&#039;. Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cxy + r \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dxy + r&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, it follows that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; jx + r \\&lt;br /&gt;
b &amp;amp; = &amp;amp; kx + r&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;{jx+r},\;r)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(b,\;{kx+r},\;r)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;b)~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for &#039;&#039;y&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
==== Product Rule  ====&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;b),\;C_y(a,\;b),\;gcd(x,\;y)=1\Rightarrow{C_{xy}(a,\;b)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039; are positive, and &#039;&#039;gcd&#039;&#039; is the greatest common divisor function. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; b + k_1{x} \\&lt;br /&gt;
a &amp;amp; = &amp;amp; b + k_2{y} \\&lt;br /&gt;
k_1{x} &amp;amp; = &amp;amp; k_2{y}&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, by &#039;&#039;gcd&#039;&#039;(&#039;&#039;x&#039;&#039;, &#039;&#039;y&#039;&#039;) = 1,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
k_1 &amp;amp; = &amp;amp; ly \\&lt;br /&gt;
k_2 &amp;amp; = &amp;amp; lx \\&lt;br /&gt;
a &amp;amp; = &amp;amp; b + lxy&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exponential Identity ====&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{a^q}((a+b)^p,\;\sum_{i=0}^{q-1} \tbinom{p}{i}\,a^i\,b^{p-i})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1 &amp;lt; q &amp;lt; b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
This directly follows from the binomial theorem. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exponential Congruence Theorem ====&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;gcd&#039;&#039;(&#039;&#039;n&#039;&#039;, &#039;&#039;a&#039;&#039;) = 1, then there exists &#039;&#039;p&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^p,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof:&lt;br /&gt;
&lt;br /&gt;
Assume there does not exist such &#039;&#039;p&#039;&#039;. By the Pigeonhole Principle, there exist &#039;&#039;p&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039; and &#039;&#039;p&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;p_1&amp;gt;p_2&amp;gt;0,\;C_n(a^{p_1},\;a^{p_2})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, it must be the case that either&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1-p_2},\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1},\;0)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But since &#039;&#039;p&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039; - &#039;&#039;p&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&#039;&#039; &amp;gt; 0, this case contradicts the assumption. Then, the second case must be true.&lt;br /&gt;
&lt;br /&gt;
But&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1},\;0) \Rightarrow a^{p_1}=kn&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is not satisfied since &#039;&#039;gcd&#039;&#039;(&#039;&#039;n&#039;&#039;, &#039;&#039;a&#039;&#039;) = 1. Therefore, the assumption is false, and the theorem is proven. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examples  ===&lt;br /&gt;
&lt;br /&gt;
==== Problem 1 ====&lt;br /&gt;
&lt;br /&gt;
Does there exist a number that is a perfect square, a multiple of 2 but not a multiple of 4?&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
This is equivalent to finding &#039;&#039;n&#039;&#039; such that &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;n=4x+2=y^2&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, if such &#039;&#039;n&#039;&#039; exists,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_4(2,\;y^2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Clearly, &#039;&#039;y&#039;&#039; = 2&#039;&#039;k&#039;&#039;. But&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_4(2,\;(2k)^2,\;4k^2,0)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is impossible. Therefore, &#039;&#039;n&#039;&#039; does not exist. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Problem 2 ====&lt;br /&gt;
&lt;br /&gt;
Given the function &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;f(x) = &lt;br /&gt;
\begin{cases} &lt;br /&gt;
1,          &amp;amp; \mbox{if }x = 1 \\&lt;br /&gt;
x^{f(x-1)}, &amp;amp; \mbox{if }x &amp;gt; 1&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
find &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_{100}(f(2009))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: this is equivalent to the last 2 base 10 digits of&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2009^{2008^{2007^{\cdot^{\cdot^{3^{2^1}}}}}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(f(2009),\;2009^{f(2008)},\;9^{f(2008)})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simplify this, we look for simpler congruences. By the exponential identity, we get &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(81^p,\;1+80p,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if p = 5k. Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(9^{f(2008)},\;9^{R_{10}(f(2008))}\,9^{10k},\;9^{R_{10}(f(2008))})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To proceed, we use the product rule to split up 10 into 2 and 5, getting &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_2(f(2008),\;2008^{f(2007)},\;0)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_5(f(2008),\;2008^{f(2007)},\;8^{R_4(f(2007))}\,8^{4k},\;8^{R_4(f(2007))}\,4096^k,\;8^{R_4(f(2007))})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some k. To proceed, we evaluate &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_4(f(2007),\;2007^{f(2006)},\;7^{f(2006)},\;49^k,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some k. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_5(f(2008),\;8)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_2(f(2008),\;0,\;8)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Putting the product back together, we get &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{10}(f(2008),\;8)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;R_{10}(f(2008))=8&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(f(2009),\;9^{f(2008)},\;9^{R_{10}(f(2008))},\;9^8,\;81^4,\;61^2\;,21)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore, our desired result is &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_{100}(f(2009))=21&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
	<entry>
		<id>https://wiki.ubc.ca/index.php?title=Modular_Arithmetic&amp;diff=18444</id>
		<title>Modular Arithmetic</title>
		<link rel="alternate" type="text/html" href="https://wiki.ubc.ca/index.php?title=Modular_Arithmetic&amp;diff=18444"/>
		<updated>2010-01-26T20:01:05Z</updated>

		<summary type="html">&lt;p&gt;Jerome: /* Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
Modular arithmetic is a system of arithmetic, introduced to the world by Carl Friedrich Gauss. It is a beautiful field of mathematics, but in my opinion suffers from one fatal flaw: its notation. Therefore, I have taken the liberty of changing the current mainstream notation to one more suitable. I leave it to the reader to judge the changes I have made.&lt;br /&gt;
&lt;br /&gt;
In this text, I will first provide some axioms, which carry over directly. Then, I will provide some basic theorems, and prove these using the new notation, so as to demonstrate its capabilities.&lt;br /&gt;
&lt;br /&gt;
For the duration of this text, variables are denoted by italicized lowercase letters, and can represent any integer, unless restrictions are specified. &#039;&#039;n&#039;&#039;, however, is always positive.&lt;br /&gt;
&lt;br /&gt;
=== Axioms  ===&lt;br /&gt;
&lt;br /&gt;
==== Remainders  ====&lt;br /&gt;
&lt;br /&gt;
Define&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_n(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to be the remainder when &#039;&#039;a&#039;&#039; is divided by &#039;&#039;n&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Define the axiom &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;a=kn+R_n(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some &#039;&#039;k&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==== Congruence  ====&lt;br /&gt;
&lt;br /&gt;
Define the relation &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b){\iff}R_n(a)=R_n(b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is equivalent to &#039;&#039;a&#039;&#039; ≡ &#039;&#039;b&#039;&#039; (mod &#039;&#039;n&#039;&#039;). &lt;br /&gt;
&lt;br /&gt;
Define the axioms &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;R_n(a))&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;a)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a\cdot1,\;a)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(kn+a,\;a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the axioms &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
C_n(a,\;b) &amp;amp; \iff &amp;amp; C_n(b,\;a) \\&lt;br /&gt;
C_n(a,\;b),\;C_n(b,\;c) &amp;amp; \iff &amp;amp; C_n(a,\;c)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Define the axiom &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a_1,\;a_2),\;C_n(a_2,\;a_3)\;\cdots\;{C_n(a_{i-1},\;a_i})\iff{C_n(a_1,\;a_2,\;a_3\;\cdots\;a_{i-1},\;a_i)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;i&#039;&#039; is any positive integer.&lt;br /&gt;
&lt;br /&gt;
=== Theorems  ===&lt;br /&gt;
&lt;br /&gt;
==== Additive Property  ====&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a+b,\;R_n(a)+R_n(b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cn + R_n(a) \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dn + R_n(b)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n({a+b},\;{cn+R_n(a)+dn+R_n(b)},\;{n(c+d)+R_n(a)+R_n(b)},\;{R_n(a)+R_n(b)})~~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(a+c,\;b+c)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Multiplicative Property  ====&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(ab,\;R_n(a)R_n(b))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cn + R_n(a) \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dn + R_n(b)&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(ab,\;{cn\,dn+cn\,R_n(b)+R_n(a)\,dn+R_n(a)\,R_n(b)},\;{n(c\,d{n}+c\,R_n(b)+R_n(a)\,d)+R_n(a)\,R_n(b)},\;R_n(a)\,R_n(b))~~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(ac,\;bc)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exponential Property  ====&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^b,\;(R_n(a))^b)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;b&#039;&#039; is positive. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Assume this relation holds for some &#039;&#039;b&#039;&#039;. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{b+1},\;a^b\,{a},\;R_n(a^b)\,R_n(a),\;(R_n(a))^b\,R_n(a),\;(R_n(a))^{b+1})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore, it follows that if this relation holds for &#039;&#039;b&#039;&#039;, it also holds for &#039;&#039;b&#039;&#039; + 1. Let &#039;&#039;b&#039;&#039; = 1. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^1,\;(R_n(a))^1)&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;(R_n(a)))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This holds true. Therefore, this relation holds true for any positive &#039;&#039;b&#039;&#039;. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Corollary: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a,\;b)\iff{C_n(a^c,\;b^c)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;c&#039;&#039; is positive.&lt;br /&gt;
&lt;br /&gt;
==== Divisor Rule  ====&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)\Rightarrow{C_x(a,\;b),\;C_y(a,\;b)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039; are positive. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)\iff{R_{xy}(a)=R_{xy}(b)=r}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some &#039;&#039;r&#039;&#039;. Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; cxy + r \\&lt;br /&gt;
b &amp;amp; = &amp;amp; dxy + r&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, it follows that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; jx + r \\&lt;br /&gt;
b &amp;amp; = &amp;amp; kx + r&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;{jx+r},\;r)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(b,\;{kx+r},\;r)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;b)~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similarly for &#039;&#039;y&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
==== Product Rule  ====&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_x(a,\;b),\;C_y(a,\;b),\;gcd(x,\;y)=1\Rightarrow{C_{xy}(a,\;b)}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;x&#039;&#039; and &#039;&#039;y&#039;&#039; are positive, and &#039;&#039;gcd&#039;&#039; is the greatest common divisor function. &lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
Let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
a &amp;amp; = &amp;amp; b + k_1{x} \\&lt;br /&gt;
a &amp;amp; = &amp;amp; b + k_2{y} \\&lt;br /&gt;
k_1{x} &amp;amp; = &amp;amp; k_2{y}&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, by &#039;&#039;gcd&#039;&#039;(&#039;&#039;x&#039;&#039;, &#039;&#039;y&#039;&#039;) = 1,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{array}{rcl}&lt;br /&gt;
k_1 &amp;amp; = &amp;amp; ly \\&lt;br /&gt;
k_2 &amp;amp; = &amp;amp; lx \\&lt;br /&gt;
a &amp;amp; = &amp;amp; b + lxy&lt;br /&gt;
\end{array}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{xy}(a,\;b)~\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exponential Identity ====&lt;br /&gt;
&lt;br /&gt;
Define the relationship &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{a^q}((a+b)^p,\;\sum_{i=0}^{q-1} \tbinom{p}{i}\,a^i\,b^{p-i})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;1 &amp;lt; q &amp;lt; b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof: &lt;br /&gt;
&lt;br /&gt;
This directly follows from the binomial theorem. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Exponential Congruence Theorem ====&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;gcd&#039;&#039;(&#039;&#039;n&#039;&#039;, &#039;&#039;a&#039;&#039;) = 1, then there exists &#039;&#039;p&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^p,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proof:&lt;br /&gt;
&lt;br /&gt;
Assume there does not exist such &#039;&#039;p&#039;&#039;. By the Pigeonhole Principle, there exist &#039;&#039;p&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039; and &#039;&#039;p&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&#039;&#039; such that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;p_1&amp;gt;p_2&amp;gt;0,\;C_n(a^{p_1},\;a^{p_2})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, it must be the case that either&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1-p_2},\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1},\;0)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But since &#039;&#039;p&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;&#039;&#039; - &#039;&#039;p&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;&#039;&#039; &amp;gt; 0, this case contradicts the assumption. Then, the second case must be true.&lt;br /&gt;
&lt;br /&gt;
But&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_n(a^{p_1},\;0) \Rightarrow a^{p_1}=kn&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is not satisfied since &#039;&#039;gcd&#039;&#039;(&#039;&#039;n&#039;&#039;, &#039;&#039;a&#039;&#039;) = 1. Therefore, the assumption is false, and the theorem is proven. &amp;lt;math&amp;gt;\blacksquare&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Examples  ===&lt;br /&gt;
&lt;br /&gt;
Problem: &lt;br /&gt;
&lt;br /&gt;
Given the function &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;f(x) = &lt;br /&gt;
\begin{cases} &lt;br /&gt;
1,          &amp;amp; \mbox{if }x = 1 \\&lt;br /&gt;
x^{f(x-1)}, &amp;amp; \mbox{if }x &amp;gt; 1&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
find &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_{100}(f(2009))&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: this is equivalent to the last 2 base 10 digits of&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;2009^{2008^{2007^{\cdot^{\cdot^{3^{2^1}}}}}}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Solution: &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(f(2009),\;2009^{f(2008)},\;9^{f(2008)})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To simplify this, we look for simpler congruences. By the exponential identity, we get &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(81^p,\;1+80p,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if p = 5k. Therefore &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(9^{f(2008)},\;9^{R_{10}(f(2008))}\,9^{10k},\;9^{R_{10}(f(2008))})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To proceed, we use the product rule to split up 10 into 2 and 5, getting &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_2(f(2008),\;2008^{f(2007)},\;0)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_5(f(2008),\;2008^{f(2007)},\;8^{R_4(f(2007))}\,8^{4k},\;8^{R_4(f(2007))}\,4096^k,\;8^{R_4(f(2007))})&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some k. To proceed, we evaluate &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_4(f(2007),\;2007^{f(2006)},\;7^{f(2006)},\;49^k,\;1)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for some k. Then &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_5(f(2008),\;8)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_2(f(2008),\;0,\;8)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Putting the product back together, we get &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;C_{10}(f(2008),\;8)&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;R_{10}(f(2008))=8&amp;lt;/math&amp;gt; &lt;br /&gt;
:&amp;lt;math&amp;gt;C_{100}(f(2009),\;9^{f(2008)},\;9^{R_{10}(f(2008))},\;9^8,\;81^4,\;61^2\;,21)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore, our desired result is &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R_{100}(f(2009))=21&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jerome</name></author>
	</entry>
</feed>