<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Algorithms Q&amp;A - Recent questions and answers in Math Basics</title>
<link>https://notexponential.com/qa/math-basics</link>
<description>Powered by Question2Answer</description>
<item>
<title>Answered: What is the last digit of number: 2^100</title>
<link>https://notexponential.com/828/what-is-the-last-digit-of-number-2-100?show=974#a974</link>
<description>&lt;p&gt;To begin with,&amp;nbsp;&lt;/p&gt;&lt;p&gt;We can calculate all the values of 2^n where 1&amp;nbsp;&amp;lt;= n &amp;lt;= 10. We get the values, 2, 4, 8, 16, 32, 64, 128, 256, 512, and 1024, respectively.&amp;nbsp;&lt;/p&gt;&lt;p&gt;We can notice a pattern in the last digit&amp;nbsp;for all the numbers, the pattern follows&amp;nbsp;2, 4, 8, 6 for every 4 &quot;n&quot; values.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now, we can predict the last digit of 2^100 based on the noticeable pattern from above. Since the last digits of 2^n follow the repeating cycle of 2, 4, 8, 6&amp;nbsp;every four terms, we can reduce the exponent modulo 4 to get where 100 falls in the cycle.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here is how we can do that, 100 mod 4 = 0.&lt;/p&gt;&lt;p&gt;Since the remainder is 0, 2^100 corresponds to the last digit of 2^4, 6. Thus, the last digit of 2^100 is &lt;strong&gt;6.&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description>
<category>Math Basics</category>
<guid isPermaLink="true">https://notexponential.com/828/what-is-the-last-digit-of-number-2-100?show=974#a974</guid>
<pubDate>Mon, 14 Oct 2024 02:40:41 +0000</pubDate>
</item>
<item>
<title>Answered: Probability of rolling at least a 7 with two dice</title>
<link>https://notexponential.com/823/probability-of-rolling-at-least-a-7-with-two-dice?show=959#a959</link>
<description>&lt;p&gt;&lt;span style=&quot;color:#374151; font-family:Söhne,ui-sans-serif,system-ui,-apple-system,&amp;quot;Segoe UI&amp;quot;,Roboto,Ubuntu,Cantarell,&amp;quot;Noto Sans&amp;quot;,sans-serif,&amp;quot;Helvetica Neue&amp;quot;,Arial,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;,&amp;quot;Noto Color Emoji&amp;quot;; white-space-collapse:preserve&quot;&gt;1. Each die has 6 faces, so there are 6 * 6 = 36 &lt;/span&gt;&lt;span style=&quot;color:#374151; font-family:Söhne,ui-sans-serif,system-ui,-apple-system,&amp;quot;Segoe UI&amp;quot;,Roboto,Ubuntu,Cantarell,&amp;quot;Noto Sans&amp;quot;,sans-serif,&amp;quot;Helvetica Neue&amp;quot;,Arial,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;,&amp;quot;Noto Color Emoji&amp;quot;; white-space-collapse:preserve&quot;&gt;possible outcomes when rolling two dice.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:#374151; font-family:Söhne,ui-sans-serif,system-ui,-apple-system,&amp;quot;Segoe UI&amp;quot;,Roboto,Ubuntu,Cantarell,&amp;quot;Noto Sans&amp;quot;,sans-serif,&amp;quot;Helvetica Neue&amp;quot;,Arial,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;,&amp;quot;Noto Color Emoji&amp;quot;; white-space-collapse:preserve&quot;&gt;2. If the sum of two dice is at least a 7, the sum can be 7, 8, 9, 10, 11, or 12.&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;color:#374151; font-family:Söhne,ui-sans-serif,system-ui,-apple-system,&amp;quot;Segoe UI&amp;quot;,Roboto,Ubuntu,Cantarell,&amp;quot;Noto Sans&amp;quot;,sans-serif,&amp;quot;Helvetica Neue&amp;quot;,Arial,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;,&amp;quot;Noto Color Emoji&amp;quot;; white-space-collapse:preserve&quot;&gt;Sum of the dice = 7: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1) - 6&lt;/span&gt;&amp;nbsp;outcomes&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color:#374151; font-family:Söhne,ui-sans-serif,system-ui,-apple-system,&amp;quot;Segoe UI&amp;quot;,Roboto,Ubuntu,Cantarell,&amp;quot;Noto Sans&amp;quot;,sans-serif,&amp;quot;Helvetica Neue&amp;quot;,Arial,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;,&amp;quot;Noto Color Emoji&amp;quot;; white-space-collapse:preserve&quot;&gt;Sum of the dice = &lt;/span&gt;&lt;span style=&quot;color:#374151; font-family:Söhne,ui-sans-serif,system-ui,-apple-system,&amp;quot;Segoe UI&amp;quot;,Roboto,Ubuntu,Cantarell,&amp;quot;Noto Sans&amp;quot;,sans-serif,&amp;quot;Helvetica Neue&amp;quot;,Arial,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;,&amp;quot;Noto Color Emoji&amp;quot;; white-space-collapse:preserve&quot;&gt;8: (2,6), (3,5), (4,4), (5,3), (6,2) - 5 outcomes&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color:#374151; font-family:Söhne,ui-sans-serif,system-ui,-apple-system,&amp;quot;Segoe UI&amp;quot;,Roboto,Ubuntu,Cantarell,&amp;quot;Noto Sans&amp;quot;,sans-serif,&amp;quot;Helvetica Neue&amp;quot;,Arial,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;,&amp;quot;Noto Color Emoji&amp;quot;; white-space-collapse:preserve&quot;&gt;Sum of the dice = &lt;/span&gt;&lt;span style=&quot;color:#374151; font-family:Söhne,ui-sans-serif,system-ui,-apple-system,&amp;quot;Segoe UI&amp;quot;,Roboto,Ubuntu,Cantarell,&amp;quot;Noto Sans&amp;quot;,sans-serif,&amp;quot;Helvetica Neue&amp;quot;,Arial,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;,&amp;quot;Noto Color Emoji&amp;quot;; white-space-collapse:preserve&quot;&gt;9: (3,6), (4,5), (5,4), (6,3) - 4 outcomes&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color:#374151; font-family:Söhne,ui-sans-serif,system-ui,-apple-system,&amp;quot;Segoe UI&amp;quot;,Roboto,Ubuntu,Cantarell,&amp;quot;Noto Sans&amp;quot;,sans-serif,&amp;quot;Helvetica Neue&amp;quot;,Arial,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;,&amp;quot;Noto Color Emoji&amp;quot;; white-space-collapse:preserve&quot;&gt;Sum of the dice =&lt;/span&gt;&lt;span style=&quot;color:#374151; font-family:Söhne,ui-sans-serif,system-ui,-apple-system,&amp;quot;Segoe UI&amp;quot;,Roboto,Ubuntu,Cantarell,&amp;quot;Noto Sans&amp;quot;,sans-serif,&amp;quot;Helvetica Neue&amp;quot;,Arial,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;,&amp;quot;Noto Color Emoji&amp;quot;; white-space-collapse:preserve&quot;&gt; 10: (4,6), (5,5), (6,4) - 3 outcomes&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color:#374151; font-family:Söhne,ui-sans-serif,system-ui,-apple-system,&amp;quot;Segoe UI&amp;quot;,Roboto,Ubuntu,Cantarell,&amp;quot;Noto Sans&amp;quot;,sans-serif,&amp;quot;Helvetica Neue&amp;quot;,Arial,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;,&amp;quot;Noto Color Emoji&amp;quot;; white-space-collapse:preserve&quot;&gt;Sum of the dice =&lt;/span&gt;&lt;span style=&quot;color:#374151; font-family:Söhne,ui-sans-serif,system-ui,-apple-system,&amp;quot;Segoe UI&amp;quot;,Roboto,Ubuntu,Cantarell,&amp;quot;Noto Sans&amp;quot;,sans-serif,&amp;quot;Helvetica Neue&amp;quot;,Arial,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;,&amp;quot;Noto Color Emoji&amp;quot;; white-space-collapse:preserve&quot;&gt; 11: (5,6), (6,5) - 2 outcomes&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;color:#374151; font-family:Söhne,ui-sans-serif,system-ui,-apple-system,&amp;quot;Segoe UI&amp;quot;,Roboto,Ubuntu,Cantarell,&amp;quot;Noto Sans&amp;quot;,sans-serif,&amp;quot;Helvetica Neue&amp;quot;,Arial,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;,&amp;quot;Noto Color Emoji&amp;quot;; white-space-collapse:preserve&quot;&gt;Sum of the dice = 1&lt;/span&gt;&lt;span style=&quot;color:#374151; font-family:Söhne,ui-sans-serif,system-ui,-apple-system,&amp;quot;Segoe UI&amp;quot;,Roboto,Ubuntu,Cantarell,&amp;quot;Noto Sans&amp;quot;,sans-serif,&amp;quot;Helvetica Neue&amp;quot;,Arial,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;,&amp;quot;Noto Color Emoji&amp;quot;; white-space-collapse:preserve&quot;&gt;2: (6,6) - 1 outcome&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style=&quot;color:#374151; font-family:Söhne,ui-sans-serif,system-ui,-apple-system,&amp;quot;Segoe UI&amp;quot;,Roboto,Ubuntu,Cantarell,&amp;quot;Noto Sans&amp;quot;,sans-serif,&amp;quot;Helvetica Neue&amp;quot;,Arial,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;,&amp;quot;Noto Color Emoji&amp;quot;; white-space-collapse:preserve&quot;&gt;3. Add all possible outcomes: 6 + 5 + 4 + 3 + 2 + 1 = 21&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:#374151; font-family:Söhne,ui-sans-serif,system-ui,-apple-system,&amp;quot;Segoe UI&amp;quot;,Roboto,Ubuntu,Cantarell,&amp;quot;Noto Sans&amp;quot;,sans-serif,&amp;quot;Helvetica Neue&amp;quot;,Arial,&amp;quot;Apple Color Emoji&amp;quot;,&amp;quot;Segoe UI Emoji&amp;quot;,&amp;quot;Segoe UI Symbol&amp;quot;,&amp;quot;Noto Color Emoji&amp;quot;; white-space-collapse:preserve&quot;&gt;4. T&lt;/span&gt;&lt;span style=&quot;font-family:Helvetica,Arial,sans-serif&quot;&gt;he probability of rolling at least a 7 when given two dice:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family:Helvetica, Arial, sans-serif&quot;&gt;&amp;nbsp; &amp;nbsp; 21 / 36 = 7 / 12&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family:Helvetica,Arial,sans-serif&quot;&gt;≈&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family:Helvetica, Arial, sans-serif&quot;&gt;&lt;strong&gt;0.5833&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;</description>
<category>Math Basics</category>
<guid isPermaLink="true">https://notexponential.com/823/probability-of-rolling-at-least-a-7-with-two-dice?show=959#a959</guid>
<pubDate>Mon, 18 Dec 2023 07:48:10 +0000</pubDate>
</item>
<item>
<title>Answered: Prove that there are infinite primes</title>
<link>https://notexponential.com/766/prove-that-there-are-infinite-primes?show=950#a950</link>
<description>&lt;p&gt;Start with a counter-assumption: Let&#039;s imagine the scenario where the set of prime numbers is limited. Denote these finite primes as P1, P2, P3,...Pn&lt;/p&gt;&lt;p&gt;Create a novel number: Now, form a new number, N= (P1*P2*P3*...Pn )+ 1 Notice that N is greater than any prime in our assumed finite set.&lt;/p&gt;&lt;div&gt;&lt;div&gt;Examine&amp;nbsp;N&#039;s prime factors: Every number greater than 1 is either a prime itself or can be decomposed into a unique set of prime factors (Fundamental Theorem of Arithmetic).&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Unravel the contradiction:&lt;/div&gt;&lt;div&gt;If N itself is a prime, it&#039;s not in our original list, which contradicts our assumption of having listed all primes.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;If N is composite, its prime factors cannot be any of P1, P2 ,...Pn because dividing&amp;nbsp;&lt;/div&gt;&lt;div&gt;N by any of these primes leaves a remainder of 1.&amp;nbsp;&lt;/div&gt;&lt;div&gt;Thus,&amp;nbsp;N must be divisible by some prime not in our original list, contradicting our assumption again.&lt;/div&gt;&lt;div&gt;Inference: The initial assumption of a finite number of primes leads us to a contradiction.&lt;/div&gt;&lt;div&gt;Therefore, the only logical conclusion is that the number of primes is infinite.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description>
<category>Math Basics</category>
<guid isPermaLink="true">https://notexponential.com/766/prove-that-there-are-infinite-primes?show=950#a950</guid>
<pubDate>Sat, 16 Dec 2023 18:14:34 +0000</pubDate>
</item>
<item>
<title>Answered: Give a Proof by Induction that the sum of squares of first n natural numbers is n. (n+1). (2n + 1) / 6.</title>
<link>https://notexponential.com/764/give-proof-induction-that-the-squares-first-natural-numbers?show=937#a937</link>
<description>Let, S(n) represents the sum of squares of first n natural numbers.&lt;br /&gt;
&lt;br /&gt;
Hypothesis : S(n) = n (n+1) (2n + 1) / 6.&lt;br /&gt;
&lt;br /&gt;
Using mathematical induction:&lt;br /&gt;
&lt;br /&gt;
Base Case&lt;br /&gt;
&lt;br /&gt;
S(1) = 1^2 = 1, &amp;nbsp;&amp;nbsp;Also, 1 * (1+1) * 3 / 6. &amp;nbsp;Therefore, Base Case is satisfied.&lt;br /&gt;
&lt;br /&gt;
Induction Hypothesis&lt;br /&gt;
&lt;br /&gt;
Let us suppose the hypothesis is true for all values of n &amp;lt; m.&lt;br /&gt;
&lt;br /&gt;
Inductive Step &amp;nbsp;[Here, we should P(n | n &amp;lt; m) =&amp;gt; P(m).]&lt;br /&gt;
&lt;br /&gt;
Let us evaluate S(m). &amp;nbsp;By definition, S(m) = S(m -1) + m^2.&lt;br /&gt;
&lt;br /&gt;
By induction hypothesis, S(m-1) = (m-1) * (m - 1 + 1) * (2(m-1) +1) / 6. &amp;nbsp;&amp;nbsp;This can be used by us, since induction hypothesis allows us to assume hypothesis is true for all values of n &amp;lt; m, and therefore, specifically that it is true for n = m-1.&lt;br /&gt;
&lt;br /&gt;
Therefore, we have &lt;br /&gt;
&lt;br /&gt;
S(m) = (m - 1) * (m) * (2m - 1) / 6 + m^2. &amp;nbsp;&amp;nbsp;By rearranging terms, we get:&lt;br /&gt;
&lt;br /&gt;
S(m) = m/6 {(m - 1) (2m - 1) &amp;nbsp;+ 6m}.&lt;br /&gt;
&lt;br /&gt;
That is, &lt;br /&gt;
&lt;br /&gt;
S(m) = m/6 {2m^2 - 2m - m + 1 + 6m}&lt;br /&gt;
&lt;br /&gt;
S(m) = m/6 {2m^2 + 3m + 1}&lt;br /&gt;
&lt;br /&gt;
S(m) = m/6 (m+1) (2m + 1)&lt;br /&gt;
&lt;br /&gt;
Therefore, the hypothesis is true for m.&lt;br /&gt;
&lt;br /&gt;
Since Induction base is satisfied, and induction step is satisfied, therefore, by PMI, hypothesis is true for all values of n &amp;gt;= 1.&lt;br /&gt;
&lt;br /&gt;
Therefore, we have: &lt;br /&gt;
&lt;br /&gt;
S(n) = n (n+1) (2n + 1) / 6.</description>
<category>Math Basics</category>
<guid isPermaLink="true">https://notexponential.com/764/give-proof-induction-that-the-squares-first-natural-numbers?show=937#a937</guid>
<pubDate>Wed, 13 Dec 2023 20:36:54 +0000</pubDate>
</item>
<item>
<title>Answered: Sum of the Arithmetico-Geometric Progression (AGP)</title>
<link>https://notexponential.com/231/sum-of-the-arithmetico-geometric-progression-agp?show=668#a668</link>
<description>k/2*3^(k+1)+1/2</description>
<category>Math Basics</category>
<guid isPermaLink="true">https://notexponential.com/231/sum-of-the-arithmetico-geometric-progression-agp?show=668#a668</guid>
<pubDate>Thu, 02 May 2019 05:29:45 +0000</pubDate>
</item>
</channel>
</rss>