<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="4.3.3">Jekyll</generator><link href="https://paranoiarchive.com//feed.xml" rel="self" type="application/atom+xml"/><link href="https://paranoiarchive.com//" rel="alternate" type="text/html" hreflang="en"/><updated>2025-12-20T22:59:48+00:00</updated><id>https://paranoiarchive.com//feed.xml</id><title type="html">blank</title><subtitle>Welcome to Liangliang&apos;s blog, where I share my thoughts and experiences on various topics. </subtitle><entry><title type="html">What is Mathematics: Solution Chapter 4</title><link href="https://paranoiarchive.com//blog/2025/What-is-Mathematics-CH4-Solution/" rel="alternate" type="text/html" title="What is Mathematics: Solution Chapter 4"/><published>2025-04-08T00:00:00+00:00</published><updated>2025-04-08T00:00:00+00:00</updated><id>https://paranoiarchive.com//blog/2025/What-is-Mathematics-CH4-Solution</id><content type="html" xml:base="https://paranoiarchive.com//blog/2025/What-is-Mathematics-CH4-Solution/"><![CDATA[<h2 id="before-the-solutions-">Before the solutions :)</h2> <p>The solution presented on the blog is my personal solutions for the exercises in the book ‘What is Mathematics: An Elementary Approach To Ideas And Methods’ by Herbert Robbins and Richard Courant, please leave a comment if you spot any mistakes or you have questions on the solution. Thanks in advance!</p> <p>##</p>]]></content><author><name></name></author><category term="math"/><summary type="html"><![CDATA[Before the solutions :) The solution presented on the blog is my personal solutions for the exercises in the book ‘What is Mathematics: An Elementary Approach To Ideas And Methods’ by Herbert Robbins and Richard Courant, please leave a comment if you spot any mistakes or you have questions on the solution. Thanks in advance!]]></summary></entry><entry><title type="html">What is Mathematics: Solution Chapter 3</title><link href="https://paranoiarchive.com//blog/2024/What-is-Mathematics-CH3-Solution/" rel="alternate" type="text/html" title="What is Mathematics: Solution Chapter 3"/><published>2024-07-08T00:00:00+00:00</published><updated>2024-07-08T00:00:00+00:00</updated><id>https://paranoiarchive.com//blog/2024/What-is-Mathematics-CH3-Solution</id><content type="html" xml:base="https://paranoiarchive.com//blog/2024/What-is-Mathematics-CH3-Solution/"><![CDATA[<h2 id="before-the-solutions-">Before the solutions :)</h2> <p>The solution presented on the blog is my personal solutions for the exercises in the book ‘What is Mathematics: An Elementary Approach To Ideas And Methods’ by Herbert Robbins and Richard Courant, please leave a comment if you spot any mistakes or you have questions on the solution. Thanks in advance!</p> <h2 id="fundamental-geometrical-and-algebra">Fundamental Geometrical and Algebra</h2> <ol> <li> <p>Since \(2^n \rightarrow \infty\), prove as a consequence that \(\sqrt{2 + \sqrt{2 + \sqrt{2 + \cdots + \sqrt{2}}}}\) (with \(n\) square roots) converges to 2 as \(n \rightarrow \infty\).</p> \[\begin{align*} x &amp;= \sqrt{2 + \sqrt{2 + \sqrt{2 + \cdots}}} \\ x^2 &amp;= 2 + \sqrt{2 + \sqrt{2 + \sqrt{2 + \cdots}}} \\ x^2 &amp;= 2 + x \end{align*}\] <p>And we can get x = 2.</p> </li> <li> <p>Show that every field contains all the rational numbers at least. (Hint: If \(a \neq 0\) is a number in the field \(F\) , then \(a/a = 1\) belongs to F , and from 1 we can obtain any rational number by rational operations.)</p> </li> </ol> <h2 id="constructible-number-and-number-fields">Constructible Number and Number Fields</h2> <ol> <li> <p>Ex: From \(p=1+\sqrt{2}, q=2-\sqrt{2}, r=-3+\sqrt{2}\) obtain the numbers \(\frac{p}{q}, \quad p^2, \quad (p-p^2)\frac{q}{r}, \quad \frac{p+qr}{p-r}, \quad \frac{p+r}{q+pr}\) in the form \(a+b\sqrt{2}\).</p> \[\begin{aligned} \frac{p}{q} &amp;= \frac{1+\sqrt{2}}{2-\sqrt{2}} \\ &amp;= \frac{(1+\sqrt{2})(2+\sqrt{2})}{(2-\sqrt{2})(2+\sqrt{2})} \\ &amp;= \frac{2+2\sqrt{2}+\sqrt{2}+2}{4-2} \\ &amp;= \frac{4+3\sqrt{2}}{2} \\ &amp;= 2 + \frac{3\sqrt{2}}{2} \end{aligned}\] \[\begin{aligned} p + p^2 &amp;= (1+\sqrt{2}) + (1+\sqrt{2})^2 \\ &amp;= (1+\sqrt{2} + 1 + 2\sqrt{2} + 2) \\ &amp;= 4 + 3\sqrt{2} \end{aligned}\] \[\begin{aligned} (p-p^2)\frac{q}{r} &amp;= \left[(1+\sqrt{2}) - (1+\sqrt{2})^2\right]\frac{2-\sqrt{2}}{-3+\sqrt{2}} \\ &amp;= \left[1+\sqrt{2} - (1+2\sqrt{2} + 2)\right]\frac{(2-\sqrt{2})(\sqrt{2}+3)}{(-3+\sqrt{2})(\sqrt{2}+3)} \\ &amp;= \left[-2-\sqrt{2}\right]\frac{2\sqrt{2}+6-2+3\sqrt{2}}{2-9} \\ &amp;= \left[-2-\sqrt{2}\right]\frac{4-\sqrt{2}}{-7} \\ &amp;= \frac{6}{7} + \frac{2\sqrt{2}}{7} \end{aligned}\] \[\begin{aligned} \frac{pqr}{1+r^2} &amp;= \frac{(1+\sqrt{2})(2-\sqrt{2})(-3+\sqrt{2})}{1+(-3+\sqrt{2})^2} \\ &amp;= \frac{\sqrt{2}(-3+\sqrt{2})}{1+9-6\sqrt{2}+2} \\ &amp;= \frac{2-3\sqrt{2}}{12-6\sqrt{2}} \\ &amp;= \frac{(2-3\sqrt{2})(12+6\sqrt{2})}{(12-6\sqrt{2})(12+6\sqrt{2})} \\ &amp;= \frac{24+12\sqrt{2}-36\sqrt{2}-36}{144-72} \\ &amp;= \frac{-12-24\sqrt{2}}{72} \\ &amp;= -\frac{1}{6}-\frac{1}{3}\sqrt{2} \\ \end{aligned}\] \[\begin{aligned} \frac{p+qp}{q+pr^2} &amp;= \frac{(1+\sqrt{2})+(2-\sqrt{2})(-3+\sqrt{2})}{(2-\sqrt{2})+(1+\sqrt{2})(-3+\sqrt{2})^2} \\ &amp;= \frac{(1+\sqrt{2})+(-6+2\sqrt{2}+3\sqrt{2}-2)}{(2-\sqrt{2})+(1+\sqrt{2})(11-6\sqrt{2})} \\ &amp;= \frac{-7+6\sqrt{2}}{(2-\sqrt{2})+(5\sqrt{2}-1)}\\ &amp;= \frac{-7+6\sqrt{2}}{1+4\sqrt{2}} \\ &amp;= \frac{(-7+6\sqrt{2})(1-4\sqrt{2})}{(1+4\sqrt{2})(1-4\sqrt{2})} \\ &amp;= \frac{-7+28\sqrt{2}+6\sqrt{2}-48}{1-32} \\ &amp;= \frac{-55+34\sqrt{2}}{-31} \\ &amp;= \frac{55}{31}-\frac{34}{31}\sqrt{2}\\ \end{aligned}\] </li> <li> <p>Represent \((\sqrt{k})^3 , \frac{1+(\sqrt{k})^2}{1+\sqrt{k}} , \frac{\sqrt{2}\sqrt{k}+\frac{1}{\sqrt{2}}}{(\sqrt{k})^3-3}, \frac{(1+\sqrt{k})(2-\sqrt{k})(\sqrt{2}+\frac{1}{\sqrt{k}})}{1+\sqrt{2}k}\) in the form \(p+q\sqrt{k}\).</p> \[(\sqrt{k})^3 = k\sqrt{k}\] \[\begin{aligned} \frac{1+(\sqrt{k})^2}{1+\sqrt{k}} &amp;= \frac{(1+k)(1-\sqrt{k})}{(1+\sqrt{k})(1-\sqrt{k})} \\ &amp;= \frac{1+\sqrt{k}+k-k\sqrt{k}}{1-k} \\ &amp;= \frac{1+k}{1-k} - \frac{1+k}{1-k}\sqrt{k} \end{aligned}\] \[\begin{aligned} \frac{\sqrt{2}\sqrt{k}+\frac{1}{\sqrt{2}}}{(\sqrt{k})^3-3} &amp;= \frac{(\sqrt{2}\sqrt{k} + \frac{\sqrt{2}}{2})(k \sqrt{k} + 3)}{(k \sqrt{k} - 3)(k \sqrt{k} + 3)} \\ &amp;= \frac{k^2\sqrt{2} + 3\sqrt{2} \sqrt{k} + \frac{\sqrt{2}}{2} k \sqrt{k} + 2 \frac{\sqrt{2}}{2}}{k^3 - 9} \\ &amp;= \frac{k^2\sqrt{2}}{k^3 - 9} + \frac{3\sqrt{2} + \frac{\sqrt{2}}{2} k}{k^3 - 9}\sqrt{k} \end{aligned}\] \[\begin{aligned} \frac{(1+\sqrt{k})(2-\sqrt{k})(\sqrt{2}+\frac{1}{\sqrt{k}})}{1+\sqrt{2}k} &amp;= \frac{(2 - \sqrt{k}+ \sqrt{2k} - \sqrt{k})(\sqrt{2} + \frac{1}{\sqrt{k}})}{1 + \sqrt{2k}} \\ &amp;= \frac{2 \sqrt{2} + \frac{2 \sqrt{k}}{k} + 2 \sqrt{k} - 1 + 2\sqrt{k} + \sqrt{2} - \sqrt{2}k - \sqrt{k}}{1 + \sqrt{2k}} \\ &amp;= \frac{2 \sqrt{2} + \sqrt{k} - \sqrt{2}k - 1}{1 + \sqrt{2}k} + \frac{\frac{2}{k}-\sqrt{2}+1}{1+\sqrt{2}k}\sqrt{k} \end{aligned}\] </li> <li> <p>If two segments of lengths \(1\) and \(a\) are given, give actual constructions for \(1 + \alpha + \alpha^2\), \((1+\alpha)/(1-\alpha)\), \(\alpha^3\).</p> <p>\(5.1\): To construct \(1 + a + a^2\), first let’s assume \(\alpha&gt;1\) first construct 1 as OA, then extend from A to B with length \(\alpha\), therefore we have \(1+\alpha\).</p> <p>the next is to construct \(\alpha^2\). We first construct a right triangle OCD, where angle OCD is right angle, OC is 1, and OD is \(\alpha\), and then extend OC to OA, the length of OA is \(\alpha\), then construct a line from A that is perpendicular to OA, exten OD and the line will intersect with previouly contsructed line on point B. then obviously we have \(\triangle OCD \sim \triangle OAB\).</p> <p>Therefore we can eaisly have the ratio equation that is \(\frac{OC}{OA}=\frac{OD}{OB}\), where we can see OB is \(\alpha^2\), using compass we then can construct another extension on the basis of \(1+\alpha\) and get \(1 + a + a^2\).</p> <p>\(5.2\): To construct \((1+\alpha)/(1-\alpha)\), first let’s assume \(0&lt;\alpha&lt;1\)construct \(1+\alpha\), using the same way as described in 5.1, and then construct \(1-\alpha\) by constructing unit length 1 OA and OB with length \(\alpha\), then we can get \(1-\alpha\)</p> <p>Then we construct right triangle, first one side is \(OB=1+\alpha\), and another side OA with length \(1-\alpha\) which is perpendicular to AB, then we construct OC which is \(1\), from point C construct a line CD that is parallel to CD. then we can get \(\triangle OAB \sim \triangle OCD\).</p> <p>Therefore we can eaisly have the ratio equation that is \(\frac{OD}{OB}=\frac{OC}{OA}\), which we can gete \(\frac{OD}{1+\alpha}=\frac{1}{1-\alpha}\), then we can get OD is \((1+\alpha)/(1-\alpha)\).</p> <p>\(5.3\): To construct \(\alpha^3\), construct \(\alpha^2\) by using the step in 5.1 and then construct \(\alpha^3\) by using the same way using triangle similarity \(\triangle OCD \sim \triangle OAB\).</p> </li> <li> <p>The lines \(x + \sqrt{2}y - 1 = 0\), \(2x - y + \sqrt{2} = 0\), have coefficients in the field \(a + b\sqrt{2}\). Calculate the coordinates of their point of intersection, and verify that these have the form \(a + b\sqrt{2}\). Join points \((1, \sqrt{2})\) and \((\sqrt{2}, 1 - \sqrt{2})\) by a line \(ax + by + c = 0\), and verify that the coefficients are of the form \(a + b\sqrt{2}\). Same with respect to field \(p + q\sqrt{k}\) for the lines \(\sqrt{(1+\sqrt{2})x} + \sqrt{2} y = 1\), \((1+\sqrt{2})x - y = 1 - \sqrt{1+\sqrt{2}}\), and the points \((\sqrt{2}, -1)\), \((1+\sqrt{2}, \sqrt{1+\sqrt{2}})\) respectively.</p> <p>To find intersection:</p> \[\begin{cases} x + \sqrt{2}y - 1 &amp;= 0 \\ 2x - y + \sqrt{2} &amp;= 0 \end{cases}\] <p>Easily get:</p> \[\begin{cases} x &amp;= \frac{7}{7} - \frac{3}{7} \sqrt{2} \\ y &amp;= \frac{2}{7} + \frac{3}{7} \sqrt{2} \end{cases}\] <p>And they are both in the filed of \(a + b\sqrt{2}\).</p> <p>Join 2 points \((1, \sqrt{2})\) and \((\sqrt{2}, 1-\sqrt{2})\), The line is \(ax + b = y\). Then we can have:</p> \[\begin{cases} a + b &amp;= \sqrt{2} \\ \sqrt{2} a + b &amp;= 1 - \sqrt{2} \end{cases}\] <p>Easily get:</p> \[\begin{align*} a &amp;= -3 + \sqrt{2} \\ b &amp;= 3 + \sqrt{2} \end{align*}\] <p>And they are both in the form of \(a + b\sqrt{2}\).</p> <p>To find intersection of:</p> \[\begin{cases} (1 + \sqrt{2})x + \sqrt{2} y &amp;= 1 \\ (1 + \sqrt{2})x - y &amp;= 1 - (1 + \sqrt{2}) \end{cases}\] <p>Say \(k=1+\sqrt{2}\)</p> \[\begin{cases} \sqrt{(k-1)x+1} + \sqrt{2}y &amp;= 1 \\ kx-y&amp;=1-\sqrt{k} \end{cases}\] <p>Then we can get</p> \[\begin{cases} x &amp;= \\ y &amp;= \end{cases}\] <p>Which are in the form of \(p+q\sqrt{k}\)</p> <p>Join \((\sqrt{2}, -1)\), \((1+\sqrt{2}, \sqrt{1+\sqrt{2}})\), with \(k = 1+\sqrt{2}\):</p> \[\begin{cases} \sqrt{2} a + b &amp;= -1 \\ k a + b &amp;= \sqrt{2} k \end{cases}\] <p>Say \(k=1+\sqrt{2}\) Easily get:</p> \[\begin{cases} a &amp;= \frac{-1 - \sqrt{k}}{\sqrt{2} - k} \\ b &amp;= \frac{-1 \sqrt{k}}{\sqrt{2} - k}\sqrt{2}+1 \end{cases}\] <p>which is of the form \(p + q\sqrt{k}\).</p> </li> <li> <p>Let \(F\) be the field \(p + q\sqrt{2 + \sqrt{2}}\), where p and q are of the form \(a + b\sqrt{2}\), a, b rational. Represent \(\frac{1 + \sqrt{2 + \sqrt{2}}}{2 - 3\sqrt{2 + \sqrt{2}}}\) in this form.</p> <p>Say \(k = 2 + \sqrt{2}\), we can get:</p> \[\frac{1 + \sqrt{k}}{2 - 3k}\] <p>Rewriting:</p> \[\frac{(1 + \sqrt{k})}{(2 - 3\sqrt{k})}\] <p>Multiplying numerator and denominator by \((2 + 3\sqrt{k})\):</p> \[\frac{(1 + \sqrt{k})(2 + 3\sqrt{k})}{(2 - 3\sqrt{k})(2 + 3\sqrt{k})}\] <p>Expanding:</p> \[\frac{2 + 5\sqrt{k} + 3k}{4 - 9k}\] \[= \frac{2 + 3k}{4 - 9k} + \frac{5}{4 - 9k} \cdot \sqrt{k}\] <p>Therefore it is the form of field \(p+q\sqrt{2+\sqrt{2}}\)</p> </li> <li> <p>Consider the circle with radius \(2\sqrt{2}\) about the origin, and the line joining the points \((\frac{1}{2}, 0)\), \((4\sqrt{2}, \frac{\sqrt{2}}{2})\). Find the field \(F'\) determined by the coordinates of intersection of the circle and the line. Do the same with respect to the intersection of the given circle with the circle with radius \(\frac{\sqrt{2}}{2}\) and center \((0, 2\sqrt{2})\).</p> <p>\(8.1\): Say the line is \(ax + b = y\),</p> \[\begin{cases} \frac{1}{2} a + b = 0, \\ 4\sqrt{2} a + b = \frac{\sqrt{2}}{2}. \end{cases}\] <p>Easily get the equation of the line,</p> \[\left( \frac{32}{127} + \frac{2\sqrt{2}}{127} \right) x - \frac{16}{127} - \frac{\sqrt{2}}{127} = y. \quad\] <p>The equation of the circle is</p> \[x^2 + y^2 = 8.\] <p>With (1) and (2), we get</p> \[x^2 + \left[ \left( \frac{32}{127} + \frac{2\sqrt{2}}{127} \right) x - \frac{16}{127} - \frac{\sqrt{2}}{127} \right]^2 = 8.\] <p>By calculating it we can get:</p> \[\begin{cases} x_1 &amp;= \frac{548 + 64 \sqrt{2} - \sqrt{2501773094 - 19209248 \sqrt{2}}}{18257}\\ y_1 &amp;= (-16/2318639 - \sqrt{2}/2318639) (17161 - 128 \sqrt{2} + 2 \sqrt{2501773094 - 19209248 \sqrt{2}}) \\ x_2 &amp;= \frac{548 + 64 \sqrt{2} - \sqrt{2501773094 - 19209248 \sqrt{2}}}{18257} \\ y_2 &amp;= (16/2318639 + \sqrt{2}/2318639) (-17161 + 128 \sqrt{2} + 2 \sqrt{2501773094 - 19209248 \sqrt{2}}) \\ \end{cases}\] <p>Therefore the field extension F is needed to accommodate these two values is</p> \[F = \mathbb{Q}(\sqrt{2}, \sqrt{2501773094 - 19209248 \sqrt{2}})\] <p>\(y\) can be gained by the coefficient with \(\sqrt{2}\) therefore \(y\) is also in the same filed \(F\).</p> <p>\(8.2\): For the circle with radius \(\frac{\sqrt{2}}{2}\) and center \((0, 2\sqrt{2})\).</p> \[\begin{cases} C_1 &amp;= x^2 + y^2 = 8 \\ C_2 &amp;= x^2 + (y-2\sqrt{2})^2 = \frac{1}{2} \end{cases}\] <p>Therefore we can get:</p> \[\begin{cases} x_1 &amp;= \frac{-3 \sqrt{\frac{7}{2}}}{8} \\ y_1 &amp;= \frac{31}{8 \sqrt{2}}\\ x_2 &amp;= \frac{3 \sqrt{\frac{7}{2}}}{8} \\ y_1 &amp;= \frac{31}{8 \sqrt{2}} \end{cases}\] <p>The field is \(F = \mathbb{Q}(\sqrt{2}, \sqrt{7})\)</p> </li> <li> <p>Verify that, starting with the rational field, the side of the regular \(2^m\)-gon is a constructible number, with \(n = m - 1\). Determine the sequence of extension fields. Do the same for the numbers: \(\sqrt{1+ \sqrt{2}+ \sqrt{3} + \sqrt{5}}\), \(\frac{(\sqrt{5} + 11)}{(1+\sqrt{7-\sqrt{3}})}\), \((\sqrt{2} + 3)(\sqrt[3]{2} + \sqrt{1+\sqrt{2+\sqrt{5}}} + \sqrt{3-\sqrt{7}})\)</p> <ul> <li>The side of a regular \(2^m\)-gon is given as:</li> </ul> \[\begin{equation*} 2^n \cdot \sqrt{2-\sqrt{2+\sqrt{2+\dots+\sqrt{2}}}} \end{equation*}\] <p>where there are \(n\) square roots.</p> <p>Starting with the rational field \(F_0\), let \(k_0 = 2\), obtaining:</p> \[\begin{equation*} F_1 = 2 + \sqrt{2}. \end{equation*}\] <p>Similarly, setting \(k_1 = \sqrt{2 + \sqrt{2}}\), we obtain</p> \[\begin{equation*} F_1 = 2 + \sqrt{2}. \end{equation*}\] <p>and continuing this process iteratively $n$ times, we reach the desired expression</p> \[\sqrt{2-\sqrt{2+\sqrt{2+\dots+\sqrt{2}}}}\] <p>Since \(2^n\) is inside the field \(F_0\) by n product of \(2\). The expression is a product of \(F_0\) and \(F_n\), therefore the number is constructible.</p> <ul> <li>Let \(F_0\) denote the rational field.</li> </ul> \[\begin{align*} &amp;F_0: \text{rational numbers}, \\ &amp;k_0 = 2 \Rightarrow F_1 = 1 + \sqrt{2}, \\ &amp;k_1 = 1+\sqrt{2} \Rightarrow F_2 = 1 + \sqrt{2} + \sqrt{3}, \\ &amp;k_2 = 3 \Rightarrow F_3 = 1 + \sqrt{2} + \sqrt{3}, \\ &amp;k_3 = 1 + \sqrt{2} + \sqrt{3}.\\ &amp;k_4 = 5 \Rightarrow F_4 = 1 + \sqrt{2} + \sqrt{3} + \sqrt{5},\\ &amp;k_5 = 1 + \sqrt{2} + \sqrt{3} + \sqrt{5} \Rightarrow F_5 = \sqrt{1+ \sqrt{2}+ \sqrt{3} + \sqrt{5}} \\ \end{align*}\] <ul> <li>Let \(F_0\) denote the rational field.</li> </ul> \[\begin{align*} &amp;F_0: \text{rational numbers}, \\ &amp;k_0 = 5 \Rightarrow F_1 = \sqrt{5}, \\ &amp;k_1 = \sqrt{5}, \\ &amp;k_2 = 11 \Rightarrow F_2 = \sqrt{11}, \\ &amp;k_3 = \sqrt{5} + \sqrt{11} \Rightarrow F_3 = \sqrt{5} + \sqrt{11},\\ &amp;k_4 = 3 \Rightarrow F_4 = \sqrt{3},\\ &amp;k_5 = 7 + \sqrt{3} \Rightarrow F_5 = \sqrt{7+\sqrt{3}}, \\ \text{1 is in F_1} \Rightarrow 1+\sqrt{7+\sqrt{3}} \end{align*}\] <p>And \(\frac{(\sqrt{5} + 11)}{(1+\sqrt{7-\sqrt{3}})}\) is an operation within the same field, therefore also constructible.</p> <ul> <li>\(\sqrt[3]{2}\) is not constructible using only a compass and straightedge. See Doubling the Cube part in the book for more about the proof.</li> </ul> </li> <li> <p>Find the equations with rational coefficients for:\((a) x = 2 + \sqrt{3}\), \((b) x = \sqrt{2} + \sqrt{3}\), \((c) x = \frac{1}{\sqrt{5} + \sqrt{3}}\)</p> <p>(a) \(x = 2 + \sqrt{3}\)</p> \[x - \sqrt{2} = \sqrt{3}\] <p>Squaring both sides:</p> \[(x - 2)^2 = (\sqrt{3})^2\] \[x^2 - 4x + 4 = 3\] \[x^2 - 4x + 1 = 0\] <p>(b) \(x = \sqrt{2} + \sqrt{3}\)</p> \[x^2 = 2 + 2\sqrt{6} + 3\] <p>Squaring again:</p> \[(x^2 - 5)^2 = 24\] \[x^4 - 10x^2 + 25 = 24\] \[x^4 - 10x^2 + 1 = 0\] <p>(c) \(x = \frac{1}{\sqrt{5} + \sqrt{3}}\)</p> \[\frac{1}{x^2} = 5 + \sqrt{3}\] \[\frac{1}{x^2} - 5= \sqrt{3}\] \[\frac{1}{x^4} - 10\frac{1}{x^2} + 25=3\] <p>Rearrange:</p> \[22x^4 - 10x^2 + 1=0\] </li> <li> <p>Find by a similar method equations of the eighth degree for:\((a) x = \sqrt{2 + \sqrt{2 + \sqrt{2}}}, (b) x = \sqrt{2} + \sqrt{1 + \sqrt{3}}, (c) x = 1 + \sqrt{5 + \sqrt{3+\sqrt{2}}}\)</p> <p>(a) \(x = \sqrt{2 + \sqrt{2 + \sqrt{2}}}\)</p> \[x^2 = 2 + \sqrt{2 + \sqrt{2}}\] \[(x^2 - 2)^2 = 2 + \sqrt{2}\] \[x^4-4x^2+4-2=\sqrt{2}\] \[x^4 - 4x^2 + 4 = 2 + 2\sqrt{2}\] <p>Squaring again:</p> \[(x^4 - 4x^2 + 2)^2 = 2\] <p>Rearrange:</p> \[x^8 - 8x^6 + 20x^4 - 16x^2 + 2 = 0\] <p>(b) \(x = \sqrt{2} + \sqrt{1 + \sqrt{3}}\)</p> \[(x-\sqrt{2})^2 = 1+\sqrt{3}\] \[x^2-2\sqrt{2}x+1=\sqrt{3}\] \[x^2 +1 - \sqrt{3} = 2\sqrt{2}x\] \[(x^2+1-\sqrt{3})^2 = 8x^2\] <p>Rearrange:</p> \[(x^2+1)^2-2\sqrt{3}(x+1)+3=8x^2\] \[(x^4-6x^2+4)^2 = 3[2(x+1)]^2\] <p>Rearrange:</p> \[x^8-12x^6+32^4-72x x^2+4=0\] <p>(c) \(x = 1 + \sqrt{5 + \sqrt{3 + \sqrt{2}}}\)</p> \[(x-1)^2= 5 + \sqrt{3 + \sqrt{2}}\] \[(x^2-2x-4)^2 = 3 + \sqrt{2}\] \[((x^2-2x-4)^2-3)^2 = 2\] <p>Rearrange:</p> \[x^8-8x^7+8x^6+64x^5-86x^4-232x^3+152x^2+416x+167=0\] </li> <li> <p>To prove the theorem for \(x\) in a field \(F_k\) with arbitrary \(k\), we use induction. The goal is to show \(x\) satisfies an equation of degree \(2^k\) with coefficients in \(F_k\). The statement for \(k=l\) completes the proof.</p> <p>Base Case \(l = 1\):</p> <p>For \(l = 1\), we need to show that \(x\) satisfies a quadratic equation over \(F_{k-1}\). Since \(F_k\) is a quadratic extension of \(F_{k-1}\), any element \(x \in F_k\) can be written as \(a + b\sqrt{w}\), where \(a, b \in F_{k-1}\). This element \(x\) satisfies the quadratic equation:</p> \[(x - a)^2 = b^2 w\] <p>which is a degree \(2^1\) equation over \(F_{k-1}\). Thus, the base case holds.</p> <p>Inductive Step: \(l=k\) Assume that for some \(l \geq 1\), every element \(x \in F_k\) satisfies an equation of degree \(2^l\) over \(F_{k-l}\). We need to show that \(x\) satisfies an equation of degree \(2^{l+1}\) over \(F_{k-(l+1)}\).</p> <p>Since \(F_{k-l}\) is a quadratic extension of \(F_{k-l-1}\), we can write \(F_{k-l} = F_{k-l-1}(\sqrt{w})\) for some \(w \in F_{k-l-1}\). By the induction hypothesis, \(x\) satisfies a polynomial \(P(x) = 0\) of degree \(2^l\) with coefficients in \(F_{k-l}\). Each coefficient of \(P(x)\) can be written as \(c_i + d_i \sqrt{w}\), where \(c_i, d_i \in F_{k-l-1}\). Separating the polynomial into terms with and without \(\sqrt{w}\), we get:</p> \[Q(x) + \sqrt{w} R(x) = 0\] <p>where \(Q(x)\) and \(R(x)\) are polynomials with coefficients in \(F_{k-l-1}\). Applying the automorphism \(\sigma\) (which sends \(\sqrt{w}\) to \(-\sqrt{w}\)) gives:</p> \[Q(x) - \sqrt{w} R(x) = 0\] <p>Multiplying these two equations eliminates \(\sqrt{w}\):</p> \[(Q(x))^2 - w (R(x))^2 = 0\] <p>This results in a polynomial equation of degree \(2 \cdot 2^l = 2^{l+1}\) over \(F_{k-l-1}\). Thus, the inductive step holds.</p> <p>By induction, for each \(l\) from \(1\) to \(k\), \(x\) satisfies an equation of degree \(2^l\) over \(F_{k-l}\). When \(l = k\), this gives an equation of degree \(2^k\) over \(F_0\), which is the desired theorem.</p> </li> <li> <p>Exercise: Show that this construction actually yields \(y =x/3\).</p> <p>Based on the graph in page 138:</p> \[\angle BOA + \angle BOC + \angle COD = 180^\circ\] \[\angle OBC = \angle OCB = 2y\] <p>So we can have:</p> \[\begin{aligned} y + (180^\circ-4y)+x&amp;=180^\circ\\ y&amp;=x/3 \end{aligned}\] </li> </ol> <h2 id="restriction-to-use-of-compass-alone">Restriction to use of compass alone</h2> <ol> <li> <p>Exercises: The following ia a description of Mohr’s constructions. Check their vadility, Wht do they solve the Mascheroni problem?</p> <p>1). On a segment AB of length p erect a perpendicular segment BC. (Hint: Extend AB by a point D such that AB = BD. Draw arbitrary circles around A and D and thus determine C .)</p> <p>Given segment \(AB\), extend it to \(D\) such that \(AB = BD\). Draw circles centered at \(A\) and \(D\) with arbitrary radii intersecting at \(C\). Then \(BC\) is perpendicular to \(AB\).</p> <p>2). Two segments of length \(p\) and \(q\) with \(p &gt; q\) are given somewhere in the plane. Find a segment of the length \(x=\sqrt{p^2-q^2}\) by making use of 1).</p> <p>Construct a right triangle (based on the construction above) with hypotenuse \(p\) and one leg \(q\). The other leg will have length \(x = \sqrt{p^2 - q^2}\).</p> <p>3). From a given segment a construct the segment \(a\sqrt{2}\). (Hint: Observe that \((a\sqrt{2})^2 = (a\sqrt{3})^2 -a^2\).)</p> <p>Construct a right triangle with both legs are a, and the hypotenuse will be \(a\sqrt{2}\).</p> <p>4). With given segments p and q find a segment \(x=\sqrt{p^2+q^2}\). (Hint: Use the relation \(x^2 =2p^2 — (p^2 — (p^2-q^2)\).) Find other similar constructions.</p> <p>Construct a right triangle with p and q as the legs, the hypotenuse is x.</p> <p>5) Using the previous results, find segments of length \(p + q\) and \(p — q\) if segments of length \(p\) and \(q\) are given somewhere in the plane.</p> <p>To construct \(p + q\), align \(p\) and \(q\) end-to-end using the compass. For \(p - q\), mark \(q\) along \(p\) and measure the remaining segment.</p> <p>6) Check and prove the following construction for the midpoint \(M\) of a given segment \(AB\) of length \(a\). On the extension of \(AB\) find \(C\) and \(D\) such that \(CA = AB = BD\). Construct the isosceles triangle \(ECD\) with \(EC = ED = 2a\), and find \(M\) as the intersection of the circles with diameters \(EC\) and \(ED\).</p> <p>Extend \(AB\) to \(C\) and \(D\) such that \(CA = AB = BD\). Make a perpendicular line Q to AB at point M, then use compass to use length 2a, draw a circle from center C and D, the intersection between the circles and Q is point E.</p> <p>7) Find the orthogonal projection of a point \(A\) on a line \(BC\).</p> <p>Find M of BC, then draw a circle with radii AM centered at \(A\) intersecting \(BC\) at another point D. find the middle point O of MD, and O is the orthogonal projection a point \(A\) on a line \(BC\).</p> <p>8) Find \(x\) such that \(x:a=p:q\). if \(a\), \(p\) and \(q\) are given segments.</p> <p>Use similar triangles or proportional scaling to construct \(x\), Construct a triangle ABC where \(\angle ABC\) is right angle, \(AB=q\), \(AC=p\) make a segment AD on AB where \(AD=a\), and make a point E on AC where ED is perpendicular to AB, and \(AE=x\), we can easily see \(\triangle ABC \sim \triangle AED\), and the ratio can be found obviously.</p> <p>9) Find \(x = ab\), if \(a\) and \(b\) are given segments.</p> <p>Use proportional scaling and to construct similar triangle and can easily get \(x = ab\). (but do we have unit length 1?)</p> </li> </ol>]]></content><author><name></name></author><category term="math"/><summary type="html"><![CDATA[Before the solutions :) The solution presented on the blog is my personal solutions for the exercises in the book ‘What is Mathematics: An Elementary Approach To Ideas And Methods’ by Herbert Robbins and Richard Courant, please leave a comment if you spot any mistakes or you have questions on the solution. Thanks in advance!]]></summary></entry><entry><title type="html">What is Mathematics: Solution Chapter 2</title><link href="https://paranoiarchive.com//blog/2024/What-is-Mathematics-CH2-Solution/" rel="alternate" type="text/html" title="What is Mathematics: Solution Chapter 2"/><published>2024-06-26T00:00:00+00:00</published><updated>2024-06-26T00:00:00+00:00</updated><id>https://paranoiarchive.com//blog/2024/What-is-Mathematics-CH2-Solution</id><content type="html" xml:base="https://paranoiarchive.com//blog/2024/What-is-Mathematics-CH2-Solution/"><![CDATA[<h2 id="before-the-solutions-">Before the solutions :)</h2> <p>The solution presented on the blog is my personal solutions for the exercises in the book ‘What is Mathematics: An Elementary Approach To Ideas And Methods’ by Herbert Robbins and Richard Courant, please leave a comment if you spot any mistakes or you have questions on the solution. Thanks in advance!</p> <h2 id="incommensurable-segments-irrational-numbers-and-the-concept-of-limit">Incommensurable segments, irrational numbers, and the concept of limit</h2> <ol> <li> <p>Prove that \(\sqrt[3]{2}, \sqrt{3}, \sqrt{5}, \sqrt[3]{3}\) are not rational. (Hint: Use the lemma of p. 47).</p> <p>(1). \(\sqrt[3]{2}\)</p> <p>Assume \(\sqrt[3]{2}\) is rational:</p> \[\sqrt[3]{2} = \frac{p}{q} \quad \text{gcd}(p, q) = 1\] \[\begin{aligned} 2 = \frac{p^3}{q^3} \Rightarrow 2q^3 = p^3 \end{aligned}\] <p>Based on the lemma, p divdes ab, therefore p divides a or b. since \(\text{gcd}(p, q) = 1\), Therefore</p> \[2 \left| p^3 \Rightarrow 2\right|p\] <p>therefore p is some even number, and can be denoted as 2k</p> \[2q^3 = (2k)^3\] \[q^3 = 4k^3 \quad \text{and q} \quad \text{is even}, \quad \text{contradicting gcd}(p, q) = 1.\] <p>Therefore \(\sqrt[3]{2}\) is irrational number.</p> <p>(2). \(\sqrt{3}\)</p> <p>Assume \(\sqrt{3}\) is rational:</p> \[\sqrt{3} = \frac{p}{q} \quad \text{gcd}(p, q) = 1\] \[\begin{aligned} 3 = \frac{p^2}{q^2} \Rightarrow 3q^2 = p^2 \end{aligned}\] <p>Based on the lemma, p divdes ab, therefore p divides a or b. since \(\text{gcd}(p, q) = 1\), Therefore</p> \[3 \left| p^2 \Rightarrow 3\right|p\] <p>therefore can be denoted as 3k</p> \[3q^2 = (3k)^2\] \[q^2 = 3k^2 \quad \Rightarrow 3\left|q^2 \Rightarrow 3\right|q, \quad \text{which contradicting gcd}(p, q) = 1.\] <p>Therefore \(\sqrt{3}\) is irrational number.</p> <p>(3). \(\sqrt{5}\)</p> <p>Assume \(\sqrt{5}\) is rational:</p> \[\sqrt{5} = \frac{p}{q} \quad \text{gcd}(p, q) = 1\] \[\begin{aligned} 5 = \frac{p^2}{q^2} \Rightarrow 5q^2 = p^2 \end{aligned}\] <p>Based on the lemma, p divdes ab, therefore p divides a or b. since \(\text{gcd}(p, q) = 1\), Therefore</p> \[5 \left| p^2 \Rightarrow 3\right|p\] <p>therefore can be denoted as 3k</p> \[5q^2 = (5k)^2\] \[q^2 = 5k^2 \quad \Rightarrow 5\left|q^2 \Rightarrow 5\right|q, \quad \text{which contradicting gcd}(p, q) = 1.\] <p>Therefore \(\sqrt{5}\) is irrational number.</p> <p>(4). \(\sqrt[3]{3}\)</p> <p>Assume \(\sqrt[3]{3}\) is rational:</p> \[\sqrt[3]{3} = \frac{p}{q} \quad \text{gcd}(p, q) = 1\] \[\begin{aligned} 3 = \frac{p^3}{q^3} \Rightarrow 3q^3 = p^3 \end{aligned}\] <p>Based on the lemma, p divdes ab, therefore p divides a or b. since \(\text{gcd}(p, q) = 1\), Therefore</p> \[3 \left| p^3 \Rightarrow 2\right|p\] <p>therefore p can be denoted as 3k</p> \[3q^3 = (3k)^3\] \[q^3 = 9k^3 \quad \Rightarrow 9\left|q^2 \Rightarrow 9\right|q\] <p>if a number can divides 9, it can also divdes 3, which contradicting with \(\text{gcd}(p,d)=1\).</p> <p>Therefore \(\sqrt[3]{3}\) is irrational number.</p> </li> <li> <p>Prove that \(\sqrt{2} + \sqrt{3}\) and \(\sqrt{2} + \sqrt[3]{2}\) are not rational. (Hint: If e.g. the first of these numbers were equal to a rational number ( r ), then, writing \(\sqrt{3} = r - \sqrt{2}\) and squaring, \(\sqrt{2}\) would be rational.)</p> <p>(1). \(\sqrt{2} + \sqrt{3}\) If \(r = \sqrt{2} + \sqrt{3}\) is rational:</p> \[\sqrt{3} = r - \sqrt{2}, \quad \sqrt{3} \quad \text{is irrational}.\] <p>squaring both side, we have</p> \[\begin{aligned} 3 &amp;= (r - \sqrt{2})^2 \\ 3 &amp;= r^2 - 2r\sqrt{2} + 2 \\ 1 &amp;= r^2 - r\sqrt{2} \\ 1 &amp;= r(r - 2\sqrt{2}) \end{aligned}\] <p>1 is rational number, and we assume r is rational number, by subtracting an irrational number, it is impossible to gain 1. Therefore it contradicts the assumption, r should be irrational.</p> <p>(2). \(\sqrt{2} + \sqrt[3]{2}\)</p> <p>If \(\sqrt{2} + \sqrt[3]{2}\) is rational:</p> </li> <li> <p>Prove that \(\sqrt{2} + \sqrt{3} + \sqrt{5}\) is irrational. Try to make up similar and more general examples.</p> <p>If \(\sqrt{2} + \sqrt{3} + \sqrt{5}\) is rational,</p> \[\begin{aligned} r = \sqrt{2} + \sqrt{3} + \sqrt{5} (r - \sqrt{5}) &amp;= \sqrt{2} + \sqrt{3} \\ (r - \sqrt{5})^2 &amp;= (\sqrt{2} + \sqrt{3})^2 \\ r^2 - 2r\sqrt{5} + 5 &amp;= 2 + 2\sqrt{6} + 3 \\ r^2 &amp;= 2\sqrt{6} + 2\sqrt{5}r \\ 2\sqrt{6} &amp;= r^2 - 2\sqrt{5}r \\ 24 &amp;= r^4 - 6\sqrt{5}r^3 + 20r^2 \\ \end{aligned}\] <p>24 is rational, but it contains \(6(\sqrt{5})\) on the right side, this is absurdly impossible.</p> <p>Therefore, \(\sqrt{2} + \sqrt{3} + \sqrt{5}\) is irrational.</p> </li> <li> <p>Calculate \(\sqrt[3]{2}\) and \(\sqrt[3]{5}\) with an accuracy of at least \(10^{-2}\)</p> <p>By applying Newton’s Method</p> \[\begin{aligned} x &amp;= \sqrt[3]{2} \\ x^3 &amp;= 2 \\ \end{aligned}\] \[f(x) = x^3 - 2\] \[x_1 = x_0 - \frac{f(x_0)}{f'(x_0)}= 1 - \frac{1^3 - 2}{3\cdot 1^2} = 1.33\] \[x_2 = x_1 - \frac{f(x_1)}{f'(x_1)}= 1.33 - \frac{1.33 - 2}{3\cdot (1.33)^2} \approx 1.26\] <p>By using Interval (binary search).</p> \[a &lt; \sqrt[3]{5} &lt; b, \quad a = 1, \quad b = 2\] \[c = \frac{a+b}{2} = 1.5\] \[(1.5)^3 &lt; 5\] <p>Therefore it should be inside interval \(1.5 \sim 2\)</p> \[\frac{1.5 + 2}{2} = 1.75\] \[(1.75)^3 = 5.3579 &gt; 5\] <p>Therefore it should be inside interval \(1.5 \sim 1.75\)</p> \[1.75 + 1.5 = 1.625\] \[(1.625)^3 \approx 4.29 &lt; 5\] <p>Therefore it should be inside interval \(1.625 \sim 1.75\)</p> \[(\frac{1.625 + 1.75}{2})^3 \approx 4.80 &lt; 5\] \[\therefore \text{between } 1.625 \text{ and } 1.75\] </li> <li> <p>Prove that \(1 - q + q^2 - q^3 + q^4 - \cdots = \frac{1}{1 + q}, \quad \text{if} \quad |q| &lt; 1.\)</p> \[\begin{align*} S_n &amp;= 1 - q + q^2 - q^3 + q^4 - \cdots \\ qS_n &amp;= q - q^2 + q^3 - q^4 + \cdots \\ S_n + qS_n &amp;= 1 + (-1)^{n}q^n \to \infty \\ \end{align*}\] <p>\(q^n\) will be 0 if n goes to infinity.</p> \[\begin{align*} S_n(1+q) &amp;= 1 \\ S_n &amp;= \frac{1}{1+q} \end{align*}\] </li> <li> <p>What is the limit of the sequence \(a_1, a_2, a_3, \cdots\), where \(a_n = n/(n + 1)\)? (Hint: Write the expression in the form \(\frac{n}{n + 1} = 1 - \frac{1}{n + 1}\) and observe that the second term tends to zero.)</p> \[\begin{align*} a_n &amp;= \left(\frac{1}{n+1}\right) = 1 - \frac{n+1}{n} \text{, the second term tends to 0} \\ &amp; = 0 \end{align*}\] </li> <li> <p>What is the limit of \(\frac{n^2 + n + 1}{n^2 - n + 1} \quad \text{for} \quad n \to \infty \quad ?\) (Hint: Write the expression in the form \(\frac{1 + \frac{1}{n} + \frac{1}{n^2}}{1 - \frac{1}{n} + \frac{1}{n^2}}\) .)</p> \[\begin{align*} \text{Divide by } n^2 \text{ for all terms,} \\ \frac{1 + \frac{1}{n} + \frac{1}{n^2}}{1 - \frac{1}{n} + \frac{1}{n^2}} &amp; \to 1 \end{align*}\] </li> <li> <p>Prove, for ( |q| &lt; 1 ), that \(1 + 2q + 3q^2 + 4q^3 + \cdots = \frac{1}{(1 - q)^2}.\) (Hint: Use the result of exercise 3 on p. 18.)</p> \[\begin{align} S&amp;=1+2q+3q^2+\qquad\cdots\qquad \qquad+nq^{n-1}\\ qS&amp;=\qquad q+2q^2+3q^3+\cdots +\quad(n-1)q^{n-1}+nq^n \\ \text{Subtracting,}&amp;\\ (1-q)S&amp;=1+\;\ q \ +\ q^2 +\ q^3+\cdots \qquad \qquad +q^{n-1}-nq^n\\ &amp;=\frac {\;\ 1-q^n}{1-q}-nq^n\\ S&amp;=\frac{1-q^n-nq^n(1-q)}{(1-q)^2}\\ &amp;=\frac{1-(n+1)q^n+nq^{n+1}}{(1-q)^2}\qquad \end{align}\] <p>By analyzing the sum, \(\frac{(n+1)q^n}{(1-q)^2}\) and \(\frac{nq^{n+1}}{(1-q)^2}\) tend to 0, and \(\frac{1}{(1-q)^2}\) is the term left.</p> <p>Q.E.D</p> </li> <li> <p>What is the limit of the infinite series \(1 - 2q + 3q^2 - 4q^3 + \cdots \quad ?\)</p> \[\begin{aligned} S_n &amp;= 1 - 2q + 3q^2 - 4q^3 + \cdots \\ qS_n &amp;= q - 2q^2 + 3q^3 - 4q^4 + \cdots \\ (1+q)S_n &amp;= 1 - q + q^2 - q^3 + q^4 - \cdots \\ (1+q)S_n &amp;= 1 + (-1)^{n+1}q^{n+1} \\ (-1)^{n+1}q^{n+1} &amp;\to 0 \quad \quad \text{Therefore,} \\ S_n &amp;= \frac{1}{(1+q)^2} \end{aligned}\] </li> <li> <p>What is the limit of \(\frac{1 + 2 + 3 + \cdots + n}{n^2}, \quad \text{of} \quad \frac{1^2 + 2^2 + \cdots + n^2}{n^2} \quad ?\) (Hint: Use the results of pp. 12, 14, 15.) \(\begin{aligned} S_1 &amp;= \frac{1 + 2 + 3 + \cdots + n}{n^2} = \frac{n(n+1)}{2n^2} = \frac{n+1}{2n} = \frac{1}{2} + \frac{1}{2n} \to \frac{1}{2} \\ S_2 &amp;= \frac{1^2 + 2^2 + \cdots + n^2}{n^3} = \frac{n(n+1)(2n+1)}{6n^3} = \frac{(n+1)(2n+1)}{6n^2} \\ &amp;= \frac{2n^2+3n+1}{6n^2} = \frac{1}{3} + \frac{1}{2n} + \frac{1}{6n^2} \to \frac{1}{3}\\ S_3 &amp;= \frac{1^3 + 2^3 + \cdots + n^3}{n^4} = \left( \frac{n(n+1)}{2n} \right)^2 = \frac{(n+1)^2}{4n^2} = \frac{1}{4} + \frac{1}{2n} + \frac{1}{4n^2} \to \frac{1}{4} \end{aligned}\)</p> </li> <li> <p>Expand the fractions \(\frac{1}{11}\), \(\frac{1}{13}\), \(\frac{2}{13}\), \(\frac{3}{13}\), \(\frac{1}{17}\), \(\frac{2}{17}\) into decimal fractions and determine the period.</p> \[\begin{align*} \frac{1}{11} &amp;= 0.\overline{09}\ldots \quad (\text{Period: } 2) \\ \frac{1}{13} &amp;= 0.\overline{076923}\ldots \quad (\text{Period: } 6) \\ \frac{2}{13} &amp;= 0.\overline{153846}\ldots \quad (\text{Period: } 6) \\ \frac{3}{13} &amp;= 0.\overline{230769}\ldots \quad (\text{Period: } 6) \\ \frac{1}{17} &amp;= 0.\overline{0588235294117647}\ldots \quad (\text{Period: } 16) \\ \frac{2}{17} &amp;= 0.\overline{0.1176470588235294}\ldots \quad (\text{Period: } 16) \end{align*}\] </li> <li> <p>The number 142857 has the property that multiplication with any one of the numbers 2, 3, 4, 5, or 6 produces only a cyclic permutation of its digits. Explain this property, using the expression of \(\frac{1}{7}\) into a decimal fraction.</p> \[\begin{align*} \frac{1}{7} &amp;= 0.\overline{142857} \\ 2 \times \frac{1}{7} &amp;= 0.\overline{285714} \\ 3 \times \frac{1}{7} &amp;= 0.\overline{428571} \\ 4 \times \frac{1}{7} &amp;= 0.\overline{571428} \\ 5 \times \frac{1}{7} &amp;= 0.\overline{714285} \\ 6 \times \frac{1}{7} &amp;= 0.\overline{857142} \end{align*}\] </li> <li> <p>Expand the rational numbers \(\frac{1}{11}\), \(\frac{1}{13}\), \(\frac{2}{13}\), \(\frac{3}{13}\), \(\frac{1}{17}\), \(\frac{2}{17}\) as decimals with base 5, 7, and 12.</p> \[\begin{align*} \frac{1}{11} &amp;= 0.\overline{09}\ldots \quad (\text{Period: } 2) \\ \frac{1}{13} &amp;= 0.\overline{076923}\ldots \quad (\text{Period: } 6) \\ \frac{2}{13} &amp;= 0.\overline{153846}\ldots \quad (\text{Period: } 6) \\ \frac{3}{13} &amp;= 0.\overline{230769}\ldots \quad (\text{Period: } 6) \\ \frac{1}{17} &amp;= 0.\overline{0588235294117647}\ldots \quad (\text{Period: } 16) \\ \frac{2}{17} &amp;= 0.\overline{0.1176470588235294}\ldots \quad (\text{Period: } 16) \end{align*}\] </li> <li> <p>Expand one third as a dyadic number.</p> </li> <li> <p>Write \(.11212121 \cdots\) as a fraction. Find the value of this symbol if it is meant in the systems with the bases 3 or 5. \(\begin{aligned} 0.11212121\cdots &amp;= \frac{1}{10} + 10^{-3} \cdot 12(1 + 10^{-2} + 10^{-4}+\cdots)\\ &amp;= \frac{1}{10} + \frac{12}{1000} \times \frac{1}{1-10^{-2}}\\ &amp;= \frac{1}{10} + \frac{12}{1000} \times \frac{100}{99}\\ &amp;= \frac{111}{990} \end{aligned}\)</p> </li> </ol> <h2 id="the-mathematical-analysis-of-infinity">The mathematical analysis of infinity</h2> <ol> <li> <p>Show that the set of all positive and negative integers is denumerable. Show that the set of all positive and negative rational numbers is denumerable.</p> <p>The set of all natural numbers is denumerable, denoted as \(\mathbb{N}\), and we define the set of all positive and negative integers as \(\mathbb{Z}\), and this is an inifite set.</p> <p>To prove the set \(\mathbb{Z}\) is denumerable, we need to show it is countable by finding the bijection: \(f: \mathbb{Z} \to \mathbb{N}\)</p> \[f(n) = \begin{cases} 3^n &amp; n&gt;0 \\ 7^{-n} &amp; n \leq 0 \end{cases}\] <p>For every integers \(\mathbb{Z}\) inside we could find a one to one mapping to \(\mathbb{N}\), therefore the set \(\mathbb{Z}\) is denumerable.</p> <p>For the set of all positive &amp; negative rational numbers, all can be represented as \(\frac{b}{a}\) where a and b are natural number. We can build this matrix by having a rows and b columns. the nagative rational numbers can be inserted as intermediate.</p> \[\begin{aligned} \frac{1}{1}, -\frac{1}{1}, \frac{1}{2}, -\frac{1}{2}, \ldots\\ \frac{2}{1}, -\frac{2}{1}, \frac{2}{2}, -\frac{2}{2}, \ldots\\ \vdots\\ \frac{n}{1}, -\frac{n}{1}, \frac{n}{2}, -\frac{n}{2}, \ldots\\ \vdots\\ \end{aligned}\] <p>By using <a href="https://human.libretexts.org/Bookshelves/Philosophy/Sets_Logic_Computation_(Zach)/01%3A_I-_Sets_Relations_Functions/1.04%3A_The_Size_of_Sets/1.4.03%3A_Cantors_Zig-Zag_Method">Cantor’s Zig-Zag Method</a>, we can see this set is also countable, therefore it is denumerable.</p> </li> <li> <p>Show that the set \(S + T\) (see p. 110) ia denumerable if S and T are denumerable sets. Show the same for the sum of three, four, or any number, n, of sets, and finally for a set composed of denumerably many denumerable sets.</p> <p>There exist bijections \(f: \mathbb{N} \to S\) and \(g: \mathbb{N} \to T\). Define \(h: \mathbb{N} \to S + T\) by:</p> \[h(n) = \begin{cases} f\left(\frac{n}{2}\right) &amp; \text{if } n \text{ is even} \\ g\left(\frac{n-1}{2}\right) &amp; \text{if } n \text{ is odd} \end{cases}\] <p>h is a bijection, Therefore \(S + T\) is denumerable.</p> <p>Let \(S_1, S_2, \ldots, S_n\) be denumerable sets. To show \(S_1 + S_2 + \cdots + S_n\) is denumerable.</p> <p>There exist bijections \(f_i: \mathbb{N} \to S_i\) for \(i = 1, 2, \ldots, n\).</p> <p>Define \(h: \mathbb{N} \to S_1 + S_2 + \cdots + S_n\) by:</p> \[h(n) =\] <p>h is a bijection, so the sum of n denumerable sets is denumerable.</p> </li> <li> <p>Show that any interval [A, B] of the number axis is equivalent to any other interval \([C, Z]\).</p> <p>Define a function \(f\) to find bijection for end point:</p> \[f(A) = C, f(B) = D\] <p>The function can be defined as to map \([A,B]\) to \([C,D]\):</p> \[f(x) = C + \frac{x-A}{B-A}\cdot (D-C)\] <p>From this we can find x to f(x) is 1 to 1 mapping (bijection).</p> <p>Q.E.D.</p> </li> <li> <p>Prove that the same result holds for a denumerable set of points in the plane, replacing lengths of intervals by areas of squares.</p> <p>We can represent all of the points in a circle by \(\theta\). Measure in radians, \([0, 2\pi]\).</p> <p>Assume the enumerable set of angles is given by,</p> \[\begin{align*} \theta_1 &amp;= 0.a_1b_1a_2a_3a_4 \ldots \\ \theta_2 &amp;= 0.b_1b_2b_3b_4 \ldots \\ &amp; \vdots \\ \theta_n &amp;= 0.n_1n_2n_3 \ldots \end{align*}\] <p>Then we can construct a new angle \(\Theta_i\) by using digits along the diagonal, \(\Theta_i = A_1b_2C_3 \ldots\)</p> <p>Which is also within \([0, 2\pi]\) and it contradicts the assumption.</p> </li> <li> <p>If A contains n elements, where n is a positive integer, show that B, defined as above, contains \(2^n\) elements. If A consists of the set of all positive integers, show that B is equivalent to the continuum of real numbers from 0 to 1, (Hint: Symbolize a subset of A in the first case by a finite and in the second case by an infinite sequence of the symbols 0 and 1</p> </li> </ol> <h2 id="complex-numbers">Complex Numbers</h2> <ol> <li> <p>Express \(\frac{(1+i)(2+i)(3+i)}{(1-i)}\) in the form \(a + bi\).</p> \[\begin{align*} \frac{(1+i)(2+i)(3+i)}{(1-i)} &amp; = \frac{(1+2i+i^2)(2+i)(3+i)}{(1-i)(1+i)} \\ &amp; = \frac{(1+2i+i^2)(2+i)(3+i)}{1 - i^2} \\ &amp; = i(2+i)(3+i) \\ &amp; = (2i+i^2)(3+i) \\ &amp; = (-1+2i)(3+i) \\ &amp; = -3-i+6i+2i^2 \\ &amp; = -5+5i \end{align*}\] </li> <li> <p>Express \(\left( -\frac{1}{2} + i \frac{\sqrt{3}}{2} \right)^3\) in the form \(a + bi\).</p> \[\begin{align*} \left(-\frac{1}{2} + i \frac{\sqrt{3}}{2}\right)^3 &amp; = \left(-\frac{1}{2} + i \frac{\sqrt{3}}{2}\right)\left(-\frac{1}{2} + i \frac{\sqrt{3}}{2}\right)^2 \\ &amp; = \left(-\frac{1}{2} + i \frac{\sqrt{3}}{2}\right) \left(\frac{1}{4} + 2\cdot(-\frac{1}{2})\cdot(\frac{\sqrt{3}}{2})i + \frac{3}{4}i^2\right) \\ &amp; = \left(-\frac{1}{2} + i \frac{\sqrt{3}}{2}\right) \left(-\frac{1}{2} - \frac{\sqrt{3}}{2}i\right) \\ &amp; = \frac{1}{4} + \frac{\sqrt{3}}{4}i - \frac{\sqrt{3}}{4}i - \frac{3}{4}i^2\\ &amp; = 1 \\ \end{align*}\] </li> <li> <p>Express in the form \(a + bi\): \(\frac{1+i}{1-i}, \quad \frac{1+i}{2-i}, \quad \frac{1}{i^5}, \quad \frac{1}{(-2+i)(1-3i)}, \quad \frac{(4-5i)^2}{(2-3i)^2}\)</p> \[\begin{align*} \frac{1+i}{1-i} &amp; = \frac{(1+i)^2}{1^2-i^2} \\ &amp; = \frac{1+2i+i^2}{2} \\ &amp; = 1 \end{align*}\] \[\begin{align*} \frac{1+i}{2-i} &amp; = \frac{(1+i)(2+i)}{(2-i)(2+i)} \\ &amp; = \frac{2+i+2i+2^2}{4-i^2}\\ &amp; = \frac{1+3i}{5} \\ &amp; = \frac{1}{5} + \frac{3}{5}i \end{align*}\] \[\begin{align*} \frac{1}{i^5} &amp; = \frac{1}{i^2\cdot i^2\cdot i} \\ &amp; = -i \end{align*}\] \[\begin{align*} \frac{1}{(-2+i)(1-3i)} &amp; = \frac{1}{-2+6i+i-3i^2} \\ &amp; = \frac{1-7i}{(1+7i)(1-7i)} \\ &amp; = \frac{1-7i}{1-49i^2} \\ &amp; = \frac{1}{50} - \frac{7}{50}i\\ \end{align*}\] \[\begin{align*} \frac{(4-5i)^2}{(2-3i)^2} &amp; = \frac{16-40i+25i^2}{4-6i-6i+9i^2} \\ &amp; = \frac{-9-40i}{-5-12i} \\ &amp; = \frac{(-9-40i)(-5+12i)}{(-5-12i)(-5+12i)} \\ &amp; = \frac{45-108i+200i-480i^2}{144+25} \\ &amp; = \frac{525+92i}{169} \end{align*}\] </li> <li> <p>Calculate \(\sqrt{5 + 12i}\). (Hint: Write \(\sqrt{5 + 12i} = x + yi\), square, and equate real and imaginary parts.)</p> \[\begin{align*} \sqrt{5 + 12i} &amp;= x + yi \\ 5 + 12i &amp;= x^2 + y^2 + 2xyi \\ 5 &amp;= x^2 - y^2 \\ 12 &amp;= 2xy \\ x^2 - \left(\frac{6}{x}\right)^2 &amp;= 5 \\ x^2 - \frac{36}{x^2} &amp;= 5 \implies x^4 - 36 = 5x^2 \\ \text{substitute} x^2 = t \\ t^2 - 5t - 36 &amp;= 0 \\ t &amp;= -4 \quad \text{or} \quad t = 9 \\ x &amp;= \pm 3 \quad y = \pm 2 \end{align*}\] <p>Therefore, \(\sqrt{5 + 12i} = 3 + 2i \quad \text{or} \quad \sqrt{5 + 12i} = -3 - 2i\)</p> </li> <li> <p>Prove this theorem that directly from the definition of multiplication of two complex numbers, \(z_1=x_1+y_1i\) and \(z_2=x_2+y_2i\).</p> <p>Theorem: \(\begin{aligned} |z_1 \cdot z_2| = |z_1| \cdot |z_2| \end{aligned}\).</p> \[\begin{aligned} |z_1 \cdot z_2| &amp;= |(x_1 + y_1i) \cdot (x_2 + y_2i)| \\ z_1 \cdot z_2 &amp;= x_1 x_2 - y_1 y_2 + (x_1 y_2 + x_2 y_1)i \\ |z_1 z_2| &amp;= \sqrt{(x_1 x_2 - y_1 y_2)^2 + (x_1 y_2 + x_2 y_1)^2} \\ &amp;= \sqrt{x_1^2 x_2^2 + x_1^2 y_2^2 + y_1^2 x_2^2 + y_1^2 y_2^2} \\ |z_1| &amp;= \sqrt{x_1^2 + y_1^2} \\ |z_2| &amp;= \sqrt{x_2^2 + y_2^2} \\ |z_1| \cdot |z_2| &amp;= \sqrt{x_1^2 + y_1^2} \cdot \sqrt{x_2^2 + y_2^2} \\ &amp;= \sqrt{(x_1^2 + y_1^2)(x_2^2 + y_2^2)} \\ &amp;= \sqrt{x_1^2 x_2^2 + x_1^2 y_2^2 + y_1^2 x_2^2 + y_1^2 y_2^2} \\ \therefore |z_1 \cdot z_2| &amp;= |z_1| \cdot |z_2| \end{aligned}\] </li> <li> <p>From the fact that the product of two real numbers is 0 only if one of the factors is 0, prove the corresponding theorem for complex numbers. (Hint: Use the two theorems just stated.)</p> \[\begin{aligned} z_1 \cdot z_2 &amp;= (x_1 + y_1 i) (x_2 + y_2 i)\\ &amp;= (x_1 x_2 - y_1 y_2) + (x_1 y_2 + x_2 y_1)i &amp;= 0 \end{aligned}\] \[\begin{aligned} = \begin{cases} x_1 x_2 - y_1 y_2 = 0 &amp; \quad (1) \\ x_1 y_2 + x_2 y_1 = 0 &amp; \quad (2) \end{cases} \end{aligned}\] <p>(1) implies that \(x_1 x_2 = y_1 y_2\). Either \(x_1 = 0\) or \(x_2 = 0\). and for \(y_1 = 0\) or \(y_2 = 0\).</p> <p>(2) implies that \(x_1 y_2 = - x_2 y_1\). Then \(x_1 = 0\) or \(y_2 = 0\). and for \(x_2 = 0\) or \(y_1 = 0\).</p> <p>Combine all of the situations together:</p> <p>Either \(x_1 = 0\) and \(y_1 = 0\) or \(x_2 = 0\) and \(y_2 = 0\)</p> </li> <li> <p>When does the equality \(|z_1 + z_2| = |z_1| + |z_2|\) hold?</p> \[\begin{aligned} |z_1 + z_2| &amp;= |(x_1 + y_1i) + (x_2 + y_2i)| \\ &amp;= |(x_1 + x_2) + (y_1 + y_2)i| \\ &amp;= \sqrt{(x_1 + x_2)^2 + (y_1 + y_2)^2} \end{aligned}\] \[\begin{aligned} |z_1| + |z_2| &amp;= \sqrt{(x_1 + y_1)^2} + \sqrt{(x_2 + y_2)^2} \end{aligned}\] <p>In order to have these 2 equality hold, it requires \(x_1=x_2=y_1=y_2\), the intuition is that the sum of the other two sides of a triangle is equal to the hypotenuse if and only if it is an equilateral triangle.</p> </li> <li> <p>Find the corresponding formulas for \(\sin 4\phi\) and \(\cos 4\phi\).</p> \[(a + b i)^4 = a^4 + 4a^3b i + 6a^2b^2 +4ab^3 + b^4\] <p>Obtaining:</p> \[\begin{aligned} (\cos\phi + \sin\phi i)^4 &amp;= \cos^4 \phi + 4 \cos^3 \phi \sin \phi i + 6\cos^2\phi\sin^2\phi i^2 + 4\cos \phi\sin^3\phi i^3 + \sin^4\phi i^4 \\ &amp;= \cos^4 \phi + \sin^4\phi - 6\cos^2\phi\sin^2\phi + (4 \cos^3 \phi \sin \phi - 4\cos \phi\sin^3\phi) i \end{aligned}\] <p>Therefore,</p> \[\begin{aligned} \cos 4\phi &amp;= \cos^4\phi + (1-\cos^2\phi)^2 - 6\cos^2\phi(1-\cos^2\phi)\\ \sin 4\phi &amp;= 4(1-\sin^2\phi)^{\frac{3}{2}}\sin\phi - 4\sqrt{1-\sin^2\phi}\sin^3\phi\\ \end{aligned}\] </li> <li> <p>Prove that for a point, \(z = \cos \phi + i \sin \phi\), on the unit circle, \(\frac{1}{z} = \cos \phi - i \sin \phi\).</p> \[\begin{aligned} \frac{1}{z} &amp;= \frac{1}{\cos \phi + i \sin \phi} \\ &amp;= \cos \phi - i \sin \phi \end{aligned}\] \[\begin{aligned} 1 &amp;= (\cos \phi - \sin \phi)(\cos \phi + \sin\phi) \\ \end{aligned}\] </li> <li> <p>Prove without calculation that \(\frac{(a + bi)}{(a - bi)}\) always has the absolute value 1.</p> <p>The expression we are interested in is</p> \[\frac{a + bi}{a - bi},\] <p>which can be rewritten in terms of \(z\) and conjugate \(\bar{z}\):</p> \[\frac{a + bi}{a - bi} = \frac{z}{\bar{z}}.\] <p>To find the magnitude of this expression, we use the property of magnitudes for complex numbers:</p> \[\left|\frac{z}{\bar{z}}\right| = \frac{|z|}{|\bar{z}|}.\] <p>Since the modulo is the same, therefore it always has the solute value of 1 by calculating \(\frac{(a + bi)}{(a - bi)}\).</p> </li> <li> <p>If \(z_1\) and \(z_2\) are two complex numbers, prove that the angle of \(z_1 - z_2\) is equal to the angle between the real axis and the vector pointing from \(z_2\) to \(z_1\).</p> <p>Let \(z_1 = x_1 + iy_1\) and \(z_2 = x_2 + iy_2\) be two complex number. In the complex plane, \(z_1\) and \(z_2\) can be represented as points \((x_1, y_1)\) and \((x_2, y_2)\), respectively.</p> <p>The difference \(z_1 - z_2\) is given by:</p> \[z_1 - z_2 = (x_1 - x_2) + i(y_1 - y_2).\] <p>This difference represents the vector from \(z_2\) to \(z_1\) in the complex plane.</p> <p>To find the angle of \(z_1 - z_2\) is given by \(\arg(z) = \theta\), where:</p> \[\arg(z_1 - z_2) = \tan^{-1} \left( \frac{y_1 - y_2}{x_1 - x_2} \right).\] <p>Now, let’s consider the vector pointing from \(z_2\) to \((z_1\). In Cartesian coordinates, this vector is also:</p> \[(x_1 - x_2, y_1 - y_2).\] <p>The angle between this vector and the positive real axis (the x-axis) is given by the same expression: \(\theta = \tan^{-1} \left( \frac{y_1 - y_2}{x_1 - x_2} \right).\)</p> <p>Thus, the angle of the complex number \(z_1 - z_2\) is exactly the angle between the real axis and the vector pointing from \(z_2\) to \(z_1\).</p> </li> <li> <p>Interpret the angle of the complex number \(\frac{(z_1 - z_2)}{(z_1 - z_3)}\) in the triangle formed by the points \(z_1\), \(z_2\), and \(z_3\).</p> <p>\(z_1 - z_2\) represents the complex number corresponding to the vector from \(z_2\) to \(z_1\) and \(z_1 - z_3\) represents the complex number corresponding to the vector from \(z_3\) to \(z_1\).</p> <p>Dividing two complex numbers \(\frac{z_1 - z_2}{z_1 - z_3}\) gives a new complex number whose magnitude is the ratio of the magnitudes of the two complex numbers and whose argument (angle) is the difference of their arguments. Let \(\theta_{12} = \arg(z_1 - z_2)\), which is the angle that the vector from \(z_2\) to \(z_1\) makes with the positive real axis. Let \(\theta_{13} = \arg(z_1 - z_3)\), which is the angle that the vector from \(z_3\) to \(z_1\) makes with the positive real axis.</p> <p>The argument of the quotient \(\frac{(z_1 - z_2)}{(z_1 - z_3)}\) is \(\theta_{12} - \theta_{13}\).</p> <p>In geometric terms:</p> <ul> <li> <p>If you start from the vector \(\overline{z_1z_3}\) and rotate counterclockwise by an angle \(\theta_{12} - \theta_{13}\), you will align with the vector \(\overline{z_1z_2}\).</p> </li> <li> <p>Thus, the complex number \(\frac{(z_1 - z_2)}{(z_1 - z_3)}\) gives a complex number whose argument represents the oriented angle between the directed line segments from \(z_1\) to \(z_3\) and from \(z_1\) to \(z_2\).</p> </li> </ul> </li> <li> <p>Prove that the quotient of two complex numbers with the same angle is real.</p> <p>If two complex numbers \(z_1\) and \(z_2\) have the same angle, then the argument (angle) of \(z_1\) is equal to the argument of \(z_2\). We can express these complex numbers in polar form:</p> \[z_1 = \rho _1 e^{i\theta}\] \[z_2 = \rho _2 e^{i\theta}\] <p>where \(\rho _1\) and \(\rho _2\) are the magnitudes of \(z_1\) and \(z_2\), respectively, and \(\theta\) is their common angle.</p> <p>The quotient of \(z_1\) and \(z_2\) is given by:</p> \[\begin{aligned} \frac{z_1}{z_2} &amp;= \frac{\rho _1 e^{i\theta}}{\rho _2 e^{i\theta}} \\ &amp;= \frac{\rho _1}{\rho _2} e^0 \\ &amp;= \frac{\rho _1}{\rho _2} \end{aligned}\] <p>Q.E.D.</p> </li> <li> <p>Prove that if for four complex numbers \(z_1, z_2, z_3, z_4\) the angles of \(\frac{z_3 - z_1}{z_3 - z_2}\) and \(\frac{z_4 - z_1}{z_4 - z_2}\) are the same, then the four numbers lie on a circle or on a straight line, and conversely.</p> <p>The solution is adapted from: <a href="https://math.stackexchange.com/posts/805047/edit">math exchange</a></p> <p>First of all, based on the prove on exercise 12,</p> \[\arg\left(\frac{z_4-z_1}{z_4-z_2}\right)\] <p>represents the angle \(\angle Z_2 Z_4 Z_1\). Similarly</p> \[\arg\left(\frac{z_3-z_1}{z_3-z_2}\right)\] <p>represents the angle \(\angle Z_2 Z_3 Z_1\).</p> <p>This can be seen as 4 points to be <a href="http://en.wikipedia.org/wiki/Inscribed_angle_theorem#Theorem">concyclic</a></p> <p>The \(A\) and \(B\) in the wikipedia graphic are your \(z_1\) and \(z_2\).</p> <p>If the 4 lines lies in a straight line then the angle is 0, which is a special case.</p> <p>Q.E.D.</p> </li> <li> <p>Prove that four points \(z_1, z_2, z_3, z_4\) lie on a circle or on a straight line if and only if \(\frac{z_3 - z_1}{z_3 - z_2} = \frac{z_4 - z_1}{z_4 - z_2}\)</p> <p>Proved above.</p> </li> <li> <p>Find the 6th roots of 1.</p> \[x^6 = 1\] <p>Based on De Moivre’s theorem, for unit circle:</p> \[z^n = (\cos \phi + i \sin \phi)^n = \cos(n \phi) + i \sin(n \phi)\] \[z^6 = 1 = \cos 0 + i \sin 0\] \[\begin{cases} \cos n \phi = 1 \\ \sin n \phi = 0 \end{cases} \Rightarrow \phi = \frac{2k\pi}{n} = \frac{k\pi}{3}, k \in \{1, 2, 3, 4, 5, 6\}\] \[z = \begin{cases} \cos \frac{\pi}{3} + i \sin \frac{\pi}{3} = \frac{1}{2} + i \frac{\sqrt{3}}{2} &amp; k=1 \\ \cos \frac{2\pi}{3} + i \sin \frac{2\pi}{3} = -\frac{1}{2} + i \frac{\sqrt{3}}{2} &amp; k=2 \\ \cos \pi + i \sin \pi = -1 &amp; k=3 \\ \cos \frac{4\pi}{3} + i \sin \frac{4\pi}{3} = -\frac{1}{2} - i \frac{\sqrt{3}}{2} &amp; k=4 \\ \cos \frac{5\pi}{3} + i \sin \frac{5\pi}{3} = \frac{1}{2} - i \frac{\sqrt{3}}{2} &amp; k=5 \\ \cos 2\pi + i \sin 2\pi = 1 &amp; k=6 \\ \end{cases}\] </li> <li> <p>Find \((1 + i)^{11}\).</p> \[1+i = \sqrt{2} (\cos \frac{\pi}{4} + i \sin \frac{\pi}{4})\] \[\begin{aligned} (1+i)^{11} &amp;= (\sqrt{2})^{11} \left[ \cos \frac{11\pi}{4} + i \sin \frac{11\pi}{4} \right] \\ &amp;= 32 \sqrt{2} \left[ \cos \frac{3\pi}{4} + i \sin \frac{3\pi}{4} \right] \\ &amp;= 32 \sqrt{2} \left[ -\frac{1}{\sqrt{2}} + i \frac{1}{\sqrt{2}} \right] \\ &amp;= -32 + 32i \end{aligned}\] </li> <li> <p>Find all the different values of \(\sqrt[3]{1 + i}\), \(\sqrt[3]{7 - 4i}\), \(\sqrt[3]{i}\), \(\sqrt[3]{-i}\).</p> <p>(1).</p> \[1+i = \sqrt{2} (\cos \frac{\pi}{4} + i \sin \frac{\pi}{4})\] \[\sqrt{1+i} = \sqrt[4]{2} (\cos\frac{\pi}{8} + i \sin \frac{\pi}{8})\] <p>(2).</p> \[\sqrt[3]{7-4i} = \sqrt[6]{65} \{\cos [\tan^{-1}(\frac{-4}{7})] + i \sin [\tan^{-1}(\frac{-4}{7})]\}\] <p>(3).</p> \[i = \cos \phi + i \sin \phi \quad \phi = \frac{\pi}{2} + 2k\pi\] \[i^{1/3} = \cos \left( \frac{\pi}{6} + \frac{2k\pi}{3} \right) + i \sin \left( \frac{\pi}{6} + \frac{2k\pi}{3} \right), \quad k = 0, 1, 2\] \[\sqrt[3]{i} = \frac{i}{2} + \frac{\sqrt{3}}{2} \quad \text{or} \quad -i \quad \text{or} \quad \frac{i}{2} - \frac{\sqrt{3}}{2}\] <p>(4).</p> \[-i = \cos \phi + i \sin \phi \quad \phi = -\frac{\pi}{2} + 2k\pi, \quad k = 0, 1, 2, 3, 4\] \[-i^{1/5} = \cos \left( -\frac{\pi}{10} + \frac{2k\pi}{5} \right) + i \sin \left( -\frac{\pi}{10} + \frac{2k\pi}{5} \right)\] </li> <li> <p>Calculate \(\frac{1}{2i} (i^7 - i^{-7})\).</p> \[i^7 = i^4 \cdot i^3 = (i^2)^2 \cdot i^3 = i^3 = -i\] \[i^{-7} = (-i)^7 = (-i)^4\cdot(-i)^3 = (-i)^3 = i\] <p>Therefore</p> \[\frac{1}{2i} (-i - i) = \frac{1}{2i}(-2i)=-1\] </li> </ol> ]]></content><author><name></name></author><category term="math"/><summary type="html"><![CDATA[Before the solutions :) The solution presented on the blog is my personal solutions for the exercises in the book ‘What is Mathematics: An Elementary Approach To Ideas And Methods’ by Herbert Robbins and Richard Courant, please leave a comment if you spot any mistakes or you have questions on the solution. Thanks in advance!]]></summary></entry><entry><title type="html">What is Mathematics: Solution Chapter 1</title><link href="https://paranoiarchive.com//blog/2024/What-is-Mathematics-CH1-Solution/" rel="alternate" type="text/html" title="What is Mathematics: Solution Chapter 1"/><published>2024-01-29T00:00:00+00:00</published><updated>2024-01-29T00:00:00+00:00</updated><id>https://paranoiarchive.com//blog/2024/What-is-Mathematics-CH1-Solution</id><content type="html" xml:base="https://paranoiarchive.com//blog/2024/What-is-Mathematics-CH1-Solution/"><![CDATA[<h2 id="before-the-solutions-">Before the solutions :)</h2> <p>The solution presented on the blog is my personal solutions for the exercises in the book ‘What is Mathematics: An Elementary Approach To Ideas And Methods’ by Herbert Robbins and Richard Courant, please leave a comment if you spot any mistakes or you have questions on the solution. Thanks in advance!</p> <h2 id="calculation-with-integers">Calculation with Integers</h2> <ol> <li> <p>Set up the addition and multiplication tables in the duodecimal system and work some examples of the same sort.</p> <p>The duodecimal system (also known as base 12 or dozenal) is the number system with a base of twelve.</p> \[\begin{aligned} &amp; \text {Table 1.1. Addition table of Duodecimal }\\ &amp; \begin{array}{c|cccccccccccc} &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B \\ \hline 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; 10 \\ 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; 10 &amp; 11 \\ 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; 10 &amp; 11 &amp; 12 \\ 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\ 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 \\ 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 \\ 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 &amp; 16 \\ 8 &amp; 9 &amp; A &amp; B &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 &amp; 16 &amp; 17 \\ 9 &amp; A &amp; B &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 &amp; 16 &amp; 17 &amp; 18 \\ A &amp; B &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 &amp; 16 &amp; 17 &amp; 18 &amp; 19 \\ B &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 &amp; 16 &amp; 17 &amp; 18 &amp; 19 &amp; 1A \\ \end{array} \end{aligned}\] \[\begin{aligned} &amp; \text{Table 1.2. Multiplication Table} \\\ &amp; \begin{array}{c|cccccccccccc} &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B \\ \hline 1 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B \\ 2 &amp; 2 &amp; 4 &amp; 6 &amp; 8 &amp; A &amp; 10 &amp; 12 &amp; 14 &amp; 16 &amp; 18 &amp; 1A \\ 3 &amp; 3 &amp; 6 &amp; 9 &amp; 10 &amp; 13 &amp; 16 &amp; 19 &amp; 20 &amp; 23 &amp; 26 &amp; 29 \\ 4 &amp; 4 &amp; 8 &amp; 10 &amp; 14 &amp; 18 &amp; 20 &amp; 24 &amp; 28 &amp; 30 &amp; 34 &amp; 38 \\ 5 &amp; 5 &amp; A &amp; 15 &amp; 18 &amp; 21 &amp; 26 &amp; 2B &amp; 34 &amp; 39 &amp; 42 &amp; 47 \\ 6 &amp; 6 &amp; 10 &amp; 16 &amp; 20 &amp; 26 &amp; 30 &amp; 36 &amp; 40 &amp; 46 &amp; 50 &amp; 56 \\ 7 &amp; 7 &amp; 12 &amp; 19 &amp; 24 &amp; 2B &amp; 36 &amp; 41 &amp; 48 &amp; 53 &amp; 5A &amp; 65 \\ 8 &amp; 8 &amp; 14 &amp; 20 &amp; 28 &amp; 34 &amp; 40 &amp; 48 &amp; 54 &amp; 60 &amp; 68 &amp; 74 \\ 9 &amp; 9 &amp; 16 &amp; 23 &amp; 30 &amp; 39 &amp; 46 &amp; 53 &amp; 60 &amp; 69 &amp; 76 &amp; 83 \\ A &amp; A &amp; 18 &amp; 26 &amp; 34 &amp; 42 &amp; 50 &amp; 5A &amp; 68 &amp; 76 &amp; 84 &amp; 92 \\ B &amp; B &amp; 1A &amp; 29 &amp; 38 &amp; 47 &amp; 56 &amp; 65 &amp; 74 &amp; 83 &amp; 92 &amp; A1 \\ \end{array} \end{aligned}\] </li> <li> <p>Express ‘thirty’ and ‘one hundred and thirty-three’ in the systems with the bases 5, 7, 11, 12.</p> \[\\ \begin{aligned} &amp; \text{base 5:} &amp; \quad 110, \quad 1013 \\ &amp; \text{base 7:} &amp; \quad 42, \quad 245 \\ &amp; \text{base 11:} &amp; \quad 28, \quad 10A \\ &amp; \text{base 12:} &amp; \quad 26, \quad B1 \\ \end{aligned} \\\] </li> <li> <p>What do the symbols 11111 and 21212 mean in these systems.</p> \[\\ \begin{aligned} &amp;\text{Converting } 11111 \text{ from various bases to decimal:} \\ &amp;\text{Base 5:} \\ &amp;11111_5 = 1 \cdot 5^4 + 1 \cdot 5^3 + 1 \cdot 5^2 + 1 \cdot 5^1 + 1 \cdot 5^0 \\ &amp;11111_5 = 1 \cdot 625 + 1 \cdot 125 + 1 \cdot 25 + 1 \cdot 5 + 1 \cdot 1 = 625 + 125 + 25 + 5 + 1 = 781 \\[10pt] &amp;\text{Base 7:} \\ &amp;11111_7 = 1 \cdot 7^4 + 1 \cdot 7^3 + 1 \cdot 7^2 + 1 \cdot 7^1 + 1 \cdot 7^0 \\ &amp;11111_7 = 1 \cdot 2401 + 1 \cdot 343 + 1 \cdot 49 + 1 \cdot 7 + 1 \cdot 1 = 2401 + 343 + 49 + 7 + 1 = 2801 \\[10pt] &amp;\text{Base 11:} \\ &amp;11111_{11} = 1 \cdot 11^4 + 1 \cdot 11^3 + 1 \cdot 11^2 + 1 \cdot 11^1 + 1 \cdot 11^0 \\ &amp;11111_{11} = 1 \cdot 14641 + 1 \cdot 1331 + 1 \cdot 121 + 1 \cdot 11 + 1 \cdot 1 = 14641 + 1331 + 121 + 11 + 1 = 16105 \\[10pt] &amp;\text{Base 12:} \\ &amp;11111_{12} = 1 \cdot 12^4 + 1 \cdot 12^3 + 1 \cdot 12^2 + 1 \cdot 12^1 + 1 \cdot 12^0 \\ &amp;11111_{12} = 1 \cdot 20736 + 1 \cdot 1728 + 1 \cdot 144 + 1 \cdot 12 + 1 \cdot 1 = 20736 + 1728 + 144 + 12 + 1 = 22621 \\[20pt] &amp;\text{Converting } 21212 \text{ from various bases to decimal:} \\ &amp;\text{Base 5:} \\ &amp;21212_5 = 2 \cdot 5^4 + 1 \cdot 5^3 + 2 \cdot 5^2 + 1 \cdot 5^1 + 2 \cdot 5^0 \\ &amp;21212_5 = 2 \cdot 625 + 1 \cdot 125 + 2 \cdot 25 + 1 \cdot 5 + 2 \cdot 1 = 1250 + 125 + 50 + 5 + 2 = 1432 \\[10pt] &amp;\text{Base 7:} \\ &amp;21212_7 = 2 \cdot 7^4 + 1 \cdot 7^3 + 2 \cdot 7^2 + 1 \cdot 7^1 + 2 \cdot 7^0 \\ &amp;21212_7 = 2 \cdot 2401 + 1 \cdot 343 + 2 \cdot 49 + 1 \cdot 7 + 2 \cdot 1 = 4802 + 343 + 98 + 7 + 2 = 5252 \\[10pt] &amp;\text{Base 11:} \\ &amp;21212_{11} = 2 \cdot 11^4 + 1 \cdot 11^3 + 2 \cdot 11^2 + 1 \cdot 11^1 + 2 \cdot 11^0 \\ &amp;21212_{11} = 2 \cdot 14641 + 1 \cdot 1331 + 2 \cdot 121 + 1 \cdot 11 + 2 \cdot 1 = 29282 + 1331 + 242 + 11 + 2 = 30868 \\[10pt] &amp;\text{Base 12:} \\ &amp;21212_{12} = 2 \cdot 12^4 + 1 \cdot 12^3 + 2 \cdot 12^2 + 1 \cdot 12^1 + 2 \cdot 12^0 \\ &amp;21212_{12} = 2 \cdot 20736 + 1 \cdot 1728 + 2 \cdot 144 + 1 \cdot 12 + 2 \cdot 1 = 41472 + 1728 + 288 + 12 + 2 = 43502 \\[20pt] \end{aligned} \\\] \[\\ \begin{aligned} &amp;\text{Summary of conversions:} \\[10pt] &amp;\begin{array}{|c|c|c|} \hline \text{Number} &amp; \text{Base} &amp; \text{Decimal Equivalent} \\ \hline 11111 &amp; 5 &amp; 781 \\ 11111 &amp; 7 &amp; 2801 \\ 11111 &amp; 11 &amp; 16105 \\ 11111 &amp; 12 &amp; 22621 \\ \hline 21212 &amp; 5 &amp; 1432 \\ 21212 &amp; 7 &amp; 5252 \\ 21212 &amp; 11 &amp; 30868 \\ 21212 &amp; 12 &amp; 43502 \\ \hline \end{array} \end{aligned}\] </li> <li> <p>Form the addition and multiplication tables for the bases 5, 11, 13.</p> \[\begin{aligned} &amp; \text{Table 1.3. Addition Table of Base 5} \\ &amp; \begin{array}{c|ccccc} &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ \hline 0 &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 1 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 10 \\ 2 &amp; 2 &amp; 3 &amp; 4 &amp; 10 &amp; 11 \\ 3 &amp; 3 &amp; 4 &amp; 10 &amp; 11 &amp; 12 \\ 4 &amp; 4 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\ \end{array} \end{aligned} \begin{aligned} &amp; \text{Table 1.4. Multiplication Table of Base 5} \\ &amp; \begin{array}{c|ccccc} &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ \hline 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 \\ 1 &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 \\ 2 &amp; 0 &amp; 2 &amp; 4 &amp; 11 &amp; 13 \\ 3 &amp; 0 &amp; 3 &amp; 11 &amp; 14 &amp; 22 \\ 4 &amp; 0 &amp; 4 &amp; 13 &amp; 22 &amp; 31 \\ \end{array} \end{aligned}\] \[\\ \begin{aligned} &amp; \text{Table 1.5. Addition Table: Base 11} \\ &amp; \begin{array}{c|ccccccccccc} &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A \\ \hline 0 &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A \\ 1 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; 10 \\ 2 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; 10 &amp; 11 \\ 3 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; 10 &amp; 11 &amp; 12 \\ 4 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\ 5 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 \\ 6 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 \\ 7 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 &amp; 16 \\ 8 &amp; 8 &amp; 9 &amp; A &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 &amp; 16 &amp; 17 \\ 9 &amp; 9 &amp; A &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 &amp; 16 &amp; 17 &amp; 18 \\ A &amp; A &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 &amp; 16 &amp; 17 &amp; 18 &amp; 19 \\ \end{array} \end{aligned} \\\] \[\\ \begin{aligned} &amp; \text{Table 1.6. Multiplication Table: Base 11} \\ &amp; \begin{array}{c|ccccccccccc} &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A \\ \hline 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 \\ 1 &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A \\ 2 &amp; 0 &amp; 2 &amp; 4 &amp; 6 &amp; 8 &amp; A &amp; 11 &amp; 13 &amp; 15 &amp; 17 &amp; 19 \\ 3 &amp; 0 &amp; 3 &amp; 6 &amp; 9 &amp; 11 &amp; 14 &amp; 17 &amp; 1A &amp; 22 &amp; 25 &amp; 28 \\ 4 &amp; 0 &amp; 4 &amp; 8 &amp; 11 &amp; 15 &amp; 19 &amp; 22 &amp; 26 &amp; 2A &amp; 33 &amp; 37 \\ 5 &amp; 0 &amp; 5 &amp; A &amp; 14 &amp; 19 &amp; 23 &amp; 28 &amp; 32 &amp; 37 &amp; 41 &amp; 46 \\ 6 &amp; 0 &amp; 6 &amp; 11 &amp; 17 &amp; 22 &amp; 28 &amp; 33 &amp; 39 &amp; 44 &amp; 4A &amp; 55 \\ 7 &amp; 0 &amp; 7 &amp; 13 &amp; 1A &amp; 26 &amp; 32 &amp; 39 &amp; 45 &amp; 51 &amp; 58 &amp; 64 \\ 8 &amp; 0 &amp; 8 &amp; 15 &amp; 22 &amp; 2A &amp; 37 &amp; 44 &amp; 51 &amp; 59 &amp; 66 &amp; 73 \\ 9 &amp; 0 &amp; 9 &amp; 17 &amp; 25 &amp; 33 &amp; 41 &amp; 4A &amp; 58 &amp; 66 &amp; 74 &amp; 82 \\ A &amp; 0 &amp; A &amp; 19 &amp; 28 &amp; 37 &amp; 46 &amp; 55 &amp; 64 &amp; 73 &amp; 82 &amp; 91 \\ \end{array} \end{aligned} \\\] \[\\ \begin{aligned} &amp; \text{Table 1.7. Addition Table: Base 13} \\ &amp; \begin{array}{c|ccccccccccccc} &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; C \\ \hline 0 &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; C \\ 1 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; C &amp; 10 \\ 2 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; C &amp; 10 &amp; 11 \\ 3 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; C &amp; 10 &amp; 11 &amp; 12 \\ 4 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; C &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\ 5 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; C &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 \\ 6 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; C &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 \\ 7 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; C &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 &amp; 16 \\ 8 &amp; 8 &amp; 9 &amp; A &amp; B &amp; C &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 &amp; 16 &amp; 17 \\ 9 &amp; 9 &amp; A &amp; B &amp; C &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 &amp; 16 &amp; 17 &amp; 18 \\ A &amp; A &amp; B &amp; C &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 &amp; 16 &amp; 17 &amp; 18 &amp; 19 \\ B &amp; B &amp; C &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 &amp; 16 &amp; 17 &amp; 18 &amp; 19 &amp; 1A \\ C &amp; C &amp; 10 &amp; 11 &amp; 12 &amp; 13 &amp; 14 &amp; 15 &amp; 16 &amp; 17 &amp; 18 &amp; 19 &amp; 1A &amp; 1B \\ \end{array} \end{aligned} \\\] \[\\ \begin{aligned} &amp; \text{Table 1.8. Multiplication Table: Base 13} \\ &amp; \begin{array}{c|ccccccccccccc} &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; C \\ \hline 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 \\ 1 &amp; 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 &amp; A &amp; B &amp; C \\ 2 &amp; 0 &amp; 2 &amp; 4 &amp; 6 &amp; 8 &amp; A &amp; C &amp; 11 &amp; 13 &amp; 15 &amp; 17 &amp; 19 &amp; 1B \\ 3 &amp; 0 &amp; 3 &amp; 6 &amp; 9 &amp; C &amp; 12 &amp; 15 &amp; 18 &amp; 1B &amp; 21 &amp; 24 &amp; 27 &amp; 2A \\ 4 &amp; 0 &amp; 4 &amp; 8 &amp; C &amp; 13 &amp; 17 &amp; 1B &amp; 22 &amp; 26 &amp; 2A &amp; 31 &amp; 35 &amp; 39 \\ 5 &amp; 0 &amp; 5 &amp; A &amp; 12 &amp; 17 &amp; 1C &amp; 24 &amp; 29 &amp; 31 &amp; 36 &amp; 3B &amp; 43 &amp; 48 \\ 6 &amp; 0 &amp; 6 &amp; C &amp; 15 &amp; 1B &amp; 24 &amp; 2A &amp; 33 &amp; 39 &amp; 42 &amp; 48 &amp; 51 &amp; 57 \\ 7 &amp; 0 &amp; 7 &amp; 11 &amp; 18 &amp; 22 &amp; 29 &amp; 33 &amp; 3A &amp; 44 &amp; 4B &amp; 55 &amp; 5C &amp; 66 \\ 8 &amp; 0 &amp; 8 &amp; 13 &amp; 1B &amp; 26 &amp; 31 &amp; 39 &amp; 44 &amp; 4C &amp; 57 &amp; 62 &amp; 6A &amp; 75 \\ 9 &amp; 0 &amp; 9 &amp; 15 &amp; 21 &amp; 2A &amp; 36 &amp; 42 &amp; 4B &amp; 57 &amp; 63 &amp; 6C &amp; 78 &amp; 84 \\ A &amp; 0 &amp; A &amp; 17 &amp; 24 &amp; 31 &amp; 3B &amp; 48 &amp; 55 &amp; 62 &amp; 6C &amp; 79 &amp; 86 &amp; 93 \\ B &amp; 0 &amp; B &amp; 19 &amp; 27 &amp; 35 &amp; 43 &amp; 51 &amp; 5C &amp; 6A &amp; 78 &amp; 86 &amp; 94 &amp; A2 \\ C &amp; 0 &amp; C &amp; 1B &amp; 2A &amp; 39 &amp; 48 &amp; 57 &amp; 66 &amp; 75 &amp; 84 &amp; 93 &amp; A2 &amp; B1 \\ \end{array} \end{aligned} \\\] </li> <li> <p>Exercise: Consider the question of representing integers with the base $a$. In order to name the integers in this system we need words for the digits \(0, 1, \ldots, a - 1\) and for the various powers of \(a\): \(a, a^1, a^2, \ldots\). How many different number words are needed to name all numbers from zero to one thousand, for \(a = 2, 3, 4, 5, \ldots, 15\)? Which base requires the fewest? (Examples: If \(a = 10\), we need ten words for the digits, plus words for \(10, 100,\) and \(1000\), making a total of 13. For \(a = 20\), we need twenty words for the digits, plus words for \(20\) and $400$, making a total of 22. If \(a = 100\), we need 100 plus 1.)</p> <p>From the description we can easily get the following count by listsing them.</p> \[\begin{aligned} a = 10 &amp; : \quad 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10^1, 10^2, 10^3\\ a = 11 &amp; : \quad 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, 11^1, 11^2 \\ a = 20 &amp; : \quad 0, \ldots, R,S, 20^1, 20^2 \end{aligned}\] <p>It can be eaily derived that the number of words x needed to name all numbers from 0 to 1000 is number number of a + the maximum power of a that is less or equal to 1000. for 10 that is 3 in \(10^3\) because \(10^3\leq1000\).Therefore we can have the formula:</p> \[x = a + \lfloor\frac{\log 1000}{\log a}\rfloor\] </li> </ol> <figure> <picture> <source class="responsive-img-srcset" srcset="/assets/img/20140616-480.webp 480w,/assets/img/20140616-800.webp 800w,/assets/img/20140616-1400.webp 1400w," sizes="95vw" type="image/webp"/> <img src="/assets/img/20140616.png.jpg" class="img-fluid rounded z-depth-1" width="100%" height="auto" loading="eager" onerror="this.onerror=null; $('.responsive-img-srcset').remove();"/> </picture> </figure> <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>This shows that 4 uses the fewest words.
</code></pre></div></div> <h2 id="the-infinite-of-number-system-mathematical-induction">The Infinite of number system, mathematical induction.</h2> <p>Exercise: Prove by mathematical induction</p> <ol> <li> <p>\(\frac{1}{1 \cdot 2}+\frac{1}{2 \cdot 3}+\cdots+\frac{1}{n(n+1)}=\frac{n}{n+1}\) .</p> <p>Base Case: For \(n = 1\),</p> \[\frac{1}{1 \cdot 2} = \frac{1}{2}\] <p>So, the base case holds.</p> <p>Inductive Step: Assume the statement is true for some arbitrary positive integer \(k\), i.e.,</p> \[\frac{1}{1 \cdot 2} + \frac{1}{2 \cdot 3} + \cdots + \frac{1}{k(k+1)} = \frac{k}{k+1}.\] <p>Now, we prove it for \(k+1\):</p> \[\frac{1}{1 \cdot 2} + \frac{1}{2 \cdot 3} + \cdots + \frac{1}{k(k+1)} + \frac{1}{(k+1)((k+1)+1)} = \frac{k}{k+1} + \frac{1}{(k+1)(k+2)}.\] <p>To simplify the right-hand side:</p> \[\begin{aligned}\frac{k}{k+1} + \frac{1}{(k+1)(k+2)} &amp;= \frac{k(k+2) + 1}{(k+1)(k+2)}\\ &amp;= \frac{k^2 + 2k + 1}{(k+1)(k+2)}\\ &amp;= \frac{(k+1)^2}{(k+1)(k+2)}\\ &amp;= \frac{k+1}{k+2}.\end{aligned}\] <p>Q.E.D.</p> </li> <li> <p>\(\frac{1}{2}+\frac{2}{2^n}+\frac{3}{2^n}+\cdots+\frac{n}{2^n}=2-\frac{n+2}{2^n}\).</p> <p>Base Case: For \(n = 1\),</p> \[\frac{1}{2} = 2 - \frac{1+2}{2^1} = 2 - \frac{3}{2} = \frac{1}{2}.\] <p>So, the base case holds.</p> <p>Inductive Step:Assume the statement is true for some arbitrary positive integer \(k\) sum denoted as $A_k$</p> \[A_k = \frac{1}{2} + \frac{2}{2^2} + \frac{3}{2^2} + \cdots + \frac{k}{2^2} = 2 - \frac{k+2}{2^k}.\] <p>Then for sum of \(A_{k+1}\) is:</p> \[\begin{aligned} A_{k+1} &amp;= 2 - \frac{k+2}{2^k} + \frac{k+1}{2^{k+1}} \\ &amp;= 2 - \frac{2k+4}{2^{k+1}} + \frac{k+1}{2^{k+1}} \\ &amp;= 2 - \frac{k+3}{2^{k+1}} \end{aligned}\] <p>Q.E.D.</p> </li> <li> <p>\(1+2 q+3 q^2+\cdots+n q^{n-1}=\frac{1-(n+1) q^n+n q^{n+1}}{(1-q)^2}\).</p> <p>Base Case: \(n = 1\)</p> \[\frac{1 - 2q + q^2}{(1-q)^2} = \frac{(1-q)^2}{(1-q)^2} = 1.\] <p>Inductive Step:</p> <p>Assume the identity holds for some arbitrary \(n = k\):</p> \[\\ 1 + 2q + 3q^2 + \cdots + kq^{k-1} = \frac{1 - (k+1)q^k + kq^{k+1}}{(1-q)^2}. \\\] <p>Now, we need to show it holds for \(n = k + 1\):</p> \[\\ 1 + 2q + 3q^2 + \cdots + (k+1)q^k = \frac{1 - ((k+1)+1)q^{k+1} + (k+1)q^{k+2}}{(1-q)^2}. \\\] <p>To prove this, consider the sum up to \(k+1\):</p> \[\\ 1 + 2q + 3q^2 + \cdots + (k+1)q^k = \left( 1 + 2q + 3q^2 + \cdots + kq^{k-1} \right) + (k+1)q^k. \\\] <p>Using the induction hypothesis:</p> \[\\ 1 + 2q + 3q^2 + \cdots + kq^{k-1} = \frac{1 - (k+1)q^k + kq^{k+1}}{(1-q)^2}. \\\] <p>Therefore,</p> \[\\ \begin{aligned} 1 + 2q + 3q^2 + \cdots + (k+1)q^k &amp;= \frac{1 - (k+1)q^k + kq^{k+1}}{(1-q)^2} + (k+1)q^k \\ &amp;= \frac{1 - (k+1)q^k + kq^{k+1} + (k+1)q^k (1-q)^2}{(1-q)^2} \\ &amp;= \frac{1 - (k+2) q^{k+1} + (k+1) q^{k+2}}{(1 - q)^2} \end{aligned} \\\] <p>Q.E.D.</p> </li> <li> <p>\((1+q)\left(1+q^2\right)\left(1+q^4\right) \cdots\left(1+q^{2^n}\right)=\frac{1-q^{2^{n+1}}}{1-q}\).</p> <p>Base Case: For \(n=1\).</p> \[\begin{aligned} (1+q)(1+q^2) &amp;= \frac{1 - q^4}{1 - q} \\ 1 + q^2 + q + q^3 &amp;= \frac{1 - q^4}{1 - q} \\ (1 + q^2 + q + q^3)(1-q) &amp;= 1-q^4 \end{aligned}\] <p>Simpily the left term we have \(1-q^4 = 1-q^4\). therefore \(n=1\) is true.</p> <p>Assume for n case is correct, for n+1 case: \(\begin{aligned} (1+q)\left(1+q^2\right)\left(1+q^4\right) \cdots\left(1+q^{2^n}\right)(1+q^{2{n+1}}) &amp;= \frac{1-q^{2^{n+1}}}{1-q}(1+q^{2^{n+1}})\\ &amp;= \frac{1-q^{2^{n+2}}}{1-q} \end{aligned}\)</p> <p>Q.E.D.</p> </li> </ol> <p>Find sum of the following:</p> <ol> <li> <p>\(\frac{1}{1+x^2}+\frac{1}{\left(1+x^2\right)^2}+\cdots+\frac{1}{\left(1+x^2\right)^n}\).</p> <p>Denote \(S_n\) be the sum</p> <p>\begin{equation} \label{sum_5_1} S_n = \frac{1}{1+x^2}+\frac{1}{\left(1+x^2\right)^2}+\cdots+\frac{1}{\left(1+x^2\right)^n} \end{equation}</p> <p>Construct another sum \begin{equation} \label{sum_5_2} \frac{1}{1+x^2}S_n = \frac{1}{\left(1+x^2\right)^2}+\cdots+\frac{1}{\left(1+x^2\right)^n}+\frac{1}{\left(1+x^2\right)^{n+1}} \end{equation}</p> <p>By using \eqref{sum_5_1} - \eqref{sum_5_2} we can have</p> \[\begin{aligned} S_n - \frac{1}{1+x^2}S_n &amp;= \frac{1}{\left(1+x^2\right)}-\frac{1}{\left(1+x^2\right)^{n+1}} \\ \frac{(1+x^2)S_n-S_n}{1+x^2} &amp;=\frac{1}{\left(1+x^2\right)}-\frac{1}{\left(1+x^2\right)^{n+1}} \\ \frac{x^2}{1+x^2}S_n &amp;=\frac{1}{\left(1+x^2\right)}-\frac{1}{\left(1+x^2\right)^{n+1}} \\ Sn &amp;=\frac{1}{x^2} - \frac{1}{\left(1+x^2\right)^{n}x^2} \end{aligned}\] <p>Thus the sum is:</p> \[S_n = \frac{1}{x^2} \left(1 - \frac{1}{(1+x^2)^n}\right)\] </li> <li> <p>\(1+\frac{x}{1+x^2}+\frac{x^2}{\left(1+x^2\right)^2}+\cdots+\frac{x^n}{\left(1+x^2\right)^n}\).</p> <p>we denote the sum by \(S_{n+1}\). \begin{equation} \label{sum_6_1} 1+\frac{x}{1+x^2}+\frac{x^2}{\left(1+x^2\right)^2}+\cdots+\frac{x^n}{\left(1+x^2\right)^n} \end{equation}</p> <p>Construct another sum \(\frac{x}{1+x^2}S_{n+1}\). \begin{equation} \label{sum_6_2} \begin{aligned} 1+\frac{x}{1+x^2}+\frac{x^2}{\left(1+x^2\right)^2}+\cdots+\frac{x^n}{\left(1+x^2\right)^n} \end{aligned} \end{equation}</p> <p>By using \eqref{sum_6_1} - \eqref{sum_6_2} we can have</p> \[\begin{aligned} S_{n+1} - \frac{x}{1+x^2}S_{n+1} &amp;= 1 -\frac{x^n}{\left(1+x^2\right)^{n+1}} \\ \frac{1+x^2-x}{1+x^2}S_{n+1} &amp;= 1 -\frac{x^n}{\left(1+x^2\right)^{n+1}} \\ S_{n+1} &amp;= \frac{1+x^2}{1+x^2-x} - \frac{x^n}{\left(1+x^2\right)^{n+1}}\frac{1+x^2}{1+x^2-x} \\ S_{n+1} &amp;= \frac{\left(1+x^2\right)^{n+1}}{(1+x^2-x)(\left(1+x^2\right)^{n})} - \frac{x^{n+1}}{(1+x^2-x)(\left(1+x^2\right)^{n})} \end{aligned}\] <p>Thus, the sum of the series is:</p> \[S_{n+1} = \frac{\left(1+x^2\right)^{n+1}-x^{n+1}}{(1+x^2-x)(\left(1+x^2\right)^{n})}\] </li> <li> <p>\(\frac{x^2-y^2}{x^2+y^2}+\left(\frac{x^2-y^2}{x^2+y^2}\right)^2+\cdots+\left(\frac{x^2-y^2}{x^2+y^2}\right)^n\).</p> <p>The common ratio of the geometric progression is \(q = \frac{x^2-y^2}{x^2+y^2}\)</p> <p>Based on the formula of summation for geometric sequence:</p> \[S_n = a_1\frac{1-q^n}{1-q}\] <p>By substituting \(q = \frac{x^2-y^2}{x^2+y^2}\), we can have</p> \[S_n = \frac{x^2-y^2}{x^2+y^2}\frac{1-(\frac{x^2-y^2}{x^2+y^2})^n}{1-\frac{x^2-y^2}{x^2+y^2}} \\\] </li> </ol> <p>Using formulas (4) and (5) in the book to prove:</p> <ol> <li> <p>\(1^2+3^2+\cdots+(2n+1)^2=\frac{(n+1)(2n+1)(2n+3)}{3}\).</p> <p>What we’ve already known: \(1^2+2^2+\cdots+n^2=\frac{n(n+1)(2n+1)}{6}\).</p> <p>If \(S_n\) is the original progression, notice that each base is odd, we can construct it by using \(2n+1\) terms and subtract it with the progress where each base is even.</p> \[\begin{aligned} Sn &amp;= [1^2+2^2+\cdots+(2n+1)^2=] - (2^2+4^2+6^2+\cdots+(2n)^2) \\ &amp;= \frac{(2n+1)(2n+2)(4n+3)}{6} - 2^2[1^2+2^2+\cdots+(n)^2] \\ &amp;= \frac{(2n+1)(2n+2)(4n+3)}{6} - \frac{4n(n+1)(2n+1)}{3} \\ &amp;= \frac{(2n+1)(2n+2)(4n+3)}{6} - \frac{2n(2n+2)(2n+1)}{6} \\ &amp;= \frac{(2n+1)(2n+2)[(4n+3)-2n]}{6}\\ &amp;= \frac{(n+1)(2n+1)(2n+3)}{3} \end{aligned}\] </li> <li> <p>\(1^3+3^3+\cdots+(2 n+1)^2=(n+1)^2\left(2 n^2+4 n+1\right)\).</p> <p>Using the same trick as above.</p> <p>Known: \((1^3+2^3+3^3+\cdots+n^3)=[\frac{n(n+1)}{2}]^2\)</p> <p>If \(S_n\) is the original progression:</p> \[\begin{aligned} S_n &amp;= \left[ 1^3 + 2^3 + \ldots + (2n+1)^3 \right] - \left[ 2^3 + 4^3 + \ldots + (2n)^3 \right]\\ &amp;= \left[ \frac{(2n+1)(2n+2)}{2} \right]^2 - 2^3 \left[ \frac{n(n+1)}{2} \right]^2\\ &amp;= \frac{(2n+1)^2 (2n+2)^2}{4} - 2^3 \cdot \frac{n^2 (n+1)^2}{4}\\ &amp;= (4n^4 + 12n^3 + 13n^2 + 6n + 1) - (2n^4 + 4n^3 + 2n^2)\\ &amp;= 2n^4 + 8n^3 + 11n^2 + 6n + 1 \\ &amp;= (n+1)^2\left(2 n^2+4 n+1\right) \end{aligned}\] </li> <li> <p>Prove the same results directly by mathematical induction.</p> <p>To prove \(1^3+3^3+\cdots+(2n+1)^3=\frac{(n+1)(2n+1)(2n+3)}{3}\).</p> <p>Base Case:</p> \[S_1 = \frac{2 \times 3 \times 5}{3} = 10 \quad \text{True.}\] <p>Assume \(S_n\) holds</p> \[S_n = \frac{(n+1)(2n+1)(2n+3)}{3}\] <p>For \(S_{n+1}\)</p> \[\begin{aligned} S_{n+1} &amp;= \frac{(n+1)(2n+1)(2n+3)}{3} + (2n+3)^2 \\ &amp;= \frac{(2n+3)\left[(n+1)(2n+1)+3(2n+3)\right]}{3} \\ &amp;= \frac{(2n+3)\left[2n^2 + n + 2n + 1 + 6n + 9\right]}{3} \\ &amp;= \frac{(2n+3)(n+2)(2n+5)}{3} \end{aligned}\] <p>Q.E.D.</p> <p>To prove \(1^3+3^3+\cdots+(2 n+1)^3=(n+1)^2\left(2 n^2+4 n+1\right)\).</p> <p>Base Case:</p> \[S_1 = 2^2 (2 + 4 + 1) = 28 \quad \text{True}\] <p>Assume \(S_n\) holds</p> <p>We need to show that the statement holds for n+1 That is, we need to prove: \(1^3 + 3^3 + \cdots + (2n+1)^3 + (2(n+1)+1)^3 = ((n+1)+1)^2 (2(n+1)^2 + 4(n+1) + 1)\)</p> <p>Simplify the left hand we have</p> \[(n+1)^2 (2n^2 + 4n + 1) + (2n + 3)^3\] <p>So we need to show: \((n+1)^2 (2n^2 + 4k + 1) + (2n + 3)^3 = (n+2)^2 (2(n+1)^2 + 4(n+1) + 1)\)</p> <p>Expand it and we can get:</p> \[\begin{aligned} 2(n+1)^2 + 4(n+1) + 1 &amp;= 2(n^2 + 2n + 1) + 4n + 4 + 1 \\ &amp;= 2n^2 + 4n + 2 + 4n + 4 + 1 = 2n^2 + 8n + 7 \\ \end{aligned}\] <p>Then,</p> \[\begin{aligned} S_{n+1} &amp;=(n+2)^2 (2n^2 + 8n + 7) \\ &amp;= (n^2 + 4n + 4)(2n^2 + 8n + 7) \\ &amp;= n^2(2n^2 + 8n + 7) + 4n(2n^2 + 8n + 7) + 4(2n^2 + 8n + 7) \\ &amp;= 2n^4 + 8n^3 + 7n^2 + 8n^3 + 32n^2 + 28n + 8n^2 + 32n + 28 \\ &amp;= 2n^4 + 16n^3 + 47n^2 + 60n + 28 \\ \end{aligned}\] <p>Now, let’s expand the left-hand side: \(\begin{aligned} S_{n+1} &amp;=(n+1)^2(2n^2 + 4n + 1) + (2n+3)^3 \\ &amp;= (n^2 + 2n + 1)(2n^2 + 4n + 1) + (2n + 3)^3 \\ &amp;= 2n^4 + 4n^3 + n^2 + 4n^3 + 8n^2 + 2n + 2n^2 + 4n + 1 + (2n+3)^3 \\ &amp;= 2n^4 + 8n^3 + 11n^2 + 6n + 1 + (8n^3 + 36n^2 + 54n + 27) \\ &amp;= 2n^4 + 16n^3 + 47n^2 + 60n + 28 \\ \end{aligned}\)</p> <p>Both sides are equal, so the inductive step holds.</p> <p>By mathematical induction, the statement is proven:</p> \[1^3 + 3^3 + \cdots + (2n+1)^3 = (n+1)^2 (2n^2 + 4n + 1)\] </li> </ol> <h2 id="the-prime-numbers">The prime numbers</h2> <ol> <li> <p>Exercise: Carry out this construction starting with \(p_1 = 2\), \(p_2\)= 3 and find 5 more primes The construction of proving that prime numbers are infinite is as followed:</p> \[A = p_1p_2\ldots p_n + 1\] <p>Based on this constrction, the next 5 primes is</p> \[\begin{aligned} p_3 &amp;= p_1p_2 + 1 = 7 \\ p_4 &amp;= p_1p_2p_3 + 1 = 43 \\ p_5 &amp;= p_1p_2p_3p_4 + 1 = 1807\\ p_6 &amp;= p_1p_2p_3p_4p_5 + 1 = 3263443 \\ p_7 &amp;= p_1p_2p_3p_4p_5p_6 + 1 = 10650056950807 \end{aligned}\] <p>side note: This is the famous <a href="https://en.wikipedia.org/wiki/Sylvester%27s_sequence">Sylvester’s sequence</a></p> </li> <li> <p>Exercise: In order to find all the divisors of any number a we need only decompose a into a product</p> \[a = p_1^{\alpha_1} p_2^{\alpha_2} \cdots p_r^{\alpha_r},\] <p>where the \(p\)’s are distinct primes, each raised to a certain power. All the divisors of $a$ are the numbers</p> \[b = p_1^{\beta_1} p_2^{\beta_2} \cdots p_r^{\beta_r},\] <p>where the \(\beta\)’s are any integers satisfying the inequalities</p> \[0 \leq \beta_1 \leq \alpha_1, \quad 0 \leq \beta_2 \leq \alpha_2, \quad \cdots, \quad 0 \leq \beta_r \leq \alpha_r.\] <p>Prove this statement. As a consequence, show that the number of different divisors of \(a\) (including the divisors \(a\) and 1) is given by the product</p> \[(\alpha_1 + 1)(\alpha_2 + 1) \cdots (\alpha_r + 1).\] <p>For example,</p> \[144 = 2^4 \cdot 3^2\] <p>has \(5 \cdot 3\) divisors. They are 1, 2, 4, 8, 16, 3, 6, 12, 24, 48, 9, 18, 36, 72, 144.</p> <p>Proof:</p> <p>For the form of b that is divisors of a, every prime \(p_i\) in a must appear in b with an exponent that is less than or equal to the exponent in a. For example: \(b_1 = p_1^1\) is a divisor where \(\beta_1\) is 1 and the rest are 0</p> <p>Hence, \(0 \leq \beta_i \leq \alpha_i\).</p> <p>To find the total number of distinct divisors, we need to count all possible combinations of the exponents \(\beta_i\) where \(0 \leq \beta_i \leq \alpha_i\).</p> <p>For each prime \(p_i\), the exponent \(\beta_i\) can take any integer value from 0 to \(\alpha_i\). This gives \(\alpha_i + 1\) possible values (including 0).</p> <p>Since the exponents are independent for different primes, the total number of distinct divisors is the product of the number of choices for each \(\beta_i\):</p> \[(\alpha_1 + 1)(\alpha_2 + 1) \cdots (\alpha_r + 1).\] </li> <li> <p>Prove the corresponding theorem for the progression \(6n+5\) that there are infinitely number of primes inside.</p> <p>Assume there are only infinit amount of prime numbers inside \(6n+5\)</p> <p>Any prime greater than 2 is odd. And all of the odds greater than 2 can be described by</p> \[6n+3, 6n+5, 6n+7\] <p>Furthermore, the product of 2 numbers of the form \(6n+3\) and \(6n+7\) are again of that form</p> <p>\(\begin{aligned} (6a+3)(6b+3) = 36ab + 18a + 18b + 9 = 6(6ab+3a+3b+1) + 3 \end{aligned}\) \(\begin{aligned} (6a+7)(6b+7) = 36ab + 42a + 42b + 49 = 6(6ab+7a+7b+7) + 7 \end{aligned}\)</p> <p>Construct N where: \(N = 6(p_1p_2\cdots p_n) - 1 = 6(p_1\cdots p_n - 1) + 5\)</p> <p>None of the product from \(p_1\) to \(p_n\) could be N’s factor since it always remains with 1</p> <p>And the factor can not be \(6n+3\) or \(6n+7\) because the product of them is still the form of themselves.</p> <p>So it can only be 6n+5, which contractdicts with the assumption, therefore there are infinit number of primes inside it.s</p> <p>Related proof: <a href="https://en.wikipedia.org/wiki/Dirichlet%27s_theorem_on_arithmetic_progressions">Dirichlet’s theorem</a>. if gcd(a, b) = 1 in the progression \(an+b\), then there are infinite number of prime numbers inside.</p> </li> </ol> <h2 id="congruences">Congruences</h2> <ol> <li> <p>Find a similar rule for divisibility by 13.</p> <p>For congruences modulo 13 we have:</p> \[\begin{aligned} 10^0 &amp;\equiv 1 \pmod{13} \\ 10^1 &amp;\equiv 10 \pmod{13} \\ 10^2 &amp;\equiv 100 \equiv 100 - 7 \cdot 13 \equiv 100 - 91 \equiv 9 \pmod{13}\\ 10^3 &amp;\equiv 10 \cdot 10^2 \equiv 10 \cdot 9 \equiv 90 \equiv 90 - 7 \cdot 13 \equiv 90 - 91 \equiv -1 \equiv 12 \pmod{13}\\ 10^4 &amp;\equiv 10 \cdot 10^3 \equiv 10 \cdot 12 \equiv 120 \equiv 120 - 9 \cdot 13 \equiv 120 - 117 \equiv 3 \pmod{13} \\ 10^5 &amp;\equiv 10 \cdot 10^4 \equiv 10 \cdot 3 \equiv 30 \equiv 30 - 2 \cdot 13 \equiv 30 - 26 \equiv 4 \pmod{13} \\ 10^6 &amp;\equiv 10 \cdot 10^5 \equiv 10 \cdot 4 \equiv 40 \equiv 40 - 3 \cdot 13 \equiv 40 - 39 \equiv 1 \pmod{13} \\ \end{aligned}\] <p>the successive remainders then repeat, for the expression</p> \[z = a_0 + a_110 + a2_10^2 + \cdots + a_n10^n\] <p>z is divisible by 13 if the following expression is divisible by 13.</p> \[r = a_0 + 10a_1 + 9a_2 + 12a_3 + 3a_4 + 4a_5 + a_6 + \cdots\] </li> <li> <p>Show that the following law of cancellation holds for congruences with respect to a prime modulus: If \(ab \equiv ac\) and \(a\not\equiv0\), then \(b \equiv c\).</p> <p>Using law of subtraction:</p> \[\begin{aligned} ab-ac \equiv 0 \pmod{p} \\ a(b-c) \equiv 0 \pmod{p} \end{aligned}\] <p>By applying the law 7 stated in the book, since \(a\not\equiv0 \pmod{p}\), therefore</p> \[(b-c) \equiv 0 \pmod{p}\] <p>which leads to</p> <p>\(b \begin{aligned} \equiv c \pmod{p} \end{aligned}\).</p> <p>Q.E.D.</p> </li> <li> <p>To what number between 0 and 6 inclusive is the product \(11\times 18\times 2322\times 13\times 19\) congruent modulo 7? By computing the smaller congruences from the factors in the product.</p> \[\begin{aligned} 11 \equiv 4 \pmod{7} \\ 18 \equiv 4 \pmod{7} \\ 2322 \equiv 5 \pmod{7} \\ 13 \equiv 6 \pmod{7} \\ 19 \equiv 5 \pmod{7} \\ \end{aligned}\] <p>Then we have \(11\times 18\times 2322\times 13\times 19 \equiv 4\times 4\times 5\times 6\times 5 \pmod{7}\)</p> \[\begin{aligned} 4\times 4 \equiv 2 \pmod{7} \\ 5\times 6 \equiv 2 \pmod{7} \\ \end{aligned}\] <p>Therefore we have \(2\times 2 \times 5 \equiv 6\pmod{7}\), 6 the congruence of the product.</p> </li> <li> <p>To what number between 0 and 12 inclusive is \(3\cdot7\cdot11\cdot17\cdot19\cdot23\cdot29\cdot113\) congruent modulo 13? By computing the smaller congruences from the factors in the product.</p> \[\begin{aligned} 17 \equiv 4 \pmod{13} \\ 19 \equiv 6 \pmod{13} \\ 23 \equiv 10 \pmod{13} \\ 29 \equiv 3 \pmod{13} \\ 113 \equiv 9 \pmod{13} \\ \end{aligned}\] <p>To furthur make it smaller</p> \[\begin{aligned} 3\times 7 \equiv 8 \pmod{13} \\ 11\times 4 \equiv 5 \pmod{13} \\ 6\times 10 \equiv 8 \pmod{13} \\ 3\times 9 \equiv 1 \pmod{13} \\ \end{aligned}\] <p>Therefore we have \(9\times 8 \times 5 \times 8 \equiv 8 \pmod{13}\), 8 is the congruence of the product.</p> </li> <li> <p>To what number between 0 and 4 inclusive is the sum \(1 + 2 + 2^2 +\cdots +2^{19}\) congruent modulo 5?</p> <p>We can observe from the following that the form 1,2,4,3 is repeated for the congruence in each term.</p> \[\begin{aligned} 1 \equiv 1 \pmod{5} \\ 2 \equiv 2 \pmod{7} \\ 2^2 \equiv 4 \pmod{5} \\ 2^3 \equiv 3 \pmod{5} \\ 2^4 \equiv 1 \pmod{5} \\ 2^5 \equiv 2 \pmod{5} \\ \cdots \end{aligned}\] <p>Therefore the original sum can be rewritten as:</p> \[1 + 2 + 4 + 3 + \cdots\] <p>There are 20 terms inside, for every 4 terms \(1+2+4+3 \equiv 0 \pod{5}\), so the congrence is 0.</p> </li> <li> <p>Show by similar computation that</p> \[\begin{align*} 2^8 &amp;\equiv 1 \pmod{17}; \\ 3^8 &amp;\equiv -1 \pmod{17}; \\ 3^{14} &amp;\equiv \pmod{29}; \\ 2^{14} &amp;\equiv -1 \pmod{29}; \\ 4^{14} &amp;\equiv 1 \pmod{29}; \\ 5^{14} &amp;\equiv 1 \pmod{29}\\ \end{align*}\] \[\begin{aligned} 2^8 &amp;\equiv 2^4 \cdot 2^4 \equiv (-1)\cdot(-1) \equiv 1 \pmod{17} \\ 3^8 &amp;\equiv 3^4 \cdot 3^4 \cdot (-4)\cdot(-4) \equiv -1 \pmod{17} \\ 3^{14} &amp;\equiv 3^4 \cdot 3^4 \cdot 3^4 \cdot 3^2 \equiv (-6) \cdot (-6) \cdot(-6) \cdot(9) \\ &amp;\equiv 7 \cdot 9 \cdot (-6) \equiv -1 \pmod{29} \\ 2^{14} &amp;\equiv 2^5 \cdot 2^5 \cdot 2^4 \equiv 3 \cdot 3 \cdot 16 \equiv 28 \equiv -1 \pmod{29} \\ 4^{14} &amp;\equiv 4^3 \cdot 4^3 \cdot 4^3 \cdot 4^3 \cdot 4^2 \equiv 6 \cdot 6 \cdot 6 \cdot 6 \cdot 16 \equiv 1 \pmod{29} \\ 5^{14} &amp;\equiv 5^2 \cdot 5^4 \cdot 5^8 \equiv 4 \cdot 16 \dot 24 \equiv 1 \pmod{29} \\ \end{aligned}\] </li> <li> <p>Check Fermat’s theorem for p = 5, 7, 11, 17, and 23 with different values of a.</p> <p>For a = 3</p> \[\begin{aligned} 3^4 &amp;\equiv 3^2 \cdot 3^2 \equiv 9 \cdot 9 \equiv 4 \cdot 4 \equiv 1 \pmod{5} \\ 3^6 &amp;\equiv 3^2 \cdot 3^2 \cdot 3^2 \equiv 2 \cdot 2\cdot 2 \equiv 1 \pmod{7} \\ 3^{10} &amp;\equiv 3^2 \cdot 3^4 \cdot 3^4 \equiv 9 \cdot 4 \cdot 4 \equiv 1 \pmod{11} \\ 3^{16} &amp;\equiv 3^4 \cdot 3^4 \cdot 3^4 \cdot 3^4 \equiv 13^4 \equiv 1 \pmod{17}\\ 3^{22} &amp;\equiv 3^8 \cdot 3^8 \cdot 3^4 \cdot 3^2 \equiv (-6) \cdot (-6) \cdot 12 \cdot 9 \equiv 1 \pmod{23}\\ \end{aligned}\] </li> <li> <p>Prove the general theorem: The smallest positive integer e for which \(a^e \equiv 1 \pmod{p}\) must be a divisor of p-1. (Hint: Divide p — 1 by e, obtaining:</p> \[p-1 = ke + r\] <p>where \(0 &lt; r &lt; e\), and use the fact that \(a^{p-1} \equiv a^e \equiv 1 \pmod{p}\) )</p> <p>Proof: Based on Fermat’s Little theorem, we have \(a^{p-1} \equiv 1 \pmod{p}\)</p> <p>Dividing p-1 by e and obtain:</p> \[p-1 = ke + r\] <p>where k is the quotient, r is the remainder, \(0 \leq r &lt; e\).</p> <p>Substitute it in the Fermat’s Little theorem</p> \[a^{p-1} = a^{ke + r} \equiv 1 \pmod{p}\] <p>Simplify using the fact that \(a^e \equiv 1 \pmod{p}\) :</p> \[(a^e)^k \equiv 1^k \equiv 1 \pmod{p}\] <p>Therefore,</p> \[a^{ke + r} \equiv 1 \cdot a^r \equiv a^r \pmod{p}\] <p>And this implies</p> \[a^r \equiv 1 \pmod{p}\] <p>r can only be 0 because e is defined as the smallest positive integer for which \(0 \leq r &lt; e\)</p> <p>Therefore, r must be 0, meaning:</p> \[p-1 = ke\] <p>Q.E.D.</p> </li> </ol> <h2 id="pythagorean-numbers-and-fermats-last-theorem">Pythagorean Numbers and Fermat’s Last Theorem</h2> <ol> <li> <p>\(6^2 = 36 \equiv 13 \pmod{23}\). Is 23 a quadratic residue (mod 13)?</p> <p>Based on the definition of quadratic resudule, 23 is a quadratic residule if that:</p> \[x^2 \equiv 23 \pmod{13}\] <p>First, we can simplify \(23 \pmod{13}\): \(23 \equiv 10 \pmod{13}\)</p> <p>The integers modulo 13 are \(0, 1, 2, \ldots, 12\). By calculating the squares of each of these integers modulo 13:</p> \[\begin{aligned} 1^2 &amp;\equiv 1 \pmod{13} \\ 2^2 &amp;\equiv 4 \pmod{13} \\ 3^2 &amp;\equiv 9 \pmod{13} \\ 4^2 &amp;\equiv 16 \equiv 3 \pmod{13} \\ 5^2 &amp;\equiv 25 \equiv 12 \pmod{13} \\ 6^2 &amp;\equiv 36 \equiv 10 \pmod{13} \\ 7^2 &amp;\equiv 49 \equiv 10 \pmod{13} \\ 8^2 &amp;\equiv 64 \equiv 12 \pmod{13} \\ 9^2 &amp;\equiv 81 \equiv 3 \pmod{13} \\ 10^2 &amp;\equiv 100 \equiv 9 \pmod{13} \\ 11^2 &amp;\equiv 121 \equiv 4 \pmod{13} \\ 12^2 &amp;\equiv 144 \equiv 1 \pmod{13} \end{aligned}\] <p>we have</p> \[6^2 \equiv 10 \pmod{13} \quad \text{and} \quad 7^2 \equiv 10 \pmod{13}\] <p>Thus, there exist integers \(x\) specifically \(x = 6\) and \(x = 7\) such that \(x^2 \equiv 10 \pmod{13}\). Therefore, 10 is a quadratic residue modulo 13.</p> <p>Also we could use the law of <a href="https://en.wikipedia.org/wiki/Quadratic_reciprocity">Quadratic reciprocity</a></p> \[\frac{p-1}{2} \cdot \frac{q-1}{2} = \frac{13-1}{2} \cdot \frac{23-1}{2} = 66\] <p>66 is even, therefore 23 is a quadratic residue modulo 13.</p> </li> <li> <p>We have seen that \(x^2 \equiv (p - x)^2 \pmod{p}\). Show that these are the only congruences among the numbers \(1^2, 2^2, 3^2, \ldots, (p - 1)^2\).</p> <p>Let’s construct another variable y, we have distinct x and y where \(x,y \in \{1,2,...;p-1\}\)</p> <p>The goal of this proof is to claim if we can have \(x^2 \equiv y^2 \pmod{p}\) leads to \(y=p-x\)</p> <p>rewrite the equation and we have</p> \[(x-y)(x+y) \equiv 0 \pmod{p}\] <table> <tbody> <tr> <td>since p is a prime, it must devide either \(x-y \equiv 0\) where $$\left</td> <td>x-y\right</td> <td>&lt; p-2 &lt; p\(or\)x+y \equiv 0$$ where</td> </tr> </tbody> </table> <p>\(2 \leq x+y &lt; 2p\).</p> <p>x-y can only be divisible by p is \(x - y = 0\) which contradicts to the distinct consurtcion, therefore</p> \[x+y = p\] <p>which leads to \(y = p-x\).</p> <p>Q.E.D.</p> </li> <li> <p>Prove the last statement. Page 41.</p> <p>Prove the last statement: (u, v) have no common factor and are not both odd, yield all primitive Pythagorean number triples.</p> <p>The statement has:</p> \[\gcd(u, v) = 1\] <p>To cover all primitive Pythagorean triples:</p> <p>Construct \(u = n\), \(v = n + 1\). where n is any positive integer.</p> <p>It satisfis both are not odd, and \(\gcd(n, n+1) = 1\).</p> \[\begin{aligned} a &amp;= (n+1)^2 - n^2 = 2n + 1 \\ b &amp;= 2(n+1)n = 2n^2 + 2n \\ c &amp;= (n+1)^2 + n^2 = 2n^2 + 2n + 1 \end{aligned}\] \[\begin{aligned} a^2 + b^2 &amp;= (2n+1)^2 + (2n^2+2n)^2 \\ &amp;= 4n^2 + 4n + 1 + 4n^4 + 8n^3 + 8n^2 + 4n^2 \\ c^2 &amp;= (2n^2+2n+1)^2 = 4n^4 + 8n^3 + 8n^2 + 4n + 1 \\ \end{aligned}\] <p>and it satisfied \(a^2 + b^2 = c^2\).</p> </li> </ol> <h2 id="the-euclidean-algorithm">The Euclidean Algorithm</h2> <ol> <li> <p>Carry out the Euclidean algorithm for finding the greatest common divisor of (a) 187, 77. (b) 105, 385. (c) 245, 193.</p> \[\gcd(187, 77) = 11\] \[\begin{array}{r|r} 187 &amp; 77 \\ 77 &amp; 33 \\ 33 &amp; 11 \\ 11 &amp; 0 \\ \end{array}\] \[\gcd(105, 385) = 35\] \[\begin{array}{r|r} 385 &amp; 105 \\ 105 &amp; 70 \\ 70 &amp; 35 \\ 35 &amp; 0 \\ \end{array}\] \[\gcd(245, 193) = 1\] \[\begin{array}{r|r} 245 &amp; 193 \\ 193 &amp; 52 \\ 52 &amp; 37 \\ 37 &amp; 15 \\ 15 &amp; 7 \\ 7 &amp; 1 \\ 1 &amp; 0 \\ \end{array}\] </li> <li> <p>The extension of this argument to products of any number n of integers requires the explicit or implicit use of the principle of mathematical induction. Supply the details of this argument. Page 47.</p> <p>Assume that the statement is true for some integer \(n \geq 2\). That is, if $p$ divides the product \(a_1 a_2 \cdots a_n\), then \(p\) must divide at least one of the integers \(a_1, a_2, \ldots, a_n\).</p> <p>We need to show that the statement is also true for \(n+1\). After adding a new term \(a_{n+1}\)</p> <p>Consider the product \(a_1 a_2 \cdots a_n\). There are two cases to consider:</p> <ul> <li> <p>Case 1: \(p\) divides \(a_1 a_2 \cdots a_n\): By the inductive hypothesis, since \(p\) divides \(a_1 a_2 \cdots a_n\), $p$ must divide at least one of the integers \(a_1, a_2, \ldots, a_n\). Adding another term \(a_{n+1}\) is the same.</p> </li> <li> <p>Case 2: \(p\) does not divide \(a_1 a_2 \cdots a_n\): Since \(p\) divides \(a_1 a_2 \cdots a_n a_{n+1}\) and does not divide \(a_1 a_2 \cdots a_n\), it must be the case that \(p\) divides \(a_{n+1}\).</p> </li> </ul> <p>In both cases, \(p\) divides at least one of the integers \(a_1, a_2, \ldots, a_n, a_{n+1}\).</p> <p>By the principle of mathematical induction, the statement is true for all integers \(n \geq 2\).</p> <p>Q.E.D.</p> </li> <li> <p>Exercise: Prove the theorem: If an integer r divides a product ab and is relatively prime to a, then r must divide b.</p> <p>r is relatively prime to a, we can have integers k and l such that</p> \[kr + la = 1\] <p>Multiply both sides of this equation by b.</p> \[bkr + lab = b\] <p>If r divides ab, we can have</p> \[rq = ab\] <p>Therefore we have</p> \[\begin{aligned} bkr + lrq &amp;= b \\ r(bk + lq) &amp; = b \end{aligned}\] <p>from which it is evident that r divides b.</p> <p>Q.E.D.</p> </li> <li> <p>Using Euler’s \(\phi\) function, generalize Fermat’s theorem of page 37. The general theorem states: If n is any integer, and a is relatively prime to n, then</p> \[a^{\phi(n)} \equiv 1 \ (\text{mod } n).\] <p>To generalize Fermat’s theorem, first consider the multiplies (set A) the number of intergers \(\phi{n}\) with n, the multiplies (or the modulo n if it is larger than n) are again belongs to \(\phi(n)\).</p> \[\{m_1 = a \cdot A_1 , m_2 = a \cdot A_2 , \cdots m_{A_{\phi{(n)}}}\}\] <p>Since a is coprime to n, \(gcd(n, a)=1\)</p> \[\{A_1 \equiv a \cdot A_1 \pmod{n}, A_2 \equiv a \cdot A_2 \pmod{n}, \cdots... A_i \equiv a \cdot A_i \cdot \phi{(n)}\pmod{n}\}\] <p>Therefore, the products of the elements of the two sets are congruent modulo n, we have</p> \[\{A_1 \cdot A_2 \cdots A_n \equiv A_1 \pmod{n}, A_2 \equiv a \cdot A_2 \pmod{n}, \cdots... A_i \equiv a \cdot A_i \cdot \phi{(n)}\pmod{n}\}\] <p>Using cancellation rule we can have</p> \[a^{\phi(n)} \equiv 1 \ (\text{mod } n).\] <p>Q.E.D.</p> </li> <li> <p>Exercise: Find the continued fraction developments of</p> \[\frac{2}{5}, \quad \frac{43}{30}, \quad \frac{169}{70}.\] <p>By applying the same procedure in the book page 49, we can have</p> \[\frac{2}{5} = 0+\frac{1}{2+\frac{1}{2}}\] \[\frac{43}{30} = 1+\frac{1}{2+\frac{1}{3+\frac{1}{4}}}\] \[\frac{169}{70} =2+\frac{1}{2+\frac{1}{2+\frac{1}{2+\frac{1}{2+\frac{1}{2}}}}}\] </li> <li> <p>Solve the Diophantine equations \((a) 3x — 4y = 29. (b)3 - 4y = 58. (c) 11x - 12 y = 51\).</p> \[(a). 3x - 4y = 29\] \[\gcd(3, 4) = 1 \quad \text{it has integer solutions}\] \[\begin{aligned} 4 - 3 &amp;= 1 \\ 3(-1) - 4(-1) &amp;= 1 \\ \end{aligned}\] <p>And we can have</p> \[3(-29) - 4(-29) = 29\] <p>Based on tge general solution of linear diophantinue equation we can have</p> \[\begin{aligned} x &amp;= -29 + 4k \\ y &amp;= -29 + 3k \\ \end{aligned}\] \[(b). 11x + 12y = 58\] \[\gcd(11, 12) = 1\] \[11(-1) + 12(1) = 1\] \[11(-58) + 12(58) = 58\] <p>Based on tge general solution of linear diophantinue equation we can have</p> \[\begin{aligned} x &amp;= -58 + 12k \\ y &amp;= 58 - 11k \\ \end{aligned}\] \[(c). 153x - 34y = 51\] \[\gcd(153, 34) = 17\] \[153 + 4 \times 34(1) = 17\] \[153(3) + 4 \times 34(3) = 51\] <p>Based on tge general solution of linear diophantinue equation we can have</p> \[\begin{aligned} x &amp;= 3 + 2k \\ y &amp;= 12 + 9k \\ \end{aligned}\] </li> </ol>]]></content><author><name></name></author><category term="math"/><summary type="html"><![CDATA[Before the solutions :) The solution presented on the blog is my personal solutions for the exercises in the book ‘What is Mathematics: An Elementary Approach To Ideas And Methods’ by Herbert Robbins and Richard Courant, please leave a comment if you spot any mistakes or you have questions on the solution. Thanks in advance!]]></summary></entry><entry><title type="html">A small guide to supplements: What you need to know</title><link href="https://paranoiarchive.com//blog/2023/small-guide-to-supplements-what-you-need-to-know/" rel="alternate" type="text/html" title="A small guide to supplements: What you need to know"/><published>2023-11-12T00:00:00+00:00</published><updated>2023-11-12T00:00:00+00:00</updated><id>https://paranoiarchive.com//blog/2023/small-guide-to-supplements-what%20you%20need%20to%20know</id><content type="html" xml:base="https://paranoiarchive.com//blog/2023/small-guide-to-supplements-what-you-need-to-know/"><![CDATA[<ol> <li><a href="#disclaimer">Disclaimer</a></li> <li><a href="#motivation">Introduction: Motivaton of this blog</a></li> <li><a href="#anti-aging">Anti-aging Supplements</a> <ol> <li><a href="#Resveratrol">Resveratrol</a></li> <li><a href="#NMN">NMN</a></li> <li><a href="#Ubiquinol">Ubiquinol</a></li> <li><a href="#Astaxanthin">Astaxanthin</a></li> <li><a href="#grape_seed">Grape Seed Extract</a></li> </ol> </li> <li><a href="#enzyme">Enzyme</a> <ol> <li><a href="#Serratiopeptidase">Serratiopeptidase</a></li> </ol> </li> <li><a href="#other">Minerals, Vitamins &amp; Fatty Acids</a> <ol> <li><a href="#vd">Vitamin D</a></li> <li><a href="#vk2">Vitamin K</a></li> <li><a href="#magnesium">Magnesium</a></li> <li><a href="#Omega-3">Omega-3 Fatty Acids</a></li> </ol> </li> <li><a href="#summary_and_concerns">Suggest Doses, Summary and Concerns</a></li> </ol> <h3 id="disclaimer-">Disclaimer <a name="disclaimer"></a></h3> <p>The information presented on the blog is <strong>ONLY</strong> intended for knowledge sharing and understanding how supplements work, it is <strong>NOT</strong> intended as medical advice or as a substitute for medical treatment. You should always consult with your physician or other health care professional before taking any medication or nutritional, herbal or homeopathic supplement.</p> <h2 id="introduction-motivation-of-this-blog-">Introduction: Motivation of this blog <a name="motivation"></a></h2> <p>Last week, I had a thought-provoking discussion with my colleagues. The topic of our conversation? Supplements. What intrigued me was that, just like many of my peers, I too have ventured into the world of supplements because of David Sinclair and various of health-related podcasts like Huberman lab. While the reasons taking supplements is easy for me: looking to combat inflammation. For my colleague, this could be boost performance when working out.</p> <p>A pill that promises health improvements, anti-aging effects, but to be honest I had very limited knowledge of those small pills I’m taking, I yearn for comprehension.What exactly are these supplements composed of at a molecular level? How do these minuscule pills exert their influence within our bodies biologically? Moreover, is there an optimal approach to taking these supplements to maximize their potential benefits for our health and well-being?</p> <p>Over the past few days, I’ve immersed myself into articles, research papers, and scientific literature. My aim was clear: to understand these tiny capsules that promise health. In the sections to come, I included 10 different supplements and introduced them each from the very essence of these their chemical identities, their categorizations, their mechanisms of action with the academic evidence. In the end a suggest dose for those supplements was given.</p> <h2 id="anti-aging-supplements-">Anti-aging Supplements <a name="anti-aging"></a></h2> <h3 id="resveratrol-">Resveratrol <a name="Resveratrol"></a></h3> <p>Resveratrol (RV) is a potent polyphenolic compound found in a variety of fruits and vegetables, including grapes, skin of peanuts, mulberries, blueberries, bilberries, soybeans, pomegranates, cranberries, soy, dark chocolate, pistachios. It possesses a distinct chemical structure, primarily composed of two aromatic rings connected by a methylene bridge. Biologically when you take resveratorl, it is rapidly metabolized by phase II enzymes in the intestine and liver. The RV’s <strong>low solubility</strong>(&lt; 0.05mg/ml) in water is caused by its enzymatic structure, which might affect its consumption.<a href="#1">[1]</a></p> <p align="center"> <img src="/images/2023/11/2880px-Cis_and_trans_resveratrol_notext copy.svg.png" alt="Cis_and_trans_resveratrol" width="350" height="100"/> </p> <p>Resveratrol occurs naturally in two forms: trans and cis isomers, with the trans-isomer being the more commonly associated with health benefits. It is typically a white powder extracted using methanol, characterized by a melting point between 253°C and 255°C, and has a relatively low molecular weight of 228.25.<a href="#1">[1]</a> While trans-resveratrol is the form primarily studied for its potential health advantages, cis-resveratrol is less prevalent and is typically produced synthetically rather than being the predominant form found in natural sources. The variation in the spatial arrangement of atoms around the double bond results in differences in the chemical and biological properties of these two isomers. Trans-resveratrol is generally considered the more biologically active and bioavailable form, making it the focal point of most research on the potential health benefits of resveratrol.</p> <h4 id="mechanisms-of-action">Mechanisms of action</h4> <p>It has been discovered that RV has many potential health benefits like antioxidant , cardioprotective, neurological, anti-inflammatory, antiplatelet, blood glucose-lowering, and anticancer activities.<a href="#1">[1]</a> In another famous experiments in nonhuman primates carried out by Laboratory of Cardiovascular Science, resveratrol has been found to prevent high fat/sucrose (HFS) diet-induced central arterial wall inflammation and stiffening.<a href="#2">[2]</a> Below is a simplified summary of its actions:</p> <ol> <li> <p><strong>SIRT1/3 Activation:</strong> Resveratrol activates SIRT1 and SIRT3 enzymes (SIRT1 and SIRT3 is one of <a href="https://en.wikipedia.org/wiki/Sirtuin">Sirtuin</a>, which are types of proteins involved in metabolic regulation, inflammation), Sirt1 has been implicated in many vital processes, such as DNA repair, cell survival, gluconeogenesis, muscle cell differentiation, cell-cycle regulation, lipid metabolism, fat mobilization and insulin sensitivity. <a href="#3">[3]</a></p> </li> <li> <p><strong>Neuroprotective Effects:</strong> It reduces <a href="https://en.wikipedia.org/wiki/Endoplasmic_reticulum">endoplasmic reticulum</a> (ER) stress, inhibits carbonyl protein activity, and supports factors associated with brain health.</p> </li> <li> <p><strong>Cardiometabolic Benefits:</strong> Resveratrol improves mitochondrial (The mitochondria are like little workers in a factory. They take the food you eat, use the oxygen you breathe, and create energy for your body) respiratory activity in the heart, increases adenosine monophosphate kinase (p-<a href="https://en.wikipedia.org/wiki/AMP-activated_protein_kinase">AMPK</a>) levels (AMPK acts as a sensor of cellular energy status and helps regulate various metabolic processes to ensure the cell has enough energy to function), and boosts <a href="https://en.wikipedia.org/wiki/SOD2">SOD2</a> (a family of enzymes that play a crucial role in protecting cells from damage caused by free radicals) levels, promoting cardiovascular health.</p> </li> <li> <p><strong>Inflammation Regulation:</strong> Resveratrol reduces inflammatory parameters, including interleukin-6 <a href="https://en.wikipedia.org/wiki/Interleukin_6">IL-6</a> (IL-6 involved in promoting inflammation, regulating immune cell activity) and Tumor Necrosis Factor-Alpha <a href="https://en.wikipedia.org/wiki/Tumor_necrosis_factor">TNF-α</a>, which plays a significant role in managing oxidative stress.</p> </li> <li> <p><strong>Anti-Cancer Properties:</strong> Resveratrol inhibits the production of NADPH oxidase <a href="https://en.wikipedia.org/wiki/NADPH_oxidase">NOX</a> and <a href="https://en.wikipedia.org/wiki/Myeloperoxidase">myeloperoxidase</a>, showing potential anti-cancer effects.</p> </li> <li> <p><strong>Neurological Health:</strong> Resveratrol inhibits Nitric oxide synthase <a href="https://en.wikipedia.org/wiki/Nitric_oxide_synthase">iNOS</a> production, protects against lipid peroxidation, and has potential therapeutic effects for Alzheimer’s disease (AD) by promoting amyloid precursor protein cleavage and overcoming oxidative stress.</p> </li> <li> <p><strong>Reproductive System Benefits:</strong> Resveratrol improves sperm mobility, increases zinc concentration, and counteracts prooxidative effects in the reproductive system.</p> </li> <li> <p><strong>Intestinal Health:</strong> Resveratrol reduces markers like <a href="https://en.wikipedia.org/wiki/Interleukin_8">IL-8</a>, Vascular Endothelial Growth Factor <a href="https://en.wikipedia.org/wiki/Vascular_endothelial_growth_factor">VEGF</a> (VEGF’s normal function is to create new blood vessels, but overexpression of VEGF can cause vascular disease), and Reactive oxygen species <a href="https://en.wikipedia.org/wiki/Reactive_oxygen_species">ROS</a> (ROS are like energetic troublemakers in your body that, when there are too many of them, can create a bit of chaos and cause damage to your cells), indicating a role in managing intestinal disorders. <a href="#4">[4]</a></p> </li> </ol> <p>The figure below shows the general benefits of resveratrol.</p> <p align="center"> <img src="/images/2023/11/Screenshot 2023-11-17 at 10.56.54.png" alt="resveratrol_benifit" width="90%" height="auto"/> </p> <h3 id="nmn-">NMN <a name="NMN"></a></h3> <p>Nicotinamide Mononucleotide (<a href="https://en.wikipedia.org/wiki/Nicotinamide_mononucleotide">NMN</a>). In humans, several enzymes use NMN to generate nicotinamide adenine dinucleotide (<a href="https://en.wikipedia.org/wiki/Nicotinamide_adenine_dinucleotide">NADH</a>). (NAD+ (Nicotinamide Adenine Dinucleotide) is a crucial coenzyme in cells that plays a fundamental role in various biological processes, you can think of it as coal for energy production, NAD+ was found gradually declining during aging.<a href="#6">[6]</a>) NMN can be found in fruits and vegetables such as broccoli, cabbage, cucumber and avocado at a concentration of about 1 mg per 100g. In mammals most NMN is synthesized from vitamin B3 in the form of nicotinamide. <a href="#5">[5]</a></p> <p align="center"> <img src="/images/2023/11/Screenshot 2023-11-18 at 15.57.20.png" alt="nmn" width="50%" height="auto"/> </p> <p>NMN consists of three main components: a nicotinamide group, a ribose sugar, and a phosphate group. The nicotinamide group is connected to the ribose unit, and the phosphate group is attached to the ribose, forming the complete NMN molecule. In the human body, it can be found in placenta tissue and body fluids such as blood and urine. <a href="#7">[7]</a></p> <h4 id="mechanisms-of-action-1">Mechanisms of action</h4> <p><strong>NAD+ Decline During Aging:</strong></p> <p>Aging is naturally associated with a decline in NAD+ levels. Enzymes like <a href="https://en.wikipedia.org/wiki/Sirtuin">sirtuins</a>,<a href="https://en.wikipedia.org/wiki/CD38">CD38</a>/CD157, <a href="https://en.wikipedia.org/wiki/Procyclin">PARP</a>, <a href="https://en.wikipedia.org/wiki/Tankyrase">TNKS</a>, and <a href="https://en.wikipedia.org/wiki/BST1">BST</a> contribute to NAD+ consumption during aging. <a href="#7">[7]</a> Chronic inflammation and oxidative stress hinder NAD+ biosynthesis. Reduced NAD+ levels lead to interruptions in cellular communication and mitochondrial dysfunction, contributing to age-related complications.</p> <p><strong>Why NMN Could Work as a Solution:</strong></p> <p>NMN (Nicotinamide Mononucleotide) is an intermediate compound in the NAD+ <a href="https://en.wikipedia.org/wiki/Biosynthesis">biosynthesis</a> (simple compounds are modified, converted into other compounds) pathway. Administering NMN can compensate for the decline in NAD+ levels during aging. NMN supplementation may activate SIRT1, a protein associated with anti-aging effects. Studies suggest NMN as a potential solution to restore NAD+ levels and counteract aging effects. The effect could be summarized by the figure <a href="#7">[7]</a> shown below</p> <p align="center"> <img src="/images/2023/11/Screenshot 2023-11-18 at 16.01.41.png" alt="nmn" width="80%" height="auto"/> </p> <h4 id="ubiquinol-">Ubiquinol <a name="Ubiquinol"></a></h4> <p>The term “ubiquinol” derives from “ubiquitous,” signifying its widespread presence. Ubiquinol is an electron-rich (reduced) form of coenzyme Q (ubiquinone), aka CoQ10. In 1957, Professor Frederick Crane and colleagues discovered CoQ10 from beef heart mitochondria at the University of Wisconsin-Madison Enzyme Institute.6 R.A. Morton, from the United Kingdom, isolated the compound in rat liver just after Dr. Crane’s discovery. It was Morton who named the compound ubiquinone, meaning ubiquitous quinone or one that “exists everywhere.”. In 1962, Peter D. Mitchell, PhD from University of Edinburgh determined how CoQ10 produces energy at the cellular level and in 1978 he was awarded the Nobel Prize for chemistry based on his discovery. Q10 normally could be found in Fish, Calf’s Liver (and other organ meats), Germ portion of whole grains in nature. <a href="#8">[8]</a></p> <p>CoQ10, also known as ubiquinone, is a necessary component of cell respiration and ATP production. Ubiquinone is a fat soluble substance used to form ubiquinol, the fully reduced form of ubiquinone and potent antioxidant. <a href="#8">[8]</a></p> <p><strong>Chemical Structure of CoQ10</strong>: The most common form in humans is Coenzyme Q10 (CoQ10 or ubiquinone-10). CoQ10 is a 1,4-benzoquinone, where the “Q” refers to the quinone chemical group, and “10” signifies the number of isoprenyl chemical subunits in its tail. (Ubiquinone Tail Variability: In natural ubiquinones, there can be from six to ten subunits in the tail. The specific variant, ubiquinone-10, is predominantly found in humans.)</p> <p align="center"> <img src="/images/2023/11/1600px-Ubiquinol.png" alt="ubiquinone" width="90%" height="auto"/> </p> <h4 id="mechanisms-of-action-2">Mechanisms of action</h4> <p>Role in Energy Production: CoQ10 is a family of fat-soluble substances, resembling vitamins, and is present in all respiring eukaryotic cells, primarily in the mitochondria.</p> <p>Mitochondrial Function: As a vital component of the electron transport chain, CoQ10 participates in aerobic cellular respiration, a process that generates energy in the form of ATP.</p> <p>Energy Generation: A substantial 95% of the human body’s energy is generated through aerobic cellular respiration, highlighting the significance of CoQ10.</p> <p>Organ-Specific Concentrations: Organs with high energy demands, such as the heart, liver, and kidney, exhibit the highest concentrations of CoQ10, emphasizing its critical role in meeting the energy requirements of these vital organs.</p> <p>The effect of Ubiquinol is much better than that of ordinary Q10 (ubiquinone), and currently the only supplier of Ubiquinol on the market is <strong>Kaneka</strong> from Japan. <a href="#8">[8]</a></p> <p>Moreover, CoQ10 can increase the production of key antioxidants such as <a href="https://en.wikipedia.org/wiki/Superoxide_dismutase">superoxide dismutase</a>, an enzyme capable of reducing vascular oxidative stress in hypertensive patients. <a href="#9">[9]</a> CoQ10 reduces levels of <a href="https://en.wikipedia.org/wiki/Lipid_peroxidation">lipid peroxidation</a> via the reduction of pro-oxidative compounds. <a href="#10">[10]</a> So peroxidation is a chain reaction commonly found in polyunsaturated fatty acids, and its products may be carcinogenic and mutagenic. Since lipids are components of cell membranes, lipid peroxidation may have disastrous consequences if it’s out of control inside body.</p> <h4 id="astaxanthin-">Astaxanthin <a name="Astaxanthin"></a></h4> <p>Astaxanthin (ASX) is a <a href="https://en.wikipedia.org/wiki/Xanthophyll">xanthophyll</a> carotenoid, chemically known as 3,3′-dihydroxyβ,β-carotene-4,4′-dione, It is a <a href="https://en.wikipedia.org/wiki/Lipid">lipid</a>-soluble pigment with red coloring properties. It was originally isolated from lobster by Kuhn in 1938. <a href="#11">[11]</a> ASX is primarily biosynthesised by various algae, bacteria and fungi and is consumed by marine animals, such as salmon, trout, crab, lobster and shrimp. <a href="#12">[12]</a></p> <p align="center"> <img src="/images/2023/11/Astaxanthin.svg.png" alt="astaxanthin" width="80%" height="auto"/> </p> <p>Haematococcus pluvialis, is reported to accumulate the highest levels of ASX in nature.</p> <p align="center"> <img src="/images/2023/11/Mikrofoto.de-Blutregenalgen_3.jpg" alt="mikrofoto" width="300" height="200"/> </p> <h4 id="mechanisms-of-action-3">Mechanisms of action</h4> <p>The skin comprises epidermis, dermis and hypodermis, which form the protectively outermost barrier against external environmental stresses such as repeated sun UV ray exposure. <a href="https://en.wikipedia.org/wiki/Ultraviolet">UV</a> radiation comprises three types: UVA(Long-wave UV, Passes largely through glass and clothing), UVB(Medium-wave UV, mostly absorbed by the ozone layer, Does not pass through ‘normal’ glass. but does pass through quartz glass, Causes other forms of skin cancer.) and UVC(Short-wave UV, germicidal UV, ionizing radiation at shorter wavelengths, completely absorbed by the ozone layer and atmosphere: hard UV..s very destructive to skin cells). UVC is filtered out by atmospheric ozone for the most part, while both UVA and UVB can cause a biological change in the skin. The overview could be found from the Figure <a href="#11">[11]</a> below.</p> <p align="center"> <img src="/images/2023/11/Screenshot 2023-11-26 at 12.41.17.png" alt="mikrofoto" width="80%" height="auto"/> </p> <p>The mechanism of action of Astaxanthin (ASX) involves its multifaceted impact on cellular and molecular processes, particularly in mitigating skin aging.</p> <ol> <li><strong>Antioxidant and Anti-Inflammatory Properties:</strong> <ul> <li>ASX acts as a potent antioxidant, capturing <a href="https://en.wikipedia.org/wiki/Singlet_oxygen">singlet oxygen</a> <a href="https://en.wikipedia.org/wiki/Radical_(chemistry)">radicals</a> in the <a href="https://en.wikipedia.org/wiki/Epidermis">epidermis</a> and <a href="https://en.wikipedia.org/wiki/Dermis">dermis</a>.</li> <li>This scavenging ability contributes to the restoration of skin elasticity and a reduction in wrinkle depth.</li> </ul> </li> <li><strong>Inhibition of Reactive Oxygen Species (ROS):</strong> <ul> <li>Excessive accumulation of ROS from repeated UV exposures and intrinsic aging can lead to inflammatory responses. ASX helps suppress the activation of ROS-producing enzymes and xanthine oxidase (an enzyme found in many species, including humans, and primarily functions in the catabolism of purine nucleic acids) in UV-irradiated cells.</li> </ul> </li> <li><strong>Regulation of Inflammatory Cytokines and MMPs:</strong> <ul> <li>ASX helps modulate inflammatory cytokines (e.g., IL-1, IL-6, IL-8, TNF-α) (same as resveratrol mentioned before) released due to UV exposure and intrinsic aging.</li> <li>This modulation helps inhibit the upregulation of <a href="https://en.wikipedia.org/wiki/Matrix_metalloproteinase">matrix metalloproteinases</a> (MMPs: MMPs, can degrade collagen and elastic fibers, leading to wrinkles and loss of skin elasticity.), including MMP-1, MMP-3, and MMP-9.</li> </ul> </li> <li><strong>Maintenance of Skin Barrier Integrity:</strong> <ul> <li>ASX supports skin barrier integrity by inhibiting excessive <a href="https://en.wikipedia.org/wiki/Corneocyte">corneocyte</a> desquamation, maintaining the epidermal barrier functions.</li> <li>It decreases plasma oxidation-related <a href="https://en.wikipedia.org/wiki/Malondialdehyde">malondialdehyde</a> (MDA) concentration, contributing to overall skin health.</li> </ul> </li> <li><strong>DNA Protection and Inflammation Reduction:</strong> <ul> <li>Dietary ASX supplementation reduces DNA oxidative damage biomarkers and lowers concentrations of inflammatory markers. <a href="#11">[11]</a></li> </ul> </li> </ol> <h3 id="grape-seed-extract-">Grape Seed Extract <a name="grape_seed"></a></h3> <p>Through different and various studies, it was proved that the <a href="https://en.wikipedia.org/wiki/Proanthocyanidin">proanthocyanidin</a> rich grape seed extract provides benefits against many diseases i.e. inflammation, cardiovascular disease, hypertension, diabetes, cancer, peptic ulcer, microbial infections, etc.</p> <p>The chemical composition of Grape Seed Extract (GSE) is rich and diverse, encompassing various components obtained through specific extraction processes. Grape seeds are manually separated from grapes, air-dried, and ground to a fine powder.The powdered grape seed is macerated in 70% ethanol, filtered, and the filtrate is dried to obtain powdered GSE. Dried grape seeds contain approximately 35% fiber, 29% extractable components, including phenolic compounds, proteins (11%), minerals (3%), and water (7%). <a href="#13">[13]</a></p> <h4 id="mechanisms-of-action-4">Mechanisms of action</h4> <p>The mechanisms of action of Grape Seed Extract (GSE) are diverse and involve a range of bioactive compounds present in the extract.</p> <ol> <li><strong>Polyphenols and Flavonoids, anti-oxidant:</strong> <ul> <li>GSE is an abundant source of polyphenols and flavonoids, known for their antioxidant properties and free radical scavenging abilities. The polyphenols in GSE act as effective free radical scavengers, protecting cells from damage caused by reactive oxygen species (ROS).</li> <li>Grape seed polyphenols exhibit higher antioxidant activity compared to well-known antioxidants such as vitamin C, vitamin E, and β-carotene.</li> </ul> </li> <li><strong>Enzymes with Dual Properties for Anti-Inflammatory:</strong> <ul> <li>GSE contains enzymes that not only exhibit antioxidant properties but also catalyze the release of histamine during inflammation and allergies.</li> </ul> </li> <li><strong>Fatty Acid Composition beneficial for CVD:</strong> <ul> <li>GSE’s fatty acid composition, particularly linoleic acid, is crucial for lipid metabolism.</li> <li>Grape seed oil, extracted from the seeds, contains a high amount of unsaturated fatty acids (85-90%), including α-linolenic acid (ω-3) and γ-linolenic acid (ω-6). <a href="#13">[13]</a> (These fatty acids are associated with reducing the risk of cardiovascular disease, cancer, hypertension, and autoimmune disorders.)</li> <li>The application of grape seed oil is linked to positive effects in reducing arteriosclerosis by lowering total blood cholesterol and LDL cholesterol. <a href="#13">[13]</a></li> </ul> </li> <li><strong>Dietary Fiber Content:</strong> <ul> <li>Grape seeds and peels contain a significant amount of dietary fiber, contributing to a lower risk of colon cancer, heart disease, diabetes, and obesity.</li> </ul> </li> </ol> <h2 id="enzyme-">Enzyme <a name="enzyme"></a></h2> <h4 id="serratiopeptidase-">Serratiopeptidase <a name="Serratiopeptidase"></a></h4> <p>Serratiopeptidase is a zinc containing <a href="https://en.wikipedia.org/wiki/Metalloproteinase#:~:text=A%20metalloproteinase%2C%20or%20metalloprotease%2C%20is,Identifiers">metalloprotease</a> of molecular weight 45–60 kDa. ($1Da = 1.66053906660(50) \times 10^{-27}kg$). It is originally obtained from <a href="https://en.wikipedia.org/wiki/Serratia_marcescens">Serratia marcescens</a> isolated from the intestine of the silkworm <a href="https://en.wikipedia.org/wiki/Bombyx_mori">Bombyx mori</a>. <a href="#14">[14]</a></p> <p>The graph below is Serratia marcescens:</p> <p align="center"> <img src="/images/2023/11/Screenshot 2023-12-03 at 21.55.16.png" alt="Serratia" width="50%" height="auto"/> </p> <p>While errapeptase and other proteolytic enzymes break down proteins by <a href="https://en.wikipedia.org/wiki/Hydrolysis">hydrolyzing</a> them, breaking the <a href="https://en.wikipedia.org/wiki/Peptide">peptide</a> bonds between amino acids (the building blocks of proteins). It is well documented that oral administration of proteolytic enzymes, including serrapeptase, is fully absorbed into the bloodstream and exerts effects throughout the body.</p> <h4 id="mechanisms-of-action-5">Mechanisms of action</h4> <ol> <li><strong>Reduce pain and inflammation:</strong> <ul> <li>Hydrolyses <a href="https://en.wikipedia.org/wiki/Bradykinin">bradykinin</a>, <a href="histamine">histamine</a>, and <a href="serotonin">serotonin</a> which helps to decrease pain and swelling and improve microcirculation, which in turn supports the wound healing process. <a href="#15">[15]</a></li> <li>Break down non-living protein tisse (<a href="https://en.wikipedia.org/wiki/Fibrin">fibrin</a> that can clog artness)</li> <li>Binds to the macroblobulin inside the blood plasma IT protects itself from immune system.</li> <li>Geo target, site specific</li> </ul> </li> <li><strong>Cardiovascular Disease:</strong> <ul> <li>Plaque: Fat cholesterol, fibre, other protein</li> <li>Break down non-living protein tisse (fibrin) -&gt; blood flow</li> </ul> </li> <li><strong>Ear Nose Throat Infections:</strong> <ul> <li>Geo target inflammation</li> </ul> </li> <li><strong>Antibiofilm</strong> <ul> <li>The anti-biofilm ability of serratiopeptidase is accredited to its capability of modulating the expression of adhesion molecules and reduces cell surface proteins of bacteria. <a href="#14">[14]</a></li> </ul> </li> </ol> <h2 id="minerals-vitamins--other-">Minerals, Vitamins &amp; Other <a name="other"></a></h2> <h3 id="vitamin-d-">Vitamin D <a name="vd"></a></h3> <p>Vitamin D is a lipid-soluble <a href="https://en.wikipedia.org/wiki/Prohormone">prohormone</a> that is vital for the maintenance of bone and muscle health by promoting the absorption and metabolism of calcium and <a href="https://en.wikipedia.org/wiki/Phosphate">phosphate</a>. <a href="#16">[16]</a> In addition to food sources such as fatty fish, eggs, fortified milk and cod liver oil, the human body uses ultraviolet B (UVB) radiation from sunlight to synthesise a significant portion of vitamin D requirements.</p> <p>The figure below is from <a href="https://www.youtube.com/watch?v=DP9RHWgNZ2U&amp;ab_channel=CatalystUniversity">Catalyst University</a>, which shows the process of biosynthesis of Vitamin D.</p> <p align="center"> <img src="/images/2023/11/Screenshot 2023-12-04 at 10.11.11.png" alt="vitd" width="90%" height="auto"/> </p> <p>Starting from the up-left of the graph above, the synthesis of vitamin D starts with the oxidation of cholesterol to <a href="https://en.wikipedia.org/wiki/7-Dehydrocholesterol">7-dehydrocholesterol</a> (7-DHC). (7-dehydrocholesterol is part of the metabolic pathway that controls the synthesis of cholesterol in human cells.) 7-DHC is then transported to the skin and is stored in the cell membranes of <a href="https://en.wikipedia.org/wiki/Keratinocyte">keratinocytes</a> and <a href="https://en.wikipedia.org/wiki/Fibroblast">fibroblasts</a> in the epidermis of skin. <a href="#16">[16]</a> In the skin, 7-DHC is <a href="https://en.wikipedia.org/wiki/Photodissociation">photolysed</a> by UVB (290–315 nm) to previtamin $D_3$, which is converted to <strong>inactive</strong> vitamin D (<a href="https://en.wikipedia.org/wiki/Cholecalciferol">Cholecalciferol</a>) by photolysis-mediated thermo-isomerisation. (<a href="https://chemistry.stackexchange.com/questions/107505/what-is-thermal-isomerization">What is thermal isomerization?</a>)</p> <p>To become biologically <strong>active</strong>, the vitamin D originating from dermal production or dietary sources undergoes a series of enzymatic conversions in the liver and kidney. Vitamin D is transported to the <strong>liver</strong> by vitamin D binding protein (DBP), together they are transported to the liver where the <a href="https://en.wikipedia.org/wiki/Cytochrome_P450">cytochrome P450</a> enzyme 25-hydroxylase ([CYP2R1]) adds a hydroxylgroup on carbon 25 to produce a major circulating form of vitamin D (25-(OH)D), aka <a href="https://en.wikipedia.org/wiki/Calcifediol">Calcifediol</a>, this process on the chemical level can be seen from the graph below:</p> <p align="center"> <img src="/images/2023/11/Reaction_-_cholecalciferol_to_calcidiol_(vertical).png" alt="CYP2R1" width="50%" height="auto"/> </p> <p>The Calcifediol then circulates in the bloodstream bound to DBP and it must be further hydroxylated at a different site in the <strong>kidney</strong> tubules to gain hormonal bioactivity. Hydroxylation at position $1\alpha$ by the mitochondrial cytochrome P450 enzyme 25-hydroxyvitamin D-$1\alpha$-hydroxylase (CYP27B1) of kidney converts Calcifediol to 1α,25-dihydroxyvitamin D (aka calcitriol, is the most active form of Vitamin D, ‘trio’ because it has 3 hydroxl groups), the <em>active form</em> of vitamin D that plays an essential role in mineral <a href="https://en.wikipedia.org/wiki/Homeostasis">homeostasis</a>.</p> <p align="center"> <img src="/images/2023/11/Screenshot 2023-12-04 at 22.33.00.png" alt="vitdgene" width="90%" height="auto"/> </p> <p>As the graph (from <a href="https://www.youtube.com/watch?v=DP9RHWgNZ2U&amp;ab_channel=CatalystUniversity">Catalyst University</a>) shown above, the receptor of Calcifediol is not existed in the plasma membrane since it is hydrophobic, instead it is inside nucleus. Calcifediol is bound with <a href="https://en.wikipedia.org/wiki/Vitamin_D_receptor">Vitamin D receptor</a> (VDR) VDR thens binds to DNA as VDR/VDR homodimers or VDR/RXR <a href="https://en.wikipedia.org/wiki/Protein_dimer">heterodimers</a> in order to regulate gene expression. <a href="#16">[16]</a>. The dimers subsequently recognise and bind with transcription factor IIB (TFIIB) to a <a href="https://en.wikipedia.org/wiki/VDRE">vitamin D response element</a> (VDRE) located in the promoter region of target genes and leads to transcriptional suppression or activation of vitamin D response genes.</p> <h4 id="mechanisms-of-action-6">Mechanisms of action</h4> <ol> <li><strong>Calcium Absorption &amp; Bone Health::</strong> <ul> <li>The association of low vitamin D and bone diseases such as rickets and osteoporosis is well known. <a href="#16">[16]</a></li> <li>Vitamin D is essential for the development and maintenance of healthy bones. It works in conjunction with calcium to support bone mineralization and prevent conditions like rickets in children and osteomalacia in adults.</li> </ul> </li> <li><strong>Immune System Modulation:</strong> <ul> <li>Vitamin D has immunomodulatory effects, influencing both the innate and adaptive immune systems. It plays a role in the regulation of immune cell functions and the production of antimicrobial peptides.</li> <li>The ability to combat infections, in particular, tuberculosis, viral infections and influenza. <a href="#17">[17]</a></li> </ul> </li> <li><strong>Anti-Inflammatory Properties:</strong> <ul> <li>Vitamin D has anti-inflammatory effects and may help modulate inflammatory responses. e.g. inflammatory bowel disease. <a href="#16">[16]</a></li> </ul> </li> </ol> <h3 id="vitamin-k-">Vitamin K <a name="vk2"></a></h3> <p>Vitamin K is a family of structurally similar, fat-soluble vitamers found in foods and marketed as dietary supplements. Vitamin K is important for the function of numerous proteins within the body, such as the <a href="https://en.wikipedia.org/wiki/Coagulation">coagulation factors</a>. <a href="#18">[18]</a></p> <p>Vitamin K exists naturally as vitamin K1 (<a href="https://en.wikipedia.org/wiki/Phytomenadione">phylloquinone</a>) and vitamin K2 (<a href="https://en.wikipedia.org/wiki/Vitamin_K2">menaquinone</a>(), MK-4 through MK-10). Vitamin K1 is mainly found in green leafy vegetables as well as olive oil and soyabean oil, whereas vitamin K2 (menaquinone) is found in small amounts in chicken, butter, egg yolks, cheese and fermented soyabeans (better known as natto).</p> <p>Vitamin K1 is involved in the activation of other clotting factors, including Factors VII, IX, and X. These factors play roles in the coagulation process, preventing excessive bleeding. The absorption rate of vitamin K1 from kale and spinach – foods identified as having a high vitamin K content – are on the order of <a href="https://en.wikipedia.org/wiki/Vitamin_K">4% to 17%</a> regardless of whether raw or cooked. Vitamin K2 is synthesized by bacteria in the human gut. Some of the vitamin K1 from dietary sources is converted into vitamin K2 by these gut bacteria.</p> <h4 id="mechanisms-of-action-7">Mechanisms of action</h4> <ol> <li><strong>Bone Health:</strong> <ul> <li><a href="https://en.wikipedia.org/wiki/Osteoporosis">Osteoporosis</a> is a leading contributor of fractures worldwide. Vitamin K is required for the gamma-carboxylation of osteocalcin in bone. A broad amount of data seems to indicate substantial potential for supplementary vitamin K. vitamin K1 on its own has already been shown to reduce fractures and cancer in a clinical trial. <a href="#19">[19]</a></li> </ul> </li> <li><strong>Vascular Calcufications:</strong> <ul> <li>Some vitamin-K dependent proteins are dependent on vitamin-K carboxylation for functionality. <a href="#20">[20]</a> Vitamin K acts as a cofactor in the conversion of <a href="https://en.wikipedia.org/wiki/Glutamate_(neurotransmitter)">glutamate</a> into <a href="https://en.wikipedia.org/wiki/Matrix_Gla_protein">Matrix Gla Protein</a> (MGP). MGP regulate many anticalcification and bone-forming processes in the body, which are dependent on vitamin K in order to be produced. <a href="#18">[18]</a></li> </ul> </li> </ol> <h3 id="magnesium-">Magnesium <a name="magnesium"></a></h3> <p>Electrolytes such as sodium, potassium, calcium, and magnesium are physiologically important due to their integral roles in metabolic and biologic processes. <a href="#21">[21]</a> Magnesium (${Mg}^{2+}$) possesses two <a href="https://en.wikipedia.org/wiki/Solvation_shell">hydration shells</a>, making its hydrated radius larger than that of other cations (${Na}^+$, $K^+$, and ${Ca}^{2+}$).</p> <p>The ‘hydrated radius’ is the effective size of the ion when surrounded by water molecules. In the case of magnesium, it has two layers or shells of water molecules around it. Because magnesium has two hydration shells, the presence of these water layers makes the effective size or radius of the hydrated magnesium ion larger compared to other cations (positively charged ions).</p> <p>Magnesium is an essential mineral which is a cofactor in over 300 enzymatic reactions for protein synthesis such as muscle contraction, nerve function, blood pressure and hormone binding. <a href="#22">[22]</a>. Magnesium is required for energy production, oxidative phosphorylation, and glycolysis. It contributes to the structural development of bone and is required for the synthesis of DNA, RNA, and the antioxidant glutathione. Magnesium also plays a role in the active transport of calcium and potassium ions across cell membranes, a process that is important to nerve impulse conduction, muscle contraction, and normal heart rhythm. <a href="#23">[23]</a></p> <p>As we discussed in the Vitamin D section, vitamin D can’t work without first being converted into a form your body can absorb. The level to which a vitamin or mineral can be absorbed is known as its “bioavailability.” Vitamin D’s bioavailability depends on magnesium. The enzymes (in the liver and kidneys) that enable vitamin D metabolism—converting it into its active form, calcitriol — can’t work without sufficient amounts of magnesium to draw upon.</p> <p>Early signs of magnesium deficiency include loss of appetite, nausea, vomiting, fatigue, and weakness. Therefore proper intake of magnesium from food or supplements is important. Magnesium supplements are available in a variety of forms. The following information comes from Dr. Jin W. Sung. ‘s YouTube Channel <a href="#23">[23]</a>.</p> <ol> <li><strong>Magnesium Citrate:</strong> <ul> <li>Absorption Rate: 30%</li> <li>Benefits: Good for constipation.</li> <li>Additional Info: More completely absorbed in the gut; considered more bioavailable.</li> </ul> </li> <li><strong>Magnesium Aspartate:</strong> <ul> <li>Absorption Rate: 42%</li> <li>Benefits: Excites neural transmitter activity.</li> <li>Additional Info: May enhance neural functions; higher absorption rate.</li> </ul> </li> <li><strong>Magnesium Glycinate:</strong> <ul> <li>Absorption Rate: 24%</li> <li>Benefits: Glycine is a precursor to GABA (inhibitory neurotransmitter), useful for calming effects.</li> <li>Additional Info: Supports <a href="https://en.wikipedia.org/wiki/%CE%93-Aminobutyric_acid">GABA</a> production; suitable for relaxation.</li> </ul> </li> <li><strong>Magnesium Chloride:</strong> <ul> <li>Absorption Rate: 20%</li> <li>Benefits: Suitable for individuals with low stomach acid issues.</li> <li>Additional Info: May be helpful for those with digestive concerns.</li> </ul> </li> <li><strong>Magnesium Sulfate:</strong> <ul> <li>Absorption Rate: 4%-7%</li> <li>Benefits: Limited information provided.</li> <li>Additional Info: Slightly lower absorption rate compared to other forms.</li> </ul> </li> <li><strong>Magnesium Oxide:</strong> <ul> <li>Absorption Rate: 4%</li> <li>Benefits: Limited information provided.</li> <li>Additional Info: One of the less soluble forms; lower absorption rate.</li> </ul> </li> <li><strong>Magnesium Theonate:</strong> <ul> <li>Absorption Rate: High</li> <li>Benefits: Suggested for sleep.</li> <li>Additional Info: May have specific benefits for sleep support.</li> </ul> </li> </ol> <h3 id="omega-3-fatty-acids-">Omega-3 Fatty Acids <a name="Omega-3"></a></h3> <p><strong>Fish Oil:</strong> Fish oil is a dietary supplement derived from the tissues of fatty fish, such as salmon, mackerel, and sardines. It is rich in omega-3 fatty acids, which are essential for various physiological functions in the body.</p> <p><strong>Omega-3 Fatty Acids:</strong> Omega-3 fatty acids are a type of <a href="https://en.wikipedia.org/wiki/Polyunsaturated_fat">polyunsaturated</a> fat that includes three main types: eicosapentaenoic acid (<a href="https://en.wikipedia.org/wiki/Eicosapentaenoic_acid">EPA</a>), docosahexaenoic acid (<a href="https://en.wikipedia.org/wiki/Docosahexaenoic_acid">DHA</a>), and alpha-linolenic acid (<a href="https://en.wikipedia.org/wiki/%CE%91-Linolenic_acid">ALA</a>). EPA and DHA are commonly found in fish oil, while ALA is present in plant-based sources like flaxseeds and walnuts.</p> <p><strong>Omega-6 Fatty Acids:</strong> Omega-6 fatty acids are another group of polyunsaturated fats that include linoleic acid (<a href="https://en.wikipedia.org/wiki/Linoleic_acid">LA</a>) and arachidonic acid (<a href="https://en.wikipedia.org/wiki/Arachidonic_acid">AA</a>). These fats are found in various vegetable oils and nuts.</p> <h3 id="mechanism-of-action">Mechanism of Action:</h3> <ol> <li><strong>Anti-Inflammatory Properties:</strong> <ul> <li><strong>Omega-3s:</strong> EPA and DHA from fish oil have anti-inflammatory effects. They can compete with omega-6 fatty acids for the same enzymes, leading to the production of less inflammatory molecules.</li> </ul> </li> <li><strong>Cardiovascular Health:</strong> <ul> <li><strong>Omega-3s:</strong> EPA and DHA contribute to cardiovascular health by reducing triglycerides, lowering blood pressure, and preventing the formation of blood clots. They also have a positive impact on heart rhythm.</li> </ul> </li> <li><strong>Brain Health:</strong> <ul> <li><strong>Omega-3s:</strong> DHA, in particular, is crucial for brain health and development. It makes up a significant portion of the brain’s structure and plays a role in cognitive function.</li> </ul> </li> <li><strong>Joint Health:</strong> <ul> <li><strong>Omega-3s:</strong> Fish oil’s anti-inflammatory properties may benefit joint health, reducing symptoms in conditions like rheumatoid arthritis.</li> </ul> </li> <li><strong>Immune System Support:</strong> <ul> <li><strong>Omega-3s:</strong> EPA and DHA support the immune system by promoting the activity of immune cells.</li> </ul> </li> <li><strong>Cellular Function:</strong> <ul> <li><strong>Balancing Omega-3 and Omega-6:</strong> Maintaining a balance between omega-3 and omega-6 fatty acids is essential. An imbalance, often seen in Western diets, may contribute to chronic inflammation and various health issues.</li> </ul> </li> <li><strong>Neuroprotective Effects:</strong> <ul> <li><strong>DHA:</strong> DHA has neuroprotective effects and is crucial for the development and function of the nervous system.</li> </ul> </li> <li><strong>ALA Conversion:</strong> <ul> <li><strong>ALA:</strong> ALA, found in plant-based sources, can be converted into EPA and DHA in the body, although the conversion rate is relatively low.</li> </ul> </li> </ol> <h2 id="suggest-doses-summary-and-concerns-">Suggest Doses, Summary and Concerns <a name="summary_and_concerns"></a></h2> <p>Supplements come in various forms, and understanding their safe levels is crucial. The following is a brief corresponding supplement suggested dosage based on Observed Safe Level (OSL) of human body.</p> <ol> <li><strong>NMN (Nicotinamide Mononucleotide):</strong> <ul> <li>NMN products, popular for anti-aging, are available in high doses (e.g., 500 mg).</li> <li>Safety is uncertain; rigorous scientific studies are essential for establishing long-term administration levels. <a href="#7">[7]</a></li> </ul> </li> <li><strong>Astaxanthin:</strong> <ul> <li>This fat-soluble carotenoid is best absorbed with fat-containing meals.</li> <li>Dosages range from 4 mg to 12 mg daily, with the ideal amount tailored to age, health, and individual conditions.</li> <li>Always follow product label dosages or consult a healthcare professional.</li> </ul> </li> <li><strong>Serratiopeptidase:</strong> <ul> <li>Recommended dosage is 60 mg/day on an empty stomach in the morning.</li> </ul> </li> <li><strong>Vitamin K:</strong> <ul> <li>Adequate intake (AI) is suggested at 90 μg/day for women and 120 μg/day for men. <a href="#18">[18]</a></li> </ul> </li> <li><strong>Vitamin D:</strong> <ul> <li>The recommended daily amount of vitamin D is 400 international units (IU) for children up to age 12 months, 600 IU for people ages 1 to 70 years, and 800 IU for people over 70 years.</li> </ul> </li> <li><strong>Magnesium:</strong> <ul> <li>The average requirement is 300–400 mg/day, varying based on factors like gender, age, and individual needs.</li> </ul> </li> </ol> <p>Understanding the motivation behind exploring supplements is essential. However, it’s equally important to approach these substances with caution. Many supplements listed here are best absorbed when taken with a fatty meal. This enhances their bioavailability, ensuring your body can make the most of their benefits.</p> <p>Remember, the decision to supplement should not be taken lightly. Always consult with a healthcare professional before introducing any new supplements into your meal. In such cases, seeking guidance from a doctor or checking a reliable drug interaction website (e.g. https://reference.medscape.com/drug-interactionchecker) is advisable to ensure compatibility and prevent any potential adverse effects.</p> <h2 id="useful-links">Useful links</h2> <ol> <li>Drug interation: https://reference.medscape.com/drug-interactionchecker</li> </ol> <h2 id="references">References</h2> <p><a id="1">[1]</a> Zhang, Li-Xue, Chang-Xing Li, Mohib Ullah Kakar, Muhammad Sajjad Khan, Pei-Feng Wu, Rai Muhammad Amir, Dong-Fang Dai, et al. ‘Resveratrol (RV): A Pharmacological Review and Call for Further Research’. Biomedicine &amp; Pharmacotherapy 143 (November 2021): 112164. https://doi.org/10.1016/j.biopha.2021.112164.</p> <p><a id="2">[2]</a> Mattison, Julie A., Mingyi Wang, Michel Bernier, Jing Zhang, Sung-Soo Park, Stuart Maudsley, Steven S. An, et al. ‘Resveratrol Prevents High Fat/Sucrose Diet-Induced Central Arterial Wall Inflammation and Stiffening in Nonhuman Primates’. Cell Metabolism 20, no. 1 (July 2014): 183–90. https://doi.org/10.1016/j.cmet.2014.04.018.</p> <p><a id="3">[3]</a> Marques, Francine Z., M. Andrea Markus, and Brian J. Morris. ‘Resveratrol: Cellular Actions of a Potent Natural Chemical That Confers a Diversity of Health Benefits’. The International Journal of Biochemistry &amp; Cell Biology 41, no. 11 (November 2009): 2125–28. https://doi.org/10.1016/j.biocel.2009.06.003.</p> <p><a id="4">[4]</a> Y. Bai, H. Yang, G. Zhang, L. Hu, Y. Lei, Y. Qin, Y. Yang, Q. Wang, R. Li, Q. Mao, Inhibitory effects of resveratrol on the adhesion, migration and invasion of human bladder cancer cells, Mol. Med. Rep. 15 (2) (2017) 885–889.</p> <p><a id="5">[5]</a> Shade C. The Science Behind NMN-A Stable, Reliable NAD+Activator and Anti-Aging Molecule. Integr Med (Encinitas). 2020 Feb;19(1):12-14. PMID: 32549859; PMCID: PMC7238909.</p> <p><a id="6">[6]</a> Schultz MB et al. Why NAD+ Declines during Aging: It’s Destroyed. Cell Metab. 2016 June 14; 23(6): 965–966</p> <p><a id="7">[7]</a> Nadeeshani, H., Li, J., Ying, T., Zhang, B., &amp; Lu, J. (2021). Nicotinamide mononucleotide (NMN) as an anti-aging health product – Promises and safety concerns. Journal of Advanced Research. doi:10.1016/j.jare.2021.08.003</p> <p><a id="8">[8]</a> Dyer, Andrew R. ‘CoQ10: A Literature Review’ 40, no. 1 (n.d.).</p> <p><a id="9">[9]</a> Kędziora-Kornatowska K, Czuczejko J, Motyl J, Szewczyk-Golec K, Kozakiewicz M, Pawluk H, Kędziora J, Błaszczak R, Banach M, Rysz J. Effects of coenzyme Q10 supplementation on activities of selected antioxidative enzymes and lipid peroxidation in hypertensive patients treated with indapamide. A pilot study. Arch Med Sci. 2010 Aug 30;6(4):513-8.</p> <p><a id="10">[10]</a> Cordero MD, Cano-García FJ, Alcocer-Gómez E, De Miguel M, Sánchez-Alcázar JA. Oxidative stress correlates with headache symptoms in fibromyalgia: coenzyme Q₁₀ effect on clinical improvement. PLoS One. 2012;7(4):e35677.</p> <p><a id="11">[11]</a> Zhou, Xiangyu, Qingming Cao, Caroline Orfila, Jian Zhao, and Lin Zhang. ‘Systematic Review and Meta-Analysis on the Effects of Astaxanthin on Human Skin Ageing’. Nutrients 13, no. 9 (24 August 2021): 2917. https://doi.org/10.3390/nu13092917.</p> <p><a id="12">[12]</a> Higuera-Ciapara, I.; Felix-Valenzuela, L.; Goycoolea, F. Astaxanthin: A review of its chemistry and applications. Crit. Rev. Food Sci. Nutr. 2006, 46, 185–196.</p> <p><a id="13">[13]</a> Gupta, Madhavi, Sanjay Dey, Daphisha Marbaniang, Paulami Pal, Subhabrata Ray, and Bhaskar Mazumder. ‘Grape Seed Extract: Having a Potential Health Benefits’. Journal of Food Science and Technology 57, no. 4 (April 2020): 1205–15. https://doi.org/10.1007/s13197-019-04113-w.</p> <p><a id="14">[14]</a> Jadhav, Swati B., Neha Shah, Ankit Rathi, Vic Rathi, and Abhijit Rathi. ‘Serratiopeptidase: Insights into the Therapeutic Applications’. Biotechnology Reports 28 (December 2020): e00544. https://doi.org/10.1016/j.btre.2020.e00544.</p> <p><a id="15">[15]</a> L. Desser, A. Rehberger, E. Kokron, W. Paukovits, Cytokine synthesis in human peripheral blood mononuclear cells after oral administration of polyenzyme preparations, Oncology. 50 (1993) 403–407.</p> <p><a id="16">[16]</a> Basit, S. ‘Vitamin D in Health and Disease: A Literature Review’. British Journal of Biomedical Science 70, no. 4 (1 January 2013): 161–72. https://doi.org/10.1080/09674845.2013.11669951.</p> <p><a id="17">[17]</a> Ginde AA, Mansbach JM, Camargo CA Jr. Association between serum 25-hydroxyvitamin D level and upper respiratory tract infection in the Third National Health and Nutrition Examination Survey. Arch Intern Med 2009; 169: 384–90.</p> <p><a id="18">[18]</a> DiNicolantonio, James J, Jaikrit Bhutani, and James H O’Keefe. ‘The Health Benefits of Vitamin K’. Open Heart 2, no. 1 (October 2015): e000300. https://doi.org/10.1136/openhrt-2015-000300.</p> <p><a id="19">[19]</a> Cockayne S, Adamson J, Lanham-New S, et al. Vitamin K and the prevention of fractures: systematic review and meta-analysis of randomized controlled trials. Arch Intern Med 2006;166:1256–61.</p> <p><a id="20">[20]</a> Berkner KL. The vitamin K-dependent carboxylase. Annu Rev Nutr 2005;25:127–49.</p> <p><a id="21">[21]</a> L.L. Yu, W.C. Davis, Y. Nuevo Ordonez, S.E. Long, Fast and accurate determination of K, Ca, and Mg in human serum by sector field ICP-MS, Anal. Bioanal. Chem. 405 (27) (2013) 8761–8768.</p> <p><a id="22">[22]</a> Author Dr. Jin W. Sung. “Magnesium—-Comprehensive Guide. Forms of magnesium, benefits, dosages, impact on Vitamin D.” YouTube, uploaded by Dr. Jin W. Sung, June 2023,https://www.youtube.com/watch?v=Z4ohSzChgII&amp;ab_channel=Dr.JinW.Sung</p> <p><a id="23">[23]</a> Rude RK. Magnesium. In: Ross AC, Caballero B, Cousins RJ, Tucker KL, Ziegler TR, eds. Modern Nutrition in Health and Disease. 11th ed. Baltimore, Mass: Lippincott Williams &amp; Wilkins; 2012:159-75.</p> <p><a id="24">[24]</a> Simopoulos, Ap. ‘Omega-3 Fatty Acids in Health and Disease and in Growth and Development’. The American Journal of Clinical Nutrition 54, no. 3 (September 1991): 438–63. https://doi.org/10.1093/ajcn/54.3.438.</p>]]></content><author><name></name></author><category term="general science"/><summary type="html"><![CDATA[Disclaimer Introduction: Motivaton of this blog Anti-aging Supplements Resveratrol NMN Ubiquinol Astaxanthin Grape Seed Extract Enzyme Serratiopeptidase Minerals, Vitamins &amp; Fatty Acids Vitamin D Vitamin K Magnesium Omega-3 Fatty Acids Suggest Doses, Summary and Concerns]]></summary></entry><entry><title type="html">Podcast Notes: Huberman Lab Dopomine</title><link href="https://paranoiarchive.com//blog/2022/podcast-notes-huberman-lab-dopomine/" rel="alternate" type="text/html" title="Podcast Notes: Huberman Lab Dopomine"/><published>2022-05-29T00:00:00+00:00</published><updated>2022-05-29T00:00:00+00:00</updated><id>https://paranoiarchive.com//blog/2022/podcast-notes-huberman-lab-dopomine</id><content type="html" xml:base="https://paranoiarchive.com//blog/2022/podcast-notes-huberman-lab-dopomine/"><![CDATA[<p><strong>Huberman Lab: Controlling Your Dopamine For Motivation, Focus &amp; Satisfaction</strong></p> <p>Dopamine (DA, a contraction of 3,4-dihydroxyphenethylamine) is a neuromodulatory molecule that plays several important roles in cells. Dopamine is the substance that curculating in your system, it is <strong>responsible for motivation, craving thing, and also for time perception</strong>. The depletion of dopamine will lead to diseases, for example, Parkinson’s disease, a degenerative condition causing tremor and motor impairment, is caused by a loss of dopamine-secreting neurons in an area of the midbrain called the substantia nigra. Tonic and Phasic refers to the low and peaks level of your dopamin baseline.</p> <p><strong>Two main circuits for dopamine</strong></p> <ul> <li>The mesolimbic pathway: sometimes referred to as the reward pathway, is a dopaminergic pathway in the brain. The pathway connects the ventral tegmental area in the midbrain to the ventral striatum of the basal ganglia in the forebrain. The ventral striatum includes the nucleus accumbens and the olfactory tubercle. The release of dopamine from the mesolimbic pathway into the nucleus accumbens regulates incentive salience (e.g. motivation and desire for rewarding stimuli) and <strong>facilitates reinforcement and reward-related motor function learning.</strong></li> <li>The nigrostriatal pathway is a bilateral dopaminergic pathway in the brain that connects the substantia nigra pars compacta (SNc) in the midbrain with the dorsal striatum (i.e., the caudate nucleus and putamen) in the forebrain. <strong>This is the path that generates movements.</strong></li> </ul> <p><strong>How dopamine communicate?</strong></p> <p>There are two ways for dopamine to communicate, one is what we called local synapse release, basically it is a way where 2 neurons are communicating through the electric signal. And the other is a broader way, the volumetric release, this is like a broader way to release high density or much more neurons at the same time (Because dopamine is a neuron <strong>neuromodulator</strong>).</p> <p>We all have our own baseline to feel happy and pleasure, if you are taking drug, the kind of pleasure will instantly leads you the a very peak of dopamine, of course higher than your baseline, but if you’re experiencing this type of peak pleasure in a long period of time, your baseline will be higher too. It is very intuitive because you won’t be happier like when you’re kid when you received candies. Therefore controlling relativity gap between your baseline and peak is important.</p> <p><strong>Dopamine hit</strong></p> <p>Your behaviour can somehow depict your dopamine state, if you have no motivation to do things, you’re in a low dopamine state, when you try your first skydive and you feel scared or you are about to do a public speaking, you’re in a high dopamine state. And every time you enter into the high dopamine state, or you have a dopamine difference compared to the last state, you’re experiencing a dopamine hit, this could be when you eat a chocolate, you’re scrolling Instagram or Tiktok. But when you repeated engaged in things you are doing, your dopamine threshold hold will be higher.</p> <p><strong>Parkingson and Drugs</strong></p> <p>Andrew talked about a story about some young people who were addicted to heroine trying to get some drug called MPPP but mistakenly bought MPTP somewhere in california, what ended up is that the they couldn’t speak and have no movement to do things. It turns out the MPTP kills the nigrostriatal pathway where it generates the movement.</p> <p><strong>Control dopamine peaks &amp; baseline</strong></p> <p>All people have different levels of dopamine baseline because of several reasons. (e.g. Gene) Dopamine and epinephrine (aka adrenaline) are cousins. The release of epinephrine depends on the release of dopamine</p> <p>The list of things that affect your baseline:</p> <ul> <li>Chocolate: increase 1.5 higher times of your dopamine, but transient.</li> <li>Sex: increase 2 times higher of your dopamine baseline. transient.</li> <li>Nicotine: 2.5 times higher of your dopamine baseline. Very short-lived.</li> <li>Cocane: 2.2 times of your higher dopamine</li> <li>Amphetamine: 10 times of your baseline.</li> <li>Exercise (Running): 2 times in general, for people who don’t like, maybe no or less dopamine.</li> <li>caffeine: Pretty modest amount of increase in dopamine. But interesting fact is that <strong>caffeine increase the number of receptors when you release your dopamine. (Means the effect/performance will be better when you’re releasing dopamine)</strong></li> </ul> <p><strong>Dopamine Setpoint</strong></p> <p>Dopamine is the universal currency of all the mammals, this substance allows us seeking, motivating us to do things. But counter intuitively is that when you reach the peak of your dopamine, after a while, you might feel low, it is because your dopamine drop to the lower level than before. An example is that postpartum depression aka PPD, when you had a greater reward, after that your dopamine will be back to a lower level. Same as when you finished your graduation or a long trip, you might experience sometime of de-motivation or ‘depression’. It always takes some time for the dopamine to come back to stability from the ‘setpoint’.</p> <p>And one thing to keep in mind is that you only have <strong>certain amount of dopamine</strong> what we called pool of dopamine and only those are in readily releasable pool that could be ‘deployed’ or say released in a certain amount of time.</p> <p>Another thing is that for those ‘play hard and party hard’ type of person, they could do multi-tasking and feel energetic through the week, at some point, they will experience the low level of dopamine in there lives, which is not caused by aging or slow metabolism, it is because for all of the ‘hard’ mode things in their life, it all consumes dopamine and it might all reach to a peak to some extends, and gradually, the baseline of your dopamine will drop. Then you will feel much harder to feel pleasure of doing things as before.</p> <p><strong>Ensure the Best Evoking Dopamine Release</strong></p> <p>How do we maintain a good level of our dopamine baseline while reaching our peaks? The key thing is <strong>not to a expect or chase high levels of dopamine release every time we’re engaging in certain things.</strong> What you need is a random intermittent reinforcement schedules. Things you could do is to start by observing the things that gives you high pleasure or motivation, and randomly modified the ‘factor’ that enhancing this activity. For example, when you’re doing exercise, you’re also drinking your energetic drinks beforehand and listening to your favorite music when you’re running, what you can do is to cut one of those things, only focus on one thing that give your relatively high but not peak dopamine release activity. You could do a flip coin before to decide whether to take those <strong>dopamine supportive elements</strong> with you into the gym.</p> <p>Smart phone (social media) is a very usual dopamine supportive element in our modern daily life and it alters the way our dopamine baseline changes. A good practice is to remove the smart phone element in our activity as much as possible, e.g. When working out or doing other things.</p> <p><strong>Activities that increase our dopamine baseline</strong></p> <p>Activities that increase our dopamine baseline: <strong>Cold exposure</strong> (shower with cold water). Another interesting fact is that when you’re getting reward as you finish something, you’re actually demotivating throughout the engagement the task. The key thing is having the <strong>growth mindset</strong>, which is only focusing the effort and the process you’re doing, and at the same time removing other things that gives you dopamine, only focus on the effort part and remind yourself that this thing could bring the release of dopamine and you will love it in the end. In summary, <strong>don’t spike your dopamine prior or after your activity, spike your dopamine in the effort when you’re doint it</strong>.</p> <p><strong>Intermittent fasting</strong> could also help because of the fact that when we’re eating, we’re releasing dopamine. Quitting sugar and palatable food and instead eat whole foods. Same as preventing constantly spending time and receive pleasure through watching the pornography.</p> <p><strong>Supplement that increase our dopamine baseline</strong></p> <p>Some supplement that could increase the dopamine baseline, one is <strong>Macuna Pruiens</strong>, this could also help manage stress, which also helps improve sexual health. <strong>L-tyrosine</strong>: Tyrosine is a nonessential amino acid the body makes from another amino acid called phenylalanine. It is an essential component for the production of several important brain chemicals called neurotransmitters, including epinephrine, norepinephrine, and dopamine. Those are supplement and <strong>not meant to use it regularly, could use it once or twice a week.</strong> <strong>Phenylethylamine, PEA</strong> is also good for releasing dopamine (the host take it from time to time for work focus, 500ml PEA and 300ml of <strong>Alpha-GPC</strong>). One compound called <strong>Huperzine A</strong> also gained some popularity recently. For Molatonin, there is a study in 2001 about reducing dopamine, so this is something we might need to avoid.</p>]]></content><author><name></name></author><category term="other"/><category term="podcast"/><summary type="html"><![CDATA[Huberman Lab: Controlling Your Dopamine For Motivation, Focus &amp; Satisfaction]]></summary></entry><entry><title type="html">ERC 721</title><link href="https://paranoiarchive.com//blog/2022/erc-721/" rel="alternate" type="text/html" title="ERC 721"/><published>2022-03-20T00:00:00+00:00</published><updated>2022-03-20T00:00:00+00:00</updated><id>https://paranoiarchive.com//blog/2022/erc-721</id><content type="html" xml:base="https://paranoiarchive.com//blog/2022/erc-721/"><![CDATA[<p><strong>Token</strong></p> <ul> <li>Token (A token on Ethereum is basically just a smart contract that follows some common rules — namely it implements a standard set of functions that all other token contracts share) ERC: Ethereum Request for Comments;</li> <li>ERC 20: An ERC20 token is a standard used for creating and issuing smart contracts on the Ethereum blockchain. Smart contracts can then be used to create smart property or tokenized assets that people can invest in, could act as currencies because the it has divisible and exchangeable properties. Fungible token (Bitcoin, ETH)</li> <li>ERC 721: ERC721 tokens are not interchangeable since each one is assumed to be unique, and are not divisible. for example NFT (Non Fungible Token)</li> </ul> <p>contract ERC721 { event Transfer(address indexed _from, address indexed _to, uint256 indexed _tokenId); event Approval(address indexed _owner, address indexed _approved, uint256 indexed _tokenId);</p> <p>function balanceOf(address _owner) external view returns (uint256); function ownerOf(uint256 _tokenId) external view returns (address); function transferFrom(address _from, address _to, uint256 _tokenId) external payable; function approve(address _approved, uint256 _tokenId) external payable; }</p> <p><strong>balanceOf</strong></p> <p>This function simply takes an address, and returns how many tokens that address owns.</p> <p>Note: Remember, uint256 is equivalent to uint. We’ve been using uint in our code up until now, but we’re using uint256 here because we copy/pasted from the spec.</p> <p><strong>ownerOf</strong></p> <p>This function takes a token ID , and returns the address of the person who owns it.</p> <p><strong>transferFrom</strong></p> <p>Note that the ERC721 spec has 2 different ways to transfer tokens:</p> <ul> <li>The first way is the token’s owner calls transferFrom with his address as the _from parameter, the address he wants to transfer to as the _to parameter, and the _tokenId of the token he wants to transfer.</li> <li>The second way is the token’s owner first calls approve with the address he wants to transfer to, and the _tokenID . The contract then stores who is approved to take a token, usually in a mapping (uint256 \(latex {=&gt;}&amp;fg=000000\) address). Then, when the owner or the approved address calls transferFrom, the contract checks if that msg.sender is the owner or is approved by the owner to take the token, and if so it transfers the token to him.</li> </ul>]]></content><author><name></name></author><category term="未分类"/><summary type="html"><![CDATA[Token]]></summary></entry><entry><title type="html">Cost Functions and its properties in Deep Learning</title><link href="https://paranoiarchive.com//blog/2022/cost-functions-and-its-properties-in-deep-learning-tbc/" rel="alternate" type="text/html" title="Cost Functions and its properties in Deep Learning"/><published>2022-01-08T00:00:00+00:00</published><updated>2022-01-08T00:00:00+00:00</updated><id>https://paranoiarchive.com//blog/2022/cost-functions-and-its-properties-in-deep-learning-tbc</id><content type="html" xml:base="https://paranoiarchive.com//blog/2022/cost-functions-and-its-properties-in-deep-learning-tbc/"><![CDATA[<p><strong>Loss Function and Cost Function</strong></p> <p>In supervised learning, concretely we’re learning from given training set \(\left(x_i, y_i\right)\) and formulate our hypotheses \(h_\theta(x)\). Here, the \(\theta_i\) ‘s are the parameters (also called weights) parameterizing the space of linear functions mapping from \(\mathcal{X}\) to \(\mathcal{Y}\). When there is no risk of confusion, we will drop the \(\theta\) subscript in \(h_\theta(x)\), and write it more simply as \(h(x)\).</p> <p>The goal of our learning is to minimize the distance between hypotheses and the real y, and Loss function is a function to measure such distance.</p> <p><strong>The difference between Loss Function and Cost Function</strong></p> <ul> <li>Loss function always appear when we are talking about 1 single training sample, given a prediction and calculate the loss between the prediction and real value.</li> <li>Cost function refers to the whole loss when we are talking about set of training sets (e.g. in mini-batch gradient descent)</li> <li>Hypothesis (objective function) is the function that needs to be optimized.</li> </ul> <p><strong>Mean Squared Error (MSE) L2 Loss</strong></p> <p>Mean Squared Error is the most common cost function used in regression problems, also called L2 loss, the formula is as followed:</p> \[\left.J(\theta)=\frac{1}{n} \sum_{i=1}^n\left(y^{(i)}-\hat{y}^{(i)}\right)\right)^2\] <p>We could see from the graph below, the square error is increased in a quadratic way, the lowest loss is 0 and and highest loss could be infinite.</p> <p align="center"> <img src="https://zhengliangliang.files.wordpress.com/2022/01/screenshot-2022-01-08-at-18.45.40.png" alt="screenshot" width="80%" height="auto"/> </p> <p>The MSE is very useful in regression problem, from the perspective of bias and variance perspective, we could do a bias and variance decomposition from MSE function.</p> <ul> <li><strong>Bias</strong> indicates the distance between the expectation of predicted value and real value. Geometrically speaking, if bias is big, then predicted deviates further from the real value. It is the relationship between predicted value and real value, denotes as \(=\mathbb{E}(\hat{\theta})-\theta\)</li> <li><strong>Variance</strong> describes the variation range of the predicted value, the degree of dispersion, that is, the distance from its own expectation. The larger the variance, the more spread out the distribution of the data. It is the relationship within the predicted values, denote as \(\operatorname{Var}=\mathbb{E}\left[(\hat{\theta}-\mathbb{E}(\hat{\theta}))^2\right]\)</li> </ul> <p>By using the decomposition trick in MSE equation shown in <a href="#eqdecompositionmse">2</a>. We could get that MSE is actually the addition of variance and the square of bias.</p> \[\begin{aligned} M S E(\hat{\theta}) &amp; =\mathbb{E}\left[(\hat{\theta}-\mathbb{E}(\hat{\theta})+\mathbb{E}(\hat{\theta})-\theta)^2\right] \\ &amp; =\mathbb{E}\left[(\hat{\theta}-\mathbb{E}(\hat{\theta}))^2+2((\hat{\theta}-\mathbb{E}(\hat{\theta}))(\mathbb{E}(\hat{\theta})-\theta))+(\mathbb{E}(\hat{\theta})-\theta)^2\right] \\ &amp; =\mathbb{E}\left[(\hat{\theta}-\mathbb{E}(\hat{\theta}))^2\right]+2 \mathbb{E}[(\hat{\theta}-\mathbb{E}(\hat{\theta}))(\mathbb{E}(\hat{\theta})-\theta)]+\mathbb{E}\left[(\mathbb{E}(\hat{\theta})-\theta)^2\right] \\ &amp; =\mathbb{E}\left[(\hat{\theta}-\mathbb{E}(\hat{\theta}))^2\right]+2(\mathbb{E}(\hat{\theta})-\theta) \mathbb{E}(\hat{\theta}-\mathbb{E}(\hat{\theta}))^2+\mathbb{E}\left[(\mathbb{E}(\hat{\theta})-\theta)^2\right] \\ &amp; =\mathbb{E}\left[(\hat{\theta}-\mathbb{E}(\hat{\theta}))^2\right]+\mathbb{E}\left[(\mathbb{E}(\hat{\theta})-\theta)^2\right] \\ &amp; =\operatorname{Var}(\hat{\theta})+\operatorname{Bias}(\hat{\theta}, \theta)^2\end{aligned}\] <p><strong>Probabilistic interpretation of MSE</strong></p> <p>A better explanation for using the MSE could be derived from a probabilistic interpretation. The relationship of the target hypothesis and real value y could be formed as</p> \[y^{(i)}=\theta^T x^{(i)}+\epsilon^{(i)}\] <p>where \(\epsilon^{(i)}\) is an error term that captures either unmodeled effects, or random noise. Let us further assume that the \(\epsilon^{(i)}\) are distributed IID (independently and identically distributed) according to a Gaussian distribution (also called a Normal distribution) with mean zero and some variance \(\sigma^2\). We can write this assumption as ‘ \(\epsilon{ }^{(i)} \sim \mathcal{N}\left(0, \sigma^2\right)\).’ l.e., the density of \(\epsilon^{(i)}\) is given by</p> \[p\left(\epsilon^{(i)}\right)=\frac{1}{\sqrt{2 \pi} \sigma} \exp \left(-\frac{\left(\epsilon^{(i)}\right)^2}{2 \sigma^2}\right)\] <p>This implies that</p> \[p\left(y^{(i)} \mid x^{(i)} ; \theta\right)=\frac{1}{\sqrt{2 \pi} \sigma} \exp \left(-\frac{\left(y^{(i)}-\theta^T x^{(i)}\right)^2}{2 \sigma^2}\right)\] <p>When we wish to explicitly view this as a function of \(\theta\), we will instead call it the likelihood function:</p> \[L(\theta)=L(\theta ; X, \vec{y})=p(\vec{y} \mid X ; \theta)\] <p>The MLE (Maximization of Likelihood Estimation) is a method we used to do the parameter estimation, here we have the parameter theta to be estimated, in order to maximize the likelihood, normally we took the log of this likelihood function (because likelihood function involves tons of probability products, using log form to transform it to summation form), so we have:</p> \[\begin{aligned} L(\theta) &amp; =\prod_{i=1}^n p\left(y^{(i)} \mid x^{(i)} ; \theta\right) \\ &amp; =\prod_{i=1}^n \frac{1}{\sqrt{2 \pi} \sigma} \exp \left(-\frac{\left(y^{(i)}-\theta^T x^{(i)}\right)^2}{2 \sigma^2}\right)\end{aligned}\] \[\begin{aligned} \ell(\theta) &amp; =\log L(\theta) \\ &amp; =\log \prod_{i=1}^n \frac{1}{\sqrt{2 \pi} \sigma} \exp \left(-\frac{\left(y^{(i)}-\theta^T x^{(i)}\right)^2}{2 \sigma^2}\right) \\ &amp; =\sum_{i=1}^n \log \frac{1}{\sqrt{2 \pi} \sigma} \exp \left(-\frac{\left(y^{(i)}-\theta^T x^{(i)}\right)^2}{2 \sigma^2}\right) \\ &amp; =n \log \frac{1}{\sqrt{2 \pi} \sigma}-\frac{1}{\sigma^2} \cdot \frac{1}{2} \sum_{i=1}^n\left(y^{(i)}-\theta^T x^{(i)}\right)^2 .\end{aligned}\] <p>Hence, maximizing \(\ell\left(\theta\right)\) gives the same answer as minimizing</p> <p>\(\frac{1}{2} \sum_{i=1}^n\left(y^{(i)}-\theta^T x^{(i)}\right)^2\) The equation <a href="#eqols">9</a> is also known as ordinary least square. When linear regression model is built, you would usually use the least square error (LSE) method that is minimizing the total euclidean distance between a line and the data points.</p> <p>Once the model is built, in order to evaluate its performances. A metric is introduced to evaluate ‘how far’ is your model to the actual real data points in average. The MSE is a good estimate function.</p> <p>Therefore, LSE is a method that builds a model and MSE is a metric that evaluate your model’s performances, but this 2 have a lot in common in the probabilistic perspective, that is the reason I used hypothesis in the derivation, so you could see the same but in 2 different context.</p> <p><strong>Mean Absolute Error (MAE) L1 Loss</strong></p> <p>Mean Absolute Error (MAE) is another class of loss function used in regression problem, also known as L1 loss, the cost function is shown in equation <a href="#eqmae">10</a>.</p> \[J_{\theta}={\frac{1}{n}}\sum_{i=1}^{n}|y_{i}-{\hat{y}}_{i}|\] <p>The loss of mae when assumed y real is 0 could be plotted below. We could tell from the graph that the biggest loss could be infinite and the lowest is 0, and the loss increased linearly.</p> <p align="center"> <img src="https://zhengliangliang.files.wordpress.com/2022/01/screenshot-2022-01-10-at-21.47.47.png" alt="screenshot" width="80%" height="auto"/> </p> <p><strong>Probabilistic interpretation of MAE</strong></p> <p>Same as the derivation of MSE, when we’re considering the loss of MAE, we assumed that the error is distributed as Laplace distribution \((\mu=0, b=1)\), the error \(\epsilon\) distribution of could be written as <a href="#eqlaplace">11</a></p> \[p\left(y_{i}\mid x_{i}\right)=\frac{1}{2}\exp\left(-\left|y_{i}-\hat{y}_{i}\right|\right)\] <p>Using the Maximum Likelihood Estimation (MLE) as in mean square error example, we could have the following derivation</p> \[L(x,y)=\prod_{i=1}^{n}\frac{1}{2}\exp\left(-\left|y_{i}-\hat{y}_{i}\right|\right)\] \[L L(x,y)=-n\log2-\sum_{i=1}^{n}|y_{i}-\hat{y_{i}}|\] \[N L L(x,y)=\sum_{i=1}^{n}|y_{i}-\hat{y}_{i}|\] <p>As we can see after that we could get the form of MAE, by maximize the LL is the same as minimize NLL.</p> <p><strong>Difference between MSE and MAE</strong></p> <p>The MSE loss (L2) generally converges faster than the MAE loss (L1), but the MAE loss is more robust to outliers.</p> <p>MSE generally converges faster than MAE. When using the gradient descent algorithm, and the gradient of MAE loss is \(-\hat{y_{i}}\), that is, the scale of the gradient of MSE will change with the size of the error, while the scale of the gradient of MAE will always remain 1 , Even when the absolute error is very small, the gradient scale of MAE is also 1, which is actually very unfavorable for model training. This is also the reason why MSE is more popular.</p> <p>MAE is more robust to outliers. We can understand this from the 2 perspectives:</p> <p>Firstly, the following figure shows the MAE and MSE losses drawn into the same picture. Since the MAE loss and the absolute error are linear, the MSE loss and the error have a quadratic relationship. When the error is very large, The MSE loss will be much larger than the MAE loss. Therefore, when there is an outlier with a very large error in the data, MSE will generate a very large loss, which will have a greater impact on the training of the model.</p> <p align="center"> <img src="https://zhengliangliang.files.wordpress.com/2022/01/screenshot-2022-01-10-at-21.21.18.png" alt="screenshot" width="80%" height="auto"/> </p> <p>Secondly, when we look at the assumption of the two loss functions. MSE assumes that the error is distributed as a Gaussian distribution, and MAE assumes that the error is distributed as a Laplace distribution. The Laplace distribution by itself is more robust to outliers. when outliers appear on the right side of the right figure, the Laplace distribution is much less affected than the Gaussian distribution. Graph is from <a href="https://doc.lagout.org/science/Artificial%20Intelligence/Machine%20learning/Machine%20Learning_%20A%20Probabilistic%20Perspective%20%5BMurphy%202012-08-24%5D.pdf">Machine Learning A Probabilistic Perspective</a></p> <p align="center"> <img src="https://zhengliangliang.files.wordpress.com/2022/01/screenshot-2022-01-10-at-21.30.28.png" alt="screenshot" width="80%" height="auto"/> </p> <p><strong>Code</strong></p> <p>Graph could be found in my <a href="https://github.com/ZhengLiangliang1996/Loss-Function/blob/main/Cost%20Function.ipynb">github</a></p> <p><strong>Reference</strong></p> <ul> <li><a href="https://doc.lagout.org/science/Artificial%20Intelligence/Machine%20learning/Machine%20Learning_%20A%20Probabilistic%20Perspective%20%5BMurphy%202012-08-24%5D.pdf">Machine Learning A Probabilistic Perspective</a></li> </ul>]]></content><author><name></name></author><category term="dl-ml-python"/><summary type="html"><![CDATA[Loss Function and Cost Function]]></summary></entry><entry><title type="html">CV: Modifying</title><link href="https://paranoiarchive.com//blog/2022/cv-modifying/" rel="alternate" type="text/html" title="CV: Modifying"/><published>2022-01-07T00:00:00+00:00</published><updated>2022-01-07T00:00:00+00:00</updated><id>https://paranoiarchive.com//blog/2022/cv-modifying</id><content type="html" xml:base="https://paranoiarchive.com//blog/2022/cv-modifying/"><![CDATA[<p><a href="https://zhengliangliang.files.wordpress.com/2022/01/curriculum_vitae.pdf">curriculum_vitae</a><a href="https://zhengliangliang.files.wordpress.com/2022/01/curriculum_vitae.pdf">Download</a></p>]]></content><author><name></name></author><category term="未分类"/><summary type="html"><![CDATA[curriculum_vitaeDownload]]></summary></entry><entry><title type="html">Cheatsheet: Pandas, Dataframe, (commonly used)</title><link href="https://paranoiarchive.com//blog/2021/cheatsheet-pandas-dataframe-seriescommonly-used/" rel="alternate" type="text/html" title="Cheatsheet: Pandas, Dataframe, (commonly used)"/><published>2021-11-13T00:00:00+00:00</published><updated>2021-11-13T00:00:00+00:00</updated><id>https://paranoiarchive.com//blog/2021/cheatsheet-pandas-dataframe-seriescommonly-used</id><content type="html" xml:base="https://paranoiarchive.com//blog/2021/cheatsheet-pandas-dataframe-seriescommonly-used/"><![CDATA[<p><strong>Input and Output</strong></p> <ul> <li><strong>pd.read_pickle(path, compression=’infer’)</strong> <ul> <li>‘infer’ means detect compression from the following extensions: ‘.gz’, ‘.bz2’, ‘.zip’, or ‘.xz’</li> </ul> </li> <li><strong>df.to_pickle(path, compression=’infer’)</strong> <ul> <li>Compression mode may be any of the following possible values: {‘infer’, ‘gzip’, ‘bz2’, ‘zip’, ‘xz’, None}. </li> </ul> </li> <li><strong>pd.read_csv(path, sep=’,’, dtype=None)</strong> <ul> <li>dtype: could specify for each column with {‘a’: np.float64, ‘b’: np.int32, ‘c’: ‘Int64’}</li> </ul> </li> <li><strong>df.to_csv(path, index=False)</strong></li> <li><strong>pd.read_excel(path, <em>sheet_name=0</em>, <em>header=0</em>, <em>dtype=None</em>, <em>engine=None)</em></strong> <ul> <li>header: int or None(if there is no header.)</li> <li>dtype: could specify for each column with {‘a’: np.float64, ‘b’: np.int32, ‘c’: ‘Int64’}</li> <li>engine: <ul> <li>“xlrd” supports old-style Excel files (.xls).</li> <li>“openpyxl” supports newer Excel file formats.</li> <li>“odf” supports OpenDocument file formats (.odf, .ods, .odt).</li> <li>“pyxlsb” supports Binary Excel files.</li> </ul> </li> </ul> </li> <li><strong>dataframe.to_excel(<em>path</em>, <em>sheet_name=’Sheet1’</em>)</strong></li> <li><strong>class</strong> <strong>pd.ExcelWriter(</strong><em>path</em><strong>,</strong> <em>engine=None</em><strong>,</strong> <em>date_format=None</em><strong>,</strong> <em>datetime_format=None</em><strong>,</strong> <em>mode=’w’</em>) <ul> <li>mode{‘w’, ‘a’}, default ‘w’</li> <li>The code below shows the example to use pd.ExcelWriter, you could go to xlsxWriter documentation to see more on how to use class <a href="https://xlsxwriter.readthedocs.io/workbook.html">workbook</a> and class <a href="https://xlsxwriter.readthedocs.io/worksheet.html">worksheet</a>.</li> </ul> </li> </ul> <p>with pd.ExcelWriter(path, engine=’xlsxwriter’) as <strong>ew</strong> # Add a header format. workbook = ew.book header_format = workbook.add_format({ ‘bold’: <strong>True</strong>, ‘text_wrap’: <strong>True</strong>, ‘valign’: ‘top’, ‘fg_color’: ‘#D7E4BC’, ‘border’: 1}) # save dataframe to excel df.to_excel(<strong>ew</strong>, sheet_name=’Sheet1’, header=true, index=False) # apply fmt worksheet = ew.sheets[‘Sheet1’] worksheet.set_column(0, 0, width=15, cell_format=header_format)</p> <p><strong>General Function</strong></p> <ul> <li><strong>Create dataframe</strong></li> </ul> <p><a href="https://zhengliangliang.files.wordpress.com/2021/11/screenshot-2021-11-13-at-22.45.00.png"><img src="https://zhengliangliang.files.wordpress.com/2021/11/screenshot-2021-11-13-at-22.45.00.png?w=528" alt="Image" width="90%" height="auto"/></a></p> <ul> <li><strong>pd.melt(df, id_vars=None, value_vars=None, var_name=None, value_name=’value’)</strong> <ul> <li>Gather Column into rows. (Inverse Operation of pivot)</li> <li><strong>id_vars: tuple, list, or ndarray</strong>. Those columns that keep there position</li> <li><strong>value_vars:</strong> <strong>tuple, list, or ndarray</strong> Column(s) to unpivot. If not specified, uses all columns that are not set as id_vars</li> <li>var_name: name to use for the ‘variable’ column</li> <li>value_name: Name to use for the ‘value’ column</li> </ul> </li> </ul> <p><a href="https://zhengliangliang.files.wordpress.com/2021/11/screenshot-2021-11-13-at-09.34.42.png"><img src="https://zhengliangliang.files.wordpress.com/2021/11/screenshot-2021-11-13-at-09.34.42.png?w=532" alt="Image" width="90%" height="auto"/></a></p> <ul> <li><strong>**pd.merge(</strong><em>left</em><strong>,</strong> <em>right</em><strong>,</strong> <em>how=’inner’, on=None, left_on=None, right_on=None</em><strong>)</strong>** <ul> <li>merge 2 dataframe</li> </ul> </li> </ul> <p><a href="https://zhengliangliang.files.wordpress.com/2021/11/screenshot-2021-11-13-at-09.50.45.png"><img src="https://zhengliangliang.files.wordpress.com/2021/11/screenshot-2021-11-13-at-09.50.45.png?w=644" alt="Image" width="90%" height="auto"/></a></p> <ul> <li><strong>pd.concat(<em>objs</em>, <em>axis=0</em>, <em>join=’outer’</em>, <em>ignore_index=False</em>)</strong> <ul> <li><strong>axis</strong>{0/’index’, 1/’columns’}, default 0</li> <li>The axis to concatenate along.<strong>join</strong>{‘inner’, ‘outer’}, default ‘outer’</li> </ul> </li> </ul> <p><a href="https://zhengliangliang.files.wordpress.com/2021/11/screenshot-2021-11-13-at-09.54.44.png"><img src="https://zhengliangliang.files.wordpress.com/2021/11/screenshot-2021-11-13-at-09.54.44.png?w=1024" alt="Image" width="90%" height="auto"/></a></p> <ul> <li><strong>pd.get_dummies(<em>data</em>, <em>prefix=None</em>, <em>prefix_sep=’</em>‘<em>, _dummy_na=False</em>, <em>columns=None</em>, <em>sparse=False</em>, <em>drop_first=False</em>, <em>dtype=None</em>)</strong> <ul> <li>Convert categorical variable into dummy/indicator variables</li> <li>data:<strong>dataarray-like, Series, or DataFrame</strong></li> </ul> </li> <li><strong>pd.to_datetime(</strong><em>arg</em><strong>,</strong> <em>errors=’raise’</em><strong>,</strong> <em>dayfirst=False</em><strong>,</strong> <em>yearfirst=False</em><strong>,</strong> <em>utc=None</em><strong>,</strong> <em>format=None</em><strong>,</strong> <em>exact=True</em><strong>)</strong> <ul> <li>arg: <strong><em>int, float, str, datetime, list, tuple, 1-d array, Series, DataFrame/dict-like</em></strong></li> <li><strong>errors</strong>{‘ignore’, ‘raise’, ‘coerce’}, default ‘raise’ <ul> <li>If ‘raise’, then invalid parsing will raise an exception.</li> <li>If ‘coerce’, then invalid parsing will be set as NaT.</li> <li>If ‘ignore’, then invalid parsing will return the input.</li> </ul> </li> <li>Format: The strftime to parse time, eg “%d/%m/%Y”, note that “%f” will parse all the way up to nanoseconds.</li> </ul> </li> <li><strong>pd.eval(<em>expr</em>, <em>parser=’pandas’</em>, <em>target=None</em>)</strong> <ul> <li>Evaluate a Python expression as a string using various backends. (Not frequently used personally)</li> <li>Exmaple: Add a new column using <code class="language-plaintext highlighter-rouge">pd.eval</code>:</li> </ul> </li> </ul> <p>pd.eval(“double_age = df.age * 2”, target=df)</p> <p><strong>Dataframe</strong></p> <p><strong>Sorting, reindexing, renaming</strong></p> <ul> <li><strong>df.sort_values(<em>by</em>, <em>axis=0</em>, <em>ascending=True</em>, <em>inplace=False</em>, <em>kind=’quicksort’</em>)</strong> <ul> <li><strong>kind{‘quicksort’, ‘mergesort’, ‘heapsort’, ‘stable’}, default ‘quicksort’</strong> (For DataFrames, this option is only applied when sorting on a single column or label.)</li> </ul> </li> <li><strong>df.rename(mapper=None, index=None, columns=None, axis=None, copy=True, inplace=False, level=None, errors=’ignore’)</strong></li> <li><strong>df.reset_index(</strong><em>level=None</em><strong>,</strong> _drop=_True) <ul> <li>drop[bool]: Do not try to insert index into dataframe columns. This resets the index to the default integer index.</li> </ul> </li> </ul> <p><a href="https://zhengliangliang.files.wordpress.com/2021/11/screenshot-2021-11-13-at-22.59.12.png"><img src="https://zhengliangliang.files.wordpress.com/2021/11/screenshot-2021-11-13-at-22.59.12.png?w=582" alt="Image" width="90%" height="auto"/></a></p> <p><strong>Subset Observation</strong>: df.length, df.drop_duplicates(<em>subset=None</em>), df_sample, df_nsmallest, df.head(n), df.tail(n), df.filter(), df.query()</p> <ul> <li><strong>df.filter(<em>items=None</em>, <em>like=None</em>, <em>regex=None</em>, <em>axis=None</em>)</strong></li> </ul> <p>Select columns whose name matches regular expression regex.</p> <p><a href="https://zhengliangliang.files.wordpress.com/2021/11/screenshot-2021-11-13-at-23.02.14.png"><img src="https://zhengliangliang.files.wordpress.com/2021/11/screenshot-2021-11-13-at-23.02.14.png?w=1024" alt="Image" width="90%" height="auto"/></a></p> <p><strong>Summarize Data</strong></p> <ul> <li><strong>df.describe(<em>percentiles=None</em>, <em>include=None</em>, <em>exclude=None</em>, <em>datetime_is_numeric=False</em>)</strong> <ul> <li>Generate descriptive statistics.</li> </ul> </li> <li><strong>Series.nunique(<em>dropna=True</em>)</strong> <ul> <li>Return number of unique elements in the object.</li> </ul> </li> <li><strong>Series.value_counts(</strong><em>normalize=False</em><strong>,</strong> <em>sort=True</em><strong>,</strong> <em>ascending=False</em><strong>,</strong> <em>bins=None</em><strong>,</strong> <em>dropna=True</em><strong>)</strong> <ul> <li>Return a Series containing counts of unique values.</li> </ul> </li> </ul> <p><a href="https://zhengliangliang.files.wordpress.com/2021/11/screenshot-2021-11-13-at-23.10.35.png"><img src="https://zhengliangliang.files.wordpress.com/2021/11/screenshot-2021-11-13-at-23.10.35.png?w=730" alt="Image" width="90%" height="auto"/></a></p> <p><strong>Handling Missing Data &amp; Sanity Check Empty Data</strong></p> <ul> <li><strong>DataFrame.dropna(</strong><em>axis=0</em><strong>,</strong> <em>how=’any’</em><strong>,</strong> <em>thresh=None</em><strong>,</strong> <em>subset=None</em><strong>,</strong> <em>inplace=False</em><strong>)</strong> <ul> <li>Remove missing value rows(axis=0) or columns(axis=1)</li> </ul> </li> <li><strong>DataFrame.fillna(</strong><em>value=None</em><strong>,</strong> <em>method=None</em><strong>,</strong> <em>axis=None</em><strong>,</strong> <em>inplace=False</em><strong>,</strong> <em>limit=None</em><strong>,</strong> <em>downcast=None</em><strong>)</strong></li> <li><strong>print(df.isnull().sum().sum())</strong></li> </ul> <p><strong>Group Data</strong></p> <ul> <li><strong>DataFrame.groupby(</strong><em>by=None</em><strong>,</strong> <em>axis=0</em><strong>,</strong> <em>level=None</em><strong>,</strong> <em>as_index=True</em><strong>,</strong> <em>sort=True</em><strong>,</strong> <em>group_keys=True</em><strong>,</strong> <em>squeeze=NoDefault.no_default</em><strong>,</strong> <em>observed=False</em><strong>,</strong> <em>dropna=True</em><strong>)</strong> <ul> <li><strong>by: mapping, function, label, or list of labels</strong></li> <li><strong>dropna [bool], default True</strong></li> </ul> </li> </ul> <p><a href="https://zhengliangliang.files.wordpress.com/2021/11/screenshot-2021-11-13-at-23.24.57.png"><img src="https://zhengliangliang.files.wordpress.com/2021/11/screenshot-2021-11-13-at-23.24.57.png?w=1024" alt="Image" width="90%" height="auto"/></a></p> <p><strong>Window Function</strong></p> <ul> <li> <p><strong>df.rolling(</strong><em>window</em><strong>,</strong> <em>min_periods=None</em><strong>,</strong> <em>center=False</em><strong>,</strong> <em>win_type=None</em><strong>,</strong> <em>on=None</em><strong>,</strong> <em>axis=0</em><strong>,</strong> <em>closed=None</em><strong>,</strong> <em>method=’single’</em><strong>)</strong></p> <ul> <li>window[int]: Size of the moving window. This is the number of observations used for calculating the statistic. Each window will be a fixed size.</li> <li> <p>min_periods[int]: Minimum number of observations in window required to have a value </p> </li> <li>win_type: all possible win type can be found <a href="https://docs.scipy.org/doc/scipy/reference/signal.windows.html#module-scipy.signal.windows">here</a></li> </ul> </li> <li> <p><strong>df.expanding(<em>min_periods=1</em>, <em>center=None</em>, <em>axis=0</em>, <em>method=’single’</em>)</strong></p> <ul> <li>Provide expanding transformations.</li> </ul> </li> </ul> <p><strong>Explode</strong></p> <ul> <li><strong>df.explode(<em>column</em>, <em>ignore_index=False</em>)</strong> <ul> <li>Transform each element of a list-like to a row, replicating index values.</li> </ul> </li> </ul> <p><strong>Reference</strong></p> <ol> <li><a href="https://pandas.pydata.org/Pandas_Cheat_Sheet.pdf">Dataframe cheatsheet</a></li> </ol>]]></content><author><name></name></author><category term="dl-ml-python"/><summary type="html"><![CDATA[Input and Output]]></summary></entry></feed>