<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7423697418269914273</id><updated>2026-10-18T15:56:44.656-07:00</updated><category term="Mathematics"/><category term="Proofs"/><category term="Physics"/><category term="Computer Science"/><category term="Misc"/><category term="Project Euler"/><title type='text'>Paul Liu</title><subtitle type='html'>Math. Physics. And a touch of arrogant self-reflection.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-5842218987297694794</id><published>2012-04-22T22:36:00.000-07:00</published><updated>2012-04-22T22:36:01.621-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mathematics"/><category scheme="http://www.blogger.com/atom/ns#" term="Proofs"/><title type='text'>My Favourite Proof</title><content type='html'>&lt;i&gt;This post is inspired and adapted from Greg Martin&#39;s excellent talk on prime numbers (found&amp;nbsp;&lt;a href=&quot;http://www.math.ubc.ca/~gerg/slides/StatenIsland-30Apr10.pdf&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;).&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
As a student of mathematics, one of the first things I ever learned was the concept of a proof. In fact, the first proof I ever saw was Euclid&#39;s classic proof that there were an infinite number of primes.&lt;br /&gt;
&lt;br /&gt;
If you have never seen Euclid&#39;s proof before, it goes something like this:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Suppose there were a finite number of primes. We may label them $p_1, p_2, \ldots, p_n$. Let \[N=p_1 p_2 \ldots p_n + 1.\] Now for every prime $p_i,\,1\leq i\leq n$ that we just labelled, the remainder of $N$ divided by $p_i$ is 1. However, since $N$ is not prime, $N$ must be able to be factorized into a product of primes.&amp;nbsp;What primes are in that factorization if it doesn&#39;t contain any of the primes we just listed out?&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Hence, $N$ must have some &lt;i&gt;new&lt;/i&gt;&amp;nbsp;prime in its factorization or be a prime itself. This contradicts our assumption that there are a finite number of primes, and therefore an infinite number of primes must exist. $\blacksquare$&lt;/blockquote&gt;
&lt;br /&gt;
Recently, I learned that a variant of Euclid’s proof can be used to prove the infinitude of primes of the form 4k-1 and 6k-1. The proof for 4k-1 is below:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Suppose there are a finite number of primes that is of the form 4k-1 for some $k\in\mathbb{N}$. Again,&amp;nbsp;we may label them $p_1, p_2, \ldots, p_n$.&amp;nbsp;Let&amp;nbsp;
&amp;nbsp;\[N=4 p_1 p_2 \ldots p_n - 1.\] Again, for every prime $p_i,\,1\leq i\leq n$ that we just labelled, the remainder of $N$ divided by $p_i$ is 1.&amp;nbsp;Note that $N$ is not prime since it is of the form 4k-1 but greater than&amp;nbsp;any of our $p_i$.&amp;nbsp;However, since $N$ is not a prime, $N$ must be able to be factorized into a product of primes.&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Furthermore, the factorization of $N$ must only contain primes of the form 4k+1 since $N$ is odd and all primes of the form 4k-1 are used. This is a contradiction since two numbers which are of the form 4k+1 must have a product of the form 4k+1. Hence, if $N$ was entirely the product of primes of the form 4k+1, $N$ must be a number of the form 4k+1 also. But since $N$ is obviously not expressible as 4k+1, $N$ must itself be a prime that is of the form 4k-1 or have some &lt;i&gt;new&lt;/i&gt; prime factor that is of the form 4k-1. Again, by contradiction, there must exist an infinite number of primes of the form 4k-1. The case for 6k-1 is similar.&amp;nbsp;$\blacksquare$&lt;/blockquote&gt;
&lt;br /&gt;
Amazingly, there is a general theorem which states that a Euclid-style proof can only be used to prove the infinitude of primes of the form $p \equiv a\bmod{m}$, where $a^2 \equiv 1 \bmod{m}$ for any two natural numbers $a$ and $m$ (proven&amp;nbsp;&lt;a href=&quot;http://www.mast.queensu.ca/~murty/murty-thain2.pdf&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;&amp;nbsp;by Murty, 1988). For example, this means that infinitude any primes of the form $p \equiv -1 \bmod 4$ may be proven (as we did above), but any primes of the form $p \equiv 3 \bmod 7$ cannot be proven by Euclid&#39;s proof.&lt;br /&gt;
&lt;br /&gt;
I find Euclid’s classic proof of the infinitude of primes beautiful -- not just because it establishes an amazing result in an elegant way, but because of its vast reusability. For these reasons, it is easily my favourite proof.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Bonus: &lt;/b&gt;From the theorem above, we may also prove infinitude of primes of the form 4k+1 by a Euclid style proof. Try proving this statement! Be warned though, there is an extra trick to defining $N$ than just multiplying all primes of the form 4k+1 together. The solution can be found in the slides of Greg Martin, as referenced in the first sentence of this post.&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/5842218987297694794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2012/04/my-favourite-proof.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/5842218987297694794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/5842218987297694794'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2012/04/my-favourite-proof.html' title='My Favourite Proof'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-3542344271947412224</id><published>2012-01-23T00:05:00.000-08:00</published><updated>2012-05-11T12:33:13.783-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Misc"/><title type='text'>First they came...</title><content type='html'>A very powerful quote that was brought to my attention by a commenter on &lt;a href=&quot;http://news.ycombinator.com/item?id=3496732&quot;&gt;Hacker News&lt;/a&gt;&amp;nbsp;on the proposed Polish &lt;a href=&quot;http://en.wikipedia.org/wiki/Anti-Counterfeiting_Trade_Agreement&quot;&gt;Anti-Counterfeiting Trade Agreement&lt;/a&gt;. When citizens are inactive on bad government reforms, what seems like one small alteration could build up to monumental changes.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
First they came for the communists,
and I didn&#39;t speak out because I wasn&#39;t a communist.&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Then they came for the trade unionists,
and I didn&#39;t speak out because I wasn&#39;t a trade unionist. &amp;nbsp;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Then they came for the Jews,
and I didn&#39;t speak out because I wasn&#39;t a Jew.&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Then they came for the Catholics,
and I didn&#39;t speak out because I was Protestant.&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Then they came for me
and there was no one left to speak out for me.&lt;/blockquote&gt;
&lt;br /&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/First_they_came%E2%80%A6&quot;&gt;Martin Niemöller - First They Came&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/3542344271947412224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2012/01/first-they-came.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/3542344271947412224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/3542344271947412224'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2012/01/first-they-came.html' title='First they came...'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-554010252320911732</id><published>2011-08-15T16:50:00.000-07:00</published><updated>2011-08-15T18:04:45.295-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mathematics"/><title type='text'>Prove this identity</title><content type='html'>A note to future me:&lt;br /&gt;
&lt;br /&gt;
Today you were trying to do probability questions with your pathetically sad probability skills and you found that&lt;br /&gt;
\[\sum_{i=0}^{n-1}\frac{m}{t-i}\frac{\binom{t-m}{i}}{\binom{t}{i}}=1-\frac{\binom{t-m}{n}}{\binom{t}{n}}.\]&lt;br /&gt;
Dare you to prove it.&lt;br /&gt;
&lt;br /&gt;
From,&lt;br /&gt;
Your arrogant younger self.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s a hint:&lt;br /&gt;
\[\frac{\binom{t-m}{i}}{\binom{t}{i}}=\frac{\binom{t-i}{m}}{\binom{t}{m}}.\]&lt;br /&gt;
Why? Can you think of a combinatorial interpretation for this? Proving it through algebra is trivial. Thinking of an interpretation may lead to some actual learning.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Bonus:&lt;/b&gt;&lt;br /&gt;
From the identity above, you also managed to find that it implies: \[\sum _{i=0}^n \binom{t-i}{m}=\binom{t+1}{m+1}-\binom{t-n}{m+1}.\]&amp;nbsp;Prove this identity.</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/554010252320911732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2011/08/prove-this-identity.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/554010252320911732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/554010252320911732'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2011/08/prove-this-identity.html' title='Prove this identity'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-5867517068441793115</id><published>2011-08-06T16:38:00.000-07:00</published><updated>2011-08-06T19:30:03.468-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mathematics"/><title type='text'>A curious identity</title><content type='html'>I was trying to do a question the other day when I found an interesting identity that is a corollary of the double angle formulae. I&#39;ve searched online for its name, but it might be so trivial that it doesn&#39;t have one. Instead of revealing the identity, I&#39;ll let you figure it out for yourself:&lt;br /&gt;
\[\frac{1}{2^0}\cos(x_1) = \cos(x_1)\]&lt;br /&gt;
\[\frac{1}{2^1}\left(\cos(x_1+x_2)+\cos(x_1-x_2)\right)=\cos(x_1)\cos(x_2)\]&lt;br /&gt;
\[\frac{1}{2^{2}}\left(\begin{array}{c}&lt;br /&gt;
\phantom{+}\cos(x_{1}+x_{2}+x_{3})\\ &lt;br /&gt;
+\cos(x_{1}+x_{2}-x_{3})\\ &lt;br /&gt;
+\cos(x_{1}-x_{2}+x_{3})\\ &lt;br /&gt;
+\cos(x_{1}-x_{2}-x_{3})\end{array}\right)=\cos(x_{1})\cos(x_{2})\cos(x_{3})\]&lt;br /&gt;
Do you see the pattern?&lt;br /&gt;
Can you prove the pattern (Hint: Try induction)?&lt;br /&gt;
Are there other similar identities involving sines and combinations of sines and cosines?&lt;br /&gt;
&lt;br /&gt;
For those who are curious, the question that led me to this identity was:&lt;br /&gt;
Determine the value of \[\cos\left(\frac{\pi}{7}\right)\cos\left(\frac{2\pi}{7}\right)\cos\left(\frac{4\pi}{7}\right).\]&lt;br /&gt;
&lt;br /&gt;
There is a simple way to do this question, and a hard way. Sadly the identity I found led to the hard way.</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/5867517068441793115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2011/08/curious-identity.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/5867517068441793115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/5867517068441793115'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2011/08/curious-identity.html' title='A curious identity'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-882232480302772462</id><published>2011-08-01T19:32:00.000-07:00</published><updated>2011-08-01T19:32:26.231-07:00</updated><title type='text'>Need Practice for the GRE?</title><content type='html'>Have I got the site for you (see title).&lt;br /&gt;
&lt;br /&gt;
Upon the grave realization that I&#39;ll have to take the Physics and Math GRE in a couple years (oh yes, I prepare YEARS in advance), I&#39;ve started a site that updates daily with Math and Physics GRE questions. Come visit (link below), it&#39;ll be fun.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://dailygre.blogspot.com/&quot;&gt;Let us go then, you and I.&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/882232480302772462/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2011/08/need-practice-for-gre.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/882232480302772462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/882232480302772462'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2011/08/need-practice-for-gre.html' title='Need Practice for the GRE?'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-7902277014703465893</id><published>2011-07-17T01:37:00.000-07:00</published><updated>2011-07-23T02:18:37.971-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mathematics"/><title type='text'>Thin Cars and Parking Lots</title><content type='html'>A quick question I came across today:&lt;br /&gt;
&lt;blockquote&gt;Suppose you had an infinitely thin car. How big do you have to build a parking lot for the car to be able to turn 180 degrees in the parking lot?&amp;nbsp;&lt;/blockquote&gt;Think about it for a while, and then highlight the area below to see the answer.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: white;&quot;&gt;Surprisingly, there is no lower limit on the size of the parking lot. In other words, the parking lot can be &lt;b&gt;as small as you want&lt;/b&gt;. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This is better known as the (thinly disguised)&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Kakeya_set#Kakeya_needle_problem&quot;&gt;Kakeya Needle Problem&lt;/a&gt;.&amp;nbsp;Unfortunately, the proof relies on existence theorems which (as far as I know) do not provide an explicit way to show us how we can jiggle the car around until it rotates 180 degrees. So while it might cool to tell your friend you can turn an infinitely thin car on a parking lot with zero area, I know of no way that you can physically show how it can be done.</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/7902277014703465893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2011/07/very-small-problem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/7902277014703465893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/7902277014703465893'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2011/07/very-small-problem.html' title='Thin Cars and Parking Lots'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-5715981006241291078</id><published>2011-07-10T19:11:00.000-07:00</published><updated>2011-07-12T21:59:03.510-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mathematics"/><category scheme="http://www.blogger.com/atom/ns#" term="Proofs"/><title type='text'>Number of Primes with Desired Digit Strings</title><content type='html'>&lt;b&gt;This post was previously very, very wrong. It has been corrected as of July 12th, 2011.&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
Greetings and salutations to my loyal readers (there are about 30 of you I think)!&lt;br /&gt;
&lt;br /&gt;
I&#39;ve been a bit busy recently organizing an online study group for &lt;a href=&quot;http://www.reddit.com/r/feynmanlectures&quot;&gt;The Feynman Lectures on Physics&lt;/a&gt;, so today I&#39;ll just post a short note based on an &lt;a href=&quot;http://www.reddit.com/r/math/comments/if4kd/take_the_harmonic_series_remove_any_term_with_a_9/c238rhk&quot;&gt;observation&lt;/a&gt; someone made about my last post on the Kempner series.&lt;br /&gt;
&lt;br /&gt;
The observations was that since the prime harmonic series (1/2 + 1/3 + 1/5 + 1/7 + 1/11 + ...) diverges, we can take out all the terms with a specific sequence of digits to make the series convergent as we did with the harmonic series. Or in other words:&lt;br /&gt;
&lt;div&gt;&lt;blockquote&gt;&quot;given any finite string of numbers, i.e. 24485983 that there exist infinitely many primes whose base 10 representation contain that string.&quot;&lt;/blockquote&gt;We knew from the &lt;a href=&quot;http://hippomath.blogspot.com/2011/07/kempner-series-modified-harmonic-series.html&quot;&gt;my last post&lt;/a&gt;&amp;nbsp;that the harmonic series became convergent if we took out all the terms with a &#39;9&#39; (or more generally any string of digits). For example, we could take out all primes with the digit string &#39;13&#39;. This would make the harmonic series convergent (after removing all the terms with &#39;13&#39;). Now consider the &lt;a href=&quot;http://en.wikipedia.org/wiki/The_sum_of_the_reciprocals_of_the_primes_diverges&quot;&gt;prime harmonic series&lt;/a&gt;, which is a subset of the original full harmonic series. Since the prime harmonic series diverges to infinity, we must have taken out an infinite number of primes with &#39;13&#39;. Therefore, the conclusion is that there are an infinite number of primes with any string of digits you can imagine.&lt;br /&gt;
&lt;br /&gt;
The purpose of this note was to show that the same conclusion could be reached via a direct proof rather than as a corollary of another proof. However, I realized that my direct proof had a rather large flaw in it.&amp;nbsp;As a cop-out, I&#39;ll show in this note that one can prove this result as a corollary of another theorem, namely &lt;b&gt;Dirichlet&#39;s theorem for prime progressions&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Proof&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/Dirichlet&#39;s_theorem_on_arithmetic_progressions&quot;&gt;Dirichlet&#39;s theorem&lt;/a&gt; states that there are infinitely many primes in the arithmetic sequence \[a, a+d, a+2d, a+3d, \ldots\] where $a$ and $d$ are coprime.&lt;br /&gt;
&lt;br /&gt;
To prove that there are infinitely many primes which contain &#39;13&#39;, set $a=13$ and $d=100$. We get the sequence 13, 113, 213, ... in which all terms contain the digit string &#39;13&#39; and by&amp;nbsp;Dirichlet&#39;s&amp;nbsp;theorem must contain an infinite number of primes.&lt;br /&gt;
&lt;br /&gt;
$\blacksquare$&lt;br /&gt;
&lt;br /&gt;
Although we used Dirichlet&#39;s theorem for showing this particular result, there are other theorems we could have used as well. For example, we could have used the fact that the &lt;a href=&quot;http://en.wikipedia.org/wiki/Prime-counting_function&quot;&gt;prime counting function&lt;/a&gt; $\pi(x)$ is bound by \[\frac{1}{2}\frac{x}{\log(x)}&amp;lt;\pi(x)&amp;lt;2\frac{x}{\log(x)}.\]&lt;br /&gt;
Just so I don&#39;t feel like a complete hack, here are some exercises for you guys.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Exercises&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Prove that there are infinitely many primes containing 42 (if you use Dirichlet&#39;s Theorem, use it carefully).&lt;/li&gt;
&lt;li&gt;Prove that there are infinitely many primes starting with the digits 42.&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/5715981006241291078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2011/07/digit-strings-inside-of-primes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/5715981006241291078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/5715981006241291078'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2011/07/digit-strings-inside-of-primes.html' title='Number of Primes with Desired Digit Strings'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-3582130643747518202</id><published>2011-07-02T11:00:00.000-07:00</published><updated>2011-08-30T02:08:07.596-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mathematics"/><category scheme="http://www.blogger.com/atom/ns#" term="Proofs"/><title type='text'>The Kempner Series - A modified harmonic series</title><content type='html'>The &lt;a href=&quot;http://en.wikipedia.org/wiki/Harmonic_series_(mathematics)&quot;&gt;harmonic series&lt;/a&gt;&amp;nbsp;is considered a classic textbook example of a series that seems to converge but is actually divergent. For those that need a reminder, the harmonic series is: \[\sum_{n=1}^{\infty}\frac{1}{n}=1+\frac{1}{2}+\frac{1}{3}+\frac{1}{4}\cdots.\]&lt;br /&gt;
Now here&#39;s an interesting question:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;How can we modify the harmonic series to make it convergent?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Disregarding trivial answers such as &quot;remove all the terms&quot;, this question is actually pretty hard to answer. Say we removed every second term starting from the first (i.e. 1, 1/3, 1/5, etc). Would that work?&lt;br /&gt;
\[\sum_{\substack{n=1 \\ n\ is\ even}}^{\infty}\frac{1}{n}=\frac{1}{2}+\frac{1}{4}+\frac{1}{6}+\frac{1}{8}\cdots=\frac{1}{2}\left(1+\frac{1}{2}+\frac{1}{3}+\frac{1}{4}\cdots\right).\]&lt;br /&gt;
From above, it seems like it would not work since it just produces half of the original series (which is not a very well defined quantity since the original series was divergent anyway).&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Another way to modify the harmonic series&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Instead of removing every second term, let us &lt;b&gt;remove every term with a 9 in it &lt;/b&gt;(i.e. remove 1/9, 1/19, 1/29, etc). This series is called the Kempner series: \[1+\frac{1}{2}+\frac{1}{3}+\cdots+\frac{1}{8}+\frac{1}{10}+\cdots.\]Although removing every term with a 9 doesn&#39;t seem like a lot, this bizarrely modified harmonic series is actually convergent (it is also convergent if you choose to remove any other digit/string of digits such as &quot;0&quot;, &quot;42&quot;, or &quot;8675309&quot;)!&lt;br /&gt;
&lt;br /&gt;
We can now state the formal question as:&lt;br /&gt;
&lt;br /&gt;
Consider the series:&amp;nbsp;\[a_{n}=\begin{cases}1/n &amp;amp; if\ &amp;nbsp;n\ &amp;nbsp;does\ &amp;nbsp;not\ &amp;nbsp;contain\ &amp;nbsp;the\ &amp;nbsp;digit\ 9 \\ 0 &amp;amp; otherwise\end{cases}\] Is $\sum a_n$ convergent?&lt;br /&gt;
&lt;br /&gt;
Instead of starting the proof right away, let&#39;s look at why this modification to the harmonic series might make it convergent.&lt;br /&gt;
&lt;br /&gt;
The plots below read 1 whenever an integer contains the digit 9, and 0 otherwise.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7wM3XHZQbSN7CmUEdnlp7Chi96UD91Tax7HM2u14QyZC8PEWM4xienhZjcT-RqLBrWYhyttNm0VCLUY_Tja4WVtlEyHh4SK33a914hVfwcYEFt6gq4N8sTKhGl6gr89KeoWazLW4NW1M/s1600/Kempner+Series.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;396&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7wM3XHZQbSN7CmUEdnlp7Chi96UD91Tax7HM2u14QyZC8PEWM4xienhZjcT-RqLBrWYhyttNm0VCLUY_Tja4WVtlEyHh4SK33a914hVfwcYEFt6gq4N8sTKhGl6gr89KeoWazLW4NW1M/s640/Kempner+Series.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Upper left: Plot from 1 - 9, Upper right: Plot from 10 - 99, Lower left: Plot from 100 - 999, Lower Right: Plot from 1000 - 9999.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
As you can see, the plots have a nice &quot;fractal&quot; quality to them, in that each plot looks like it makes up parts of the next plot. Although the actual number of terms removed by the modification seems fewer than doing something like removing every second term, we can see that there are always points in the series where a long stretch of consecutive terms are removed (in fact, name a number and we can always find a point in the series where the number of consecutive terms removed is greater than that number). As the number of digits in the terms get large, the number of terms we remove increase drastically. As an example, most integers of say 100 digits will have a 9 in them, leading to about 99.99997% of the 100 digit terms being deleted. It is the quirky effect of removing consecutive terms as well as the fractal quality of the series that will allow us to see and prove its convergence.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Just exactly how many terms are removed though?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
To do this systematically, we&#39;ll exploit the pattern we saw in the plots above. That is, since the plots seem to exhibit fractal qualities in the ranges ([1,9], [10,99], [100, 999] ...) that they are plotted, we&#39;ll look at the number of terms removed inside these ranges.&lt;br /&gt;
&lt;br /&gt;
For the interval [1,9], only &lt;b&gt;1 term is removed&lt;/b&gt;. Note that this range starts at 1 because the harmonic series starts at n=1.&lt;br /&gt;
&lt;br /&gt;
For the interval [10, 99], we have 1 term removed from each of 10 - 19, 20 - 29, 30 - 39, ... , 80 - 89. Then we have 10 terms removed from 90 - 99. In total, we have 8 terms removed from 10 - 89, and a further 10 terms removed from 90 - 99. This makes for 8*1 + 10 =&amp;nbsp;&lt;b&gt;18 terms removed&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
For the interval [100, 999], there is one term removed from 100 - 109, 18 terms removed from 110 - 199, 1 term removed from 200 - 219, 18 terms removed from 220 - 299, and so on, with the last being 18 terms removed from 800 - 899 terms. Finally, we have 100 terms removed from [900, 999]. In total this is 8*1 + 8*18 + 10² = &lt;b&gt;252 terms removed&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
Perhaps you are seeing a pattern here. Let&#39;s try to make out what that pattern is. Instead of looking at the number of terms removed, let&#39;s look at the &lt;b&gt;number of terms we are keeping&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
For the interval [1,9], we keep 9 - 1 = &lt;b&gt;8&amp;nbsp;terms&lt;/b&gt;.&lt;br /&gt;
For the interval [10, 99], we keep 90 - 18 = &lt;b&gt;72 terms&lt;/b&gt;.&lt;br /&gt;
For the interval [100, 999], we keep 900 - 252 = &lt;b&gt;648 terms&lt;/b&gt;.&lt;br /&gt;
The pattern is 8, 72, 648. Dividing by 8, we have the pattern 1, 9, 81. We can see that the next number in the sequence will be 81*9 = 729, making the number of terms kept 8*729 = 5832. So the number of terms kept in a given interval $[10^n,10^{n+1}-1]$ is $8\cdot 9^n$. We will assume this knowledge (though it can be proven by standard methods of mathematical induction) for the proof below.&lt;br /&gt;
&lt;br /&gt;
Before we start the proof, we now can see why our modification to the series is so effective. Consider all integers containing 100 digits. There are&amp;nbsp;$9\cdot 10^{99}$ of them. The number of terms that are kept is $8\cdot 9^{99}$. The fraction of terms that are kept is thus \[\frac{8\cdot 9^{99}}{9\cdot 10^{99}}\approx0.0000262335.\] We took out a lot of terms!&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;The proof&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Consider the series:&amp;nbsp;\[a_{n}=\begin{cases}1/n &amp;amp; if\ &amp;nbsp;n\ &amp;nbsp;does\ &amp;nbsp;not\ &amp;nbsp;contain\ &amp;nbsp;the\ &amp;nbsp;digit\ 9 \\ 0 &amp;amp; otherwise\end{cases}\] Is $\sum a_n$ convergent?&lt;br /&gt;
&lt;br /&gt;
We know from the section above that the number of terms that are not 0 in $a_n$ on an interval &amp;nbsp;$[10^n,10^{n+1}-1]$ is $8\cdot 9^n$. Moreover, the largest term of the harmonic series in each interval&amp;nbsp;$[10^n,10^{n+1}-1]$ is $\frac{1}{10^n}$.&lt;br /&gt;
&lt;br /&gt;
Therefore, we can provide an upper bound for&amp;nbsp;$\sum a_{n}$:&lt;br /&gt;
\[\sum a_{n}&amp;lt;\sum8\cdot9^{n-1}\cdot\frac{1}{10^{n-1}}=\sum8\cdot\left(\frac{9}{10}\right)^{n-1}.\] The right hand side is a convergent geometric series with sum \[8\sum_{n=1}^{\infty}\left(\frac{9}{10}\right)^{n-1}=80.\] Thus, $\sum a_n$ is convergent by comparison.&lt;br /&gt;
&lt;br /&gt;
$\blacksquare$&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Extra tidbits&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Although we have proven the convergence of this series when the digit 9 removed, the series is convergent if you remove any digit or string of digits. For example, when all numbers with &quot;42&quot; is removed from the harmonic series, the sum of the series is about 230. When all 9&#39;s are removed, the sum of the series is about 23.&lt;br /&gt;
&lt;br /&gt;
Although the Kempner series converges, the convergence rate is extremely slow. After summing about 10 million terms, I am still 9 off from 23. It is known that even after summing 10&lt;sup&gt;27&lt;/sup&gt; terms, the sum is still about 1 off from 23. Can you think of a way to make the series sum faster?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;References&lt;/b&gt;&lt;br /&gt;
1. The source of the question is from an old professor of mine, whose page can be found&amp;nbsp;&lt;a href=&quot;http://www.math.ubc.ca/~fsl/&quot;&gt;here&lt;/a&gt;&amp;nbsp;(under teaching and Science One).&lt;br /&gt;
2. R. Baillie,&amp;nbsp;&lt;i&gt;&lt;a href=&quot;http://www.jstor.org/stable/2321096&quot;&gt;Sums of Reciprocals of Integers Missing a Given Digit&lt;/a&gt;, &lt;/i&gt;American Mathematical Monthly &lt;b&gt;86&lt;/b&gt;, 372-374.&lt;br /&gt;
3. T. Schmelzer and R. Baillie,&amp;nbsp;&lt;i&gt;&lt;a href=&quot;http://www.jstor.org/stable/27642532?seq=1&quot;&gt;Summing a Curious, Slowly Convergent Series&lt;/a&gt;,&amp;nbsp;&lt;/i&gt;American Mathematical Monthly &lt;b&gt;115&lt;/b&gt;, 525-540.</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/3582130643747518202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2011/07/kempner-series-modified-harmonic-series.html#comment-form' title='21 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/3582130643747518202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/3582130643747518202'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2011/07/kempner-series-modified-harmonic-series.html' title='The Kempner Series - A modified harmonic series'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7wM3XHZQbSN7CmUEdnlp7Chi96UD91Tax7HM2u14QyZC8PEWM4xienhZjcT-RqLBrWYhyttNm0VCLUY_Tja4WVtlEyHh4SK33a914hVfwcYEFt6gq4N8sTKhGl6gr89KeoWazLW4NW1M/s72-c/Kempner+Series.png" height="72" width="72"/><thr:total>21</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-7256316492216037947</id><published>2011-06-25T15:30:00.000-07:00</published><updated>2011-06-29T20:38:58.219-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mathematics"/><title type='text'>$\frac{d}{dx}(f(x)g(x)) \neq f^\prime(x)g^\prime(x)$? Think again!</title><content type='html'>One of the most unintuitive and frustrating facts about calculus is that \[\frac{d}{dx}(f(x)g(x))\neq f^\prime(x)g^\prime(x).\]&lt;br /&gt;
It is said in certain apocryphal tales that &lt;a href=&quot;http://en.wikipedia.org/wiki/Gottfried_Leibniz&quot;&gt;the great man&lt;/a&gt; himself once made the above mistake. Instead of the pretty but untrue equation above, we have the unsightly but true &quot;product rule&quot;:&lt;br /&gt;
\[\frac{d}{dx}f(x)g(x)= f(x)g^\prime(x)+f^\prime(x)g(x).\]&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;If you&#39;re like me, you&#39;ll despise this terrible rule for all the extra algebra it usually introduces into typical calculus questions. My wrists would often hurt from applying and reapplying the product rule in repeated differentiations. So, with a bit of free time and a a desire for&amp;nbsp;vengeance, I have compiled a list of functions (zoom in if you cannot see some of the variables) for which the equation \[\frac{d}{dx}(f(x)g(x))=f^\prime(x)g^\prime(x)\] is absolutely positively true. Take that product rule (all c&#39;s, n&#39;s, and a&#39;s are arbitrary constants)!&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;\[f(x)=c_{1}, g(x)=c_{2}\]&lt;/li&gt;
&lt;li&gt;\[f(x)=c_{1}(a+nx)^{\frac{1}{n}}, g(x)=c_{2}(a+nx-1)^{-\frac{1}{n}}\]&lt;/li&gt;
&lt;li&gt;\[f(x)=c_{1}e^{nx}, g(x)=c_{2}e^{\frac{n}{n-1}x}\]&lt;/li&gt;
&lt;li&gt;\[f(x)=c_{1}e^{x}(a^{nx}-1)^{-\frac{1}{n\log(a)}}, g(x)=c_{2}e^{-\frac{a^{-nx}}{n\log(a)}}\]&lt;/li&gt;
&lt;/ul&gt;&quot;Pfft,&quot; you say. &quot;I could have guessed those ones!&quot; Well, let&#39;s make things a little more exciting and introduce some trig.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;\[f(x)=c_{1}\left(1-a\arccos(\sin(nx))\right)^{\frac{\sqrt{\cos^{2}(nx)}\sec(nx)}{an}}, g(x)=c_{1}\arccos(\sin(nx))^{-\frac{\sqrt{\cos^{2}(nx)}sin(nx)}{an}}\]&lt;/li&gt;
&lt;li&gt;\[f(x)=c_{1}e^{\frac{\coth(a+nx)}{n}}, g(x)=c_{2}e^{\frac{\tanh(a+nx)}{n}}\]&lt;/li&gt;
&lt;li&gt;\[f(x)=c_{1}e^{\frac{-\cot(a+nx)}{n}}, g(x)=c_{2}e^{\frac{\tan(a+nx)}{n}}\]&lt;/li&gt;
&lt;/ul&gt;That wasn&#39;t much. Let&#39;s step it a notch (at this point you will appreciate the ability on this blog to zoom on the formulae to any degree).&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;\[f(x)=c_{1}e^{\frac{2\arctan\left(\tanh\left(\frac{a+nx}{2}\right)\right)}{n}}, g(x)=c_{1}e^{\frac{\coth\left(\frac{a+nx}{2}\right)}{n}}\]&lt;/li&gt;
&lt;li&gt;\[f(x)=c_{1}e^{\frac{2(a+nx)+\sin(2(a+nx))}{4n}}, g(x)=c_{2}e^{\frac{\cot(a+nx)}{n}+x}\]&lt;/li&gt;
&lt;/ul&gt;Finally, I found these gems after a bit of searching. Beautiful, right?&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;\[f(x)=c_{1}\exp\left(-\frac{2\arctan\left(\frac{a-\tan\left(\frac{nx}{2}\right)}{\sqrt{1-a^{2}}}\right)}{n\,\sqrt{1-a^{2}}}\right), g(x)=c_{2}\sin\left(\frac{nx}{2}\right)^{\frac{1}{an}}\cos\left(\frac{nx}{2}\right)^{-\frac{1}{an}}\]&lt;/li&gt;
&lt;li&gt;\[f(x)=c_{1}\exp\left(\frac{2\sin\left(\frac{a+nx}{2}\right)\left(\csc\left(\frac{a}{2}\right)\sin\left(\frac{nx}{2}\right)-nx\sin\left(\frac{a+nx}{2}\right)\right)}{n(\cos(a+nx)-1)}\right),&amp;nbsp;g(x)=c_{2}e^{\frac{\sin(a+nx)}{n}}\]&lt;/li&gt;
&lt;li&gt;\[f(x)=c_{1}\exp\left(\frac{nx-a\log(a\sin(nx)-\cos(nx))}{a^{2}n+n}\right), g(x)=c_{2}\sin(nx)^{\frac{1}{an}}\]&lt;/li&gt;
&lt;/ul&gt;These functions all obey the &quot;nice&quot; product rule&amp;nbsp;\[\frac{d}{dx}(f(x)g(x))=f^\prime(x)g^\prime(x)\] with typical restrictions such not allowing constants which cause divisions by zero.&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;ul&gt;&lt;/ul&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;So how did I do it?&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
A bit of calculus and creativity.&lt;br /&gt;
&lt;br /&gt;
Using the product rule on the original equation:&lt;br /&gt;
\[(f(x)g(x))^{\prime}=f^{\prime}(x)g^{\prime}(x)\] \[f(x)g^{\prime}(x)+f^{\prime}(x)g(x)=f^{\prime}(x)g^{\prime}(x)\]&lt;br /&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;Dividing both sides by $f^{\prime}(x)g^{\prime}(x)$ we obtain:&lt;/div&gt;\[\frac{f(x)}{f^{\prime}(x)}+\frac{g(x)}{g^{\prime}(x)}=1\]&lt;br /&gt;
Now comes the creative part. I pick a function, say $x+(1-x)=1$.&amp;nbsp;Let $\frac{f(x)}{f^{\prime}(x)}=x$, $\frac{g(x)}{g^{\prime}(x)}=1-x$&lt;br /&gt;
&lt;div style=&quot;-qt-block-indent: 0; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;We now have two differential equations we can solve:&lt;/div&gt;\[\frac{f}{f^\prime}=x,\frac{g}{g^\prime}=1-x\]&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Solving these differential equations we obtain:&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;\[f(x)=c_{1}x,g(x)=\frac{c_{2}}{1-x}\]&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;which obey the nice equation&amp;nbsp;\[\frac{d}{dx}(f(x)g(x))= f^\prime(x)g^\prime(x).\]&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;The more functions that you can think of which adds up 1, the more functions you can produce which obey our &quot;nice&quot; product rule.&lt;br /&gt;
&lt;br /&gt;
I&#39;d love to see what you guys can come up with, so post your functions in the comments below! To make it more challenging, try to make the functions you find as general as possible, and only find functions which are composed of elementary functions!&lt;/div&gt;&lt;div style=&quot;-qt-block-indent: 0; -qt-paragraph-type: empty; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;-qt-block-indent: 0; -qt-paragraph-type: empty; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-indent: 0px;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/7256316492216037947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2011/06/fracddxfxgx-neq-fprimexgprimex-think.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/7256316492216037947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/7256316492216037947'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2011/06/fracddxfxgx-neq-fprimexgprimex-think.html' title='$\frac{d}{dx}(f(x)g(x)) \neq f^\prime(x)g^\prime(x)$? Think again!'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-6554843881865426634</id><published>2011-06-21T16:08:00.000-07:00</published><updated>2019-10-09T13:10:45.296-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Physics"/><title type='text'>Making your own pendulum wave machine</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
This post is a continuation of a three part post started &lt;a href=&quot;http://hippomath.blogspot.com/2011/06/pendulum-waves-mathematical-description.html&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
To make your own pendulum wave machine, you can see from &lt;a href=&quot;http://www.youtube.com/watch?v=yVkdfJ9PkRQ&quot;&gt;the video&lt;/a&gt; that you just need to place 15 pendula or so beside each other at equal separations. What is hard to see however, is how long the length of string should be. Below we&#39;ll derive a function for you to calculate the lengths of each pendulum on your machine (or just scroll to the bottom to see some precalculated lengths).&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
In the small angle approximation, the period of a pendulum is \[T=2\pi\sqrt{\frac{l}{g}}\implies \omega=\frac{2\pi}{T}=\sqrt{\frac{g}{l}}\] where $g$ is 9.8 m/s and $l$ is the length of the pendulum.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
Since length of the pendulum depends on its location on the apparatus, we have $l(n)$ instead of a constant $l$ (where $n$ is the pendulum number). Putting it all together, \[\omega(x)=\sqrt{\frac{g}{l(x)}}.\]&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
But we also know from the previous post that&amp;nbsp;\[\omega(x)=\frac{2\pi}{T}=\frac{2\pi \left(N+\frac{x}{d}\right)}{\Gamma}=\frac{2\pi \left(N+n\right)}{\Gamma}.\]&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
Isolating for $l(n)$, we have \[l(n)=g\left(\frac{\Gamma}{2\pi\left(N+n\right)}\right)^2\] where $\Gamma$ is the duration for the entire dance (60s in the video), $N$ is the&amp;nbsp;&lt;b&gt;number of oscillations&lt;/b&gt;&amp;nbsp;the longest pendulum performs in the cycle (51 in the video - I always mistake this for the number of pendula for some reason), $n$ is the pendulum index (starting from 0).&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
As an example, we can calculate the lengths of the pendula in the video of the previous post.&lt;/div&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;b&gt;Pendulum Index&lt;/b&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
0&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
1&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
2&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
3&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
4&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
5&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
6&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
7&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
8&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
9&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
10&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
11&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
12&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
13&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
14&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;b&gt;Length (m)&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
0.343&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
0.330&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
0.318&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
0.306&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
0.295&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
0.285&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
0.275&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
0.265&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
0.256&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
0.248&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
0.240&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
0.232&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
0.225&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
0.218&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
0.211&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
You can calculate your own pendulum lengths on the online spreadsheet file I&#39;ve posted&amp;nbsp;&lt;a href=&quot;https://spreadsheets.google.com/spreadsheet/ccc?key=0AtLKYwLT9NJYdFRIbUw1c1hUbmFvM0lWOHR3ZkRsVkE&amp;amp;hl=en_GB&amp;amp;authkey=CMT20bsC&quot;&gt;here&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;
UPDATE: I&#39;ve newer much better simulations and calculators. You can find them at&amp;nbsp;&lt;a href=&quot;https://cs.stanford.edu/people/paulliu/webapps/pendulumcalc.html&quot;&gt;https://cs.stanford.edu/people/paulliu/webapps/pendulumcalc.html&lt;/a&gt;,&lt;br /&gt;
&lt;a href=&quot;https://cs.stanford.edu/people/paulliu/webapps/pendulum.html&quot;&gt;https://cs.stanford.edu/people/paulliu/webapps/pendulum.html&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
All that left to do is decide on the dimensions of your pendulum wave machine. For example, if I wanted to make the machine above, I&#39;d place each pendulum above 5 cm apart, making the entire machine at least 70 cm long and 34.3 cm tall. However, one thing to note is that these pendulum wave demonstrations are made perfect by careful timing of the periods on each pendulum, not by careful measurement of the pendulum lengths. As such, make the individual pendulums on your machine adjustable! The very first design of this demonstration used 15 adjustable screws to which each pendulum tied on to. By carefully adjusting each screw and timing each pendulum, the correct number of oscillations can be tuned for each individual pendulum.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
That&#39;s all there is to it, I&#39;ll leave the nitty-gritty details of the design to all you talented folks out there. They make for great gifts! I made my girlfriend one for her birthday and she loved it! OK, that was a lie. But it did get her parents to like me.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/6554843881865426634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2011/06/making-your-own-pendulum-wave-machine.html#comment-form' title='142 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/6554843881865426634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/6554843881865426634'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2011/06/making-your-own-pendulum-wave-machine.html' title='Making your own pendulum wave machine'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><thr:total>142</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-2328433272255040716</id><published>2011-06-21T16:07:00.000-07:00</published><updated>2011-06-21T16:21:52.050-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Physics"/><title type='text'>Pendulum Waves - Mathematical Description cont. 2</title><content type='html'>&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;If you missed the first two parts to this post, you can start &lt;a href=&quot;http://hippomath.blogspot.com/2011/06/pendulum-waves-mathematical-description.html&quot;&gt;here&lt;/a&gt; to get some context.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Well, perhaps the equation is not fantastically clear to you how the waves act at all (don&#39;t worry, it&#39;s not clear to me either). Let&#39;s actually graph this equation and figure out how to make sense of it.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJIv7-5DNnz4L5ygpHUk4AKBxbvZq0DPKO7Nxra7cGnhvxmO1dqspzRotwLaUaZoGN7MVmlheLPZzSEsnBBt8j4e0Aic2JIIwwE326HozJXbh5eZrBda5YAIn_xnB4YprFnuQ2xSLMLTo/s1600/Aliasing+Graphs.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;382&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJIv7-5DNnz4L5ygpHUk4AKBxbvZq0DPKO7Nxra7cGnhvxmO1dqspzRotwLaUaZoGN7MVmlheLPZzSEsnBBt8j4e0Aic2JIIwwE326HozJXbh5eZrBda5YAIn_xnB4YprFnuQ2xSLMLTo/s640/Aliasing+Graphs.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;This is a top view of the pendulum wave machine. The x-axis represents the pendulums location on the machine, the y-axis represents each pendulums displacement from equilibrium.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;We can see that at the beginning, all pendula are exactly in phase at maximum amplitude, as expected. Afterwards, we see a series of patterns until we reach the middle of the &quot;dance&quot;, during which all adjacent pendula are exactly out of phase. After this, the dance plays out in the reverse order until we get all the pendulums back in phase again.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
If you want to explore this graph dynamically and play around with a simulation of the pendulum waves (and have Mathematica/Wolfram CDF Player), go to this &lt;a href=&quot;http://demonstrations.wolfram.com/preview.html?draft/51119/000004/AliasingInPendulumWaves&quot;&gt;interactive demonstration&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Whats wrong with the graphs we see above?&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Well, whats what is that although the pendulum dance&amp;nbsp;&lt;b&gt;seems&lt;/b&gt;&amp;nbsp;periodic, the equation we&#39;ve figured out tells us that it&#39;s not. As you can see, the function $y(x,t)$ has increasingly smaller wavelengths as time progresses. It&#39;s only by looking at specific points on the function (i.e. by looking at where the pendula are located) that we get the illusion of a periodic function.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;The proper term for this phenomenon is aliasing (an example is below - from &lt;a href=&quot;http://en.wikipedia.org/wiki/Aliasing&quot;&gt;Wikipedia&lt;/a&gt;):&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;&lt;a href=&quot;http://upload.wikimedia.org/wikipedia/commons/3/31/Moire_pattern_of_bricks.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://upload.wikimedia.org/wikipedia/commons/3/31/Moire_pattern_of_bricks.jpg&quot; style=&quot;cursor: move;&quot; width=&quot;262&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;http://upload.wikimedia.org/wikipedia/commons/f/fb/Moire_pattern_of_bricks_small.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://upload.wikimedia.org/wikipedia/commons/f/fb/Moire_pattern_of_bricks_small.jpg&quot; style=&quot;cursor: move;&quot; width=&quot;262&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;I think you get the idea of what type of confusion aliasing can cause.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
With the function we&#39;ve derived, we could check many things mathematically, such as the symmetry of the patterns before and after $\frac{\Gamma}{2}$ as well as whether we&#39;ll get the same patterns in the time from 0 to $\Gamma$ vs. $\Gamma$ to $2\Gamma$. If you want to see these properties shown from our function, the original paper that this derivation was distilled from can be found in the references below. If there are enough requests for me to show these properties on my blog, I&#39;ll be glad to write another post.&lt;br /&gt;
&lt;br /&gt;
If you wish to apply the equation we&#39;ve derive to make your own pendulum wave machine, see my &lt;a href=&quot;http://hippomath.blogspot.com/2011/06/making-your-own-pendulum-wave-machine.html&quot;&gt;next post&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
***********&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;References:&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;[1]&amp;nbsp;&lt;a href=&quot;http://sciencedemonstrations.fas.harvard.edu/icb/icb.do?keyword=k16940&amp;amp;pageid=icb.page80863&amp;amp;pageContentId=icb.pagecontent341734&amp;amp;state=maximize&amp;amp;view=view.do&amp;amp;viewParam_name=indepth.html&quot;&gt;Harvard Demonstrations - Simple Harmonic Motion&lt;/a&gt;&lt;br /&gt;
[2] J. Flatten and K. Parendo, &lt;i&gt;Pendulum Waves: A lesson in aliasing&lt;/i&gt;, American Journal of Physics &lt;b&gt;69&lt;/b&gt;, 778-782 (2001).&lt;br /&gt;
[3] R. Berg, &lt;i&gt;Pendulum Waves: A demonstration of wave motion using pendula&lt;/i&gt;, American Journal of Physics &lt;b&gt;59&lt;/b&gt;, 186-187 (1991).&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/2328433272255040716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2011/06/pendulum-waves-mathematical-description_6472.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/2328433272255040716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/2328433272255040716'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2011/06/pendulum-waves-mathematical-description_6472.html' title='Pendulum Waves - Mathematical Description cont. 2'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJIv7-5DNnz4L5ygpHUk4AKBxbvZq0DPKO7Nxra7cGnhvxmO1dqspzRotwLaUaZoGN7MVmlheLPZzSEsnBBt8j4e0Aic2JIIwwE326HozJXbh5eZrBda5YAIn_xnB4YprFnuQ2xSLMLTo/s72-c/Aliasing+Graphs.png" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-3625621251953290464</id><published>2011-06-21T16:06:00.000-07:00</published><updated>2012-10-23T11:28:31.690-07:00</updated><title type='text'>Pendulum Waves - Mathematical Description cont.</title><content type='html'>This is the second of a three part post on mathematically explaining the pendulum waves apparatus (below). The first part is located &lt;a href=&quot;http://hippomath.blogspot.com/2011/06/pendulum-waves-mathematical-description.html&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/yVkdfJ9PkRQ?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
We&#39;ll start off from where we ended last time.&lt;br /&gt;
We had two possible equations that we could use to continue our derivation with:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
\[y(x,t)=A\cos\left(k_{0}x+\omega(x)t\right)\]\[y(x,t)=A\cos\left(k(t)x+\omega_{0}t\right).\]&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
Let&#39;s use the first of the two equations above.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
Since we start the pendulum waves by setting all the pendula to maximum amplitude, we have \[y\left(x,0\right)=A=A\cos\left(k_{0}x+\omega\left(0\right)\cdot0\right)\]\[A=A\cos\left(k_{0}x\right)\implies k_{0}=0.\]&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
Let&#39;s figure out what $\omega(x)$ is. We&#39;ll forget about $\omega$ as a function of $x$ for a moment and look at $\omega$ as a function of the n-th pendulum instead.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPuP-u7Fjc5dl0nWlfhVLekc_0GUS7pFjVhXwSckK14JwDC5lYODx3TbQpCMggJ7t0wIyXjCurxeYjGmuwxkoJWJK89eX-RLXkJPERYZ7QNXcP091fW_TqRwHDTrk-VRBcypK-_IxQhAY/s1600/Pendula+Diagram.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPuP-u7Fjc5dl0nWlfhVLekc_0GUS7pFjVhXwSckK14JwDC5lYODx3TbQpCMggJ7t0wIyXjCurxeYjGmuwxkoJWJK89eX-RLXkJPERYZ7QNXcP091fW_TqRwHDTrk-VRBcypK-_IxQhAY/s320/Pendula+Diagram.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Recall that the total time of the dance is $\Gamma$ during which the longest pendulum performs $N$ oscillations. So the period of the longest pendulum is $T=\frac{\Gamma}{N}$. OK, so we have the period of one pendulum now. How do we figure out the gabajillion other pendulums on the thing? Well, we also know that as the pendulums get shorter, their number of oscilations increases. More specifically, if the longest pendulum has 51 oscillations, then its shorter neighbour will have 52 oscillations, its shorter neighbour will have 53 oscillations, and so forth. So letting $n$ represent the n-th pendulum (counting from 0), the period of any pendulum on the apparatus is $T=\frac{\Gamma}{N+n}$.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
To express $\omega$ as a function of $x$, note that the x-position of the pendulum is $x=nd$ (so $n=\frac{x}{d}$ where $d$ is the common spacing between adjacent pendulums. We&#39;re almost done now. Now we can see that: \[\omega(x)=\frac{2\pi}{T}=\frac{2\pi}{\frac{\Gamma}{N+\frac{x}{d}}}\] \[\omega(x)=\frac{2\pi \left(N+\frac{x}{d}\right)}{\Gamma}=\frac{2\pi \left(Nd+x\right)}{\Gamma d}\]&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
Therefore, our complete wave equation is: \[y(x,t)=A\cos\left(\frac{2\pi \left(Nd+x\right)}{\Gamma d}t\right)\]&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
As a note of interest, we can rewrite the equation above as&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
\[y(x,t)=A\cos\left(\frac{2\pi t}{\Gamma d}x + \frac{2\pi N}{\Gamma}t\right)\] which corresponds to&amp;nbsp;\[y(x,t)=A\cos\left(k(t)x+\omega_{0}t\right).\]&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;
&lt;br /&gt;
And we are done! That&#39;s the equation describing all of the waves you see in the video above.&lt;br /&gt;
&lt;br /&gt;
Now that we are finished, we can take a nice break and prepare ourselves for the &lt;a href=&quot;http://hippomath.blogspot.com/2011/06/pendulum-waves-mathematical-description_6472.html&quot;&gt;next post&lt;/a&gt;, where I&#39;ll discuss the properties of the equation we&#39;ve just found.&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/3625621251953290464/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2011/06/pendulum-waves-mathematical-description_21.html#comment-form' title='19 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/3625621251953290464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/3625621251953290464'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2011/06/pendulum-waves-mathematical-description_21.html' title='Pendulum Waves - Mathematical Description cont.'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPuP-u7Fjc5dl0nWlfhVLekc_0GUS7pFjVhXwSckK14JwDC5lYODx3TbQpCMggJ7t0wIyXjCurxeYjGmuwxkoJWJK89eX-RLXkJPERYZ7QNXcP091fW_TqRwHDTrk-VRBcypK-_IxQhAY/s72-c/Pendula+Diagram.png" height="72" width="72"/><thr:total>19</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-8938845540758084839</id><published>2011-06-21T16:05:00.000-07:00</published><updated>2012-03-17T18:20:42.314-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Physics"/><title type='text'>Pendulum Waves - Mathematical Description</title><content type='html'>Everyone likes bling, so let&#39;s start this post off with some eye-candy (skip to 20s if you&#39;ve got very little patience):&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/yVkdfJ9PkRQ?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
That was pretty damn cool.&amp;nbsp;Even if you&#39;re not admitting it, I know you&#39;re thinking it.&lt;br /&gt;
&lt;br /&gt;
Lately, that video has been posted and reposted all over the internet. Now, don&#39;t get me wrong, I love spreading the joy of physics to no end. For those unsatisfied with simply seeing the video however, this post will be dedicated to presenting the nitty-gritty mathematical details of this marvelous phenomenon. If you would like to skip the math and just get some specifications to making your own pendulum wave machine, proceed &lt;a href=&quot;http://hippomath.blogspot.com/2011/06/making-your-own-pendulum-wave-machine.html&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
This is how the apparatus works in a nutshell:&lt;br /&gt;
&lt;blockquote&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;i&gt;The period of one complete cycle of the dance is 60 seconds. The length of the longest pendulum has been adjusted so that it executes 51 oscillations in this 60 second period. The length of each successive shorter pendulum is carefully adjusted so that it executes one additional oscillation in this period. Thus, the 15th pendulum (shortest) undergoes 65 (51 oscillations + 14 pendulums from the first) oscillations. When all 15 pendulums are started together, they quickly fall out of sync—their relative phases continuously change because of their different periods of oscillation. However, after 60 seconds they will all have executed an integral number of oscillations and be back in sync again at that instant, ready to repeat the dance. [1]&lt;/i&gt;&lt;/span&gt;&lt;/blockquote&gt;
Let&#39;s begin. In a typical undergraduate physics course, you have most likely come across the (somewhat useless) travelling wave equation:&lt;br /&gt;
&lt;br /&gt;
\[y(x,t)=A\cos\left(kx+\omega t+\phi\right)\]&lt;br /&gt;
where $A$ is the amplitude, $k=\frac{2\pi}{\lambda}$ is the wave number, $\omega=\frac{2\pi}{T}$ is the angular frequency, and $\phi$ is the phase shift. By convention, $\lambda$ and $T$ are used to denote the wavelength and period of the wave respectively. Lets also call the number of oscillations the longest pendulum goes thru $N$ (51 in this case) and the total time for the entire &quot;dance&quot; $\Gamma$ (60s in this case).&lt;br /&gt;
&lt;br /&gt;
From the video, we can see that at $t=0$ and for any $x$ (we pick $x=0$), we have the maximum amplitude, $A$:&lt;br /&gt;
&lt;br /&gt;
\[y\left(0,0\right)=A\cos\left(k\cdot0+\omega\cdot0+\phi\right)\]\[A=A\cos\left(\phi\right)\implies\phi=0.\]&lt;br /&gt;
Another thing we can see is that because the waves change shape in time, the wavelength must be a function of time and so the wave number (since it depends on $\lambda$) must also be a function of time. So instead of a fixed $k$, we have $k(t)$. Another thing to note is that since each individual pendulum is adjusted to give one more oscillation than their longer neighbour, the period and therefore the angular frequency must be a function of location, so we have $\omega(x)$.&lt;br /&gt;
&lt;br /&gt;
Putting it all together, we have the equation:&lt;br /&gt;
&lt;br /&gt;
\[y(x,t)=A\cos\left(k(t)x+\omega(x)t\right).\]&lt;br /&gt;
Now lets think for a moment. If $k(t)$ and $\omega(x)$ were independent of each other, the combination of some random $k$ and $\omega$ probably would not create the pretty patterns we see in the video. Aha! We have to conclude that $k(t)$ and $\omega(x)$ are some how working together - that these two functions are not independent of each other. More specifically, the cause to $k$ changing with time is due to constructing the machine so that the oscillations of each adjacent pendulum differs by 1 (i.e. due to tuning $w$ with x). With a bit of handwaving, we can choose to express one function in terms of the other and essentially throw away one of them. Our wave equation can now be modified to either one of:&lt;br /&gt;
&lt;br /&gt;
\[y(x,t)=A\cos\left(k_{0}x+\omega(x)t\right)\]\[y(x,t)=A\cos\left(k(t)x+\omega_{0}t\right).\]&lt;br /&gt;
The constants $k_{0}$ and $\omega_{0}$ are used to describe the wave at $t=0$ and $x=0$ respectively.&lt;br /&gt;
&lt;br /&gt;
Now the two expressions above are really the same, since they&#39;re both very general functions of $x$ and $t$. This means we can pick our choice of which equation to use.&lt;br /&gt;
&lt;br /&gt;
Since I don&#39;t like overly long, dry, and boring posts, I&#39;ll end this post right here and continue the derivation in my &lt;a href=&quot;http://hippomath.blogspot.com/2011/06/pendulum-waves-mathematical-description_21.html&quot;&gt;next post&lt;/a&gt;. If you feel like doing the derivation yourself, go for it! It&#39;s a great way to learn.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/8938845540758084839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2011/06/pendulum-waves-mathematical-description.html#comment-form' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/8938845540758084839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/8938845540758084839'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2011/06/pendulum-waves-mathematical-description.html' title='Pendulum Waves - Mathematical Description'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-2692533918905920275</id><published>2011-06-17T14:01:00.000-07:00</published><updated>2011-06-19T09:59:02.089-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mathematics"/><category scheme="http://www.blogger.com/atom/ns#" term="Proofs"/><title type='text'>Proof - Equal temperatures for opposing points on a circle</title><content type='html'>If you would like a bit of intuition before we delve into the proof, see my &lt;a href=&quot;http://hippomath.blogspot.com/2011/06/equal-temperatures-at-two-opposite.html&quot;&gt;last post&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Ready to go? Great.&lt;br /&gt;
&lt;br /&gt;
Let the function $T(x)$ represent the temperature at some position $x$. Around a circle, $T(x)$ is periodic about $2\pi$ radians when $x$ lies on the circle&#39;s circumference. Thus, $T(x)=T(x+2\pi)$. Let us define a new function $D(x)=T(x)-T(x+\pi)$. Note that $D(x)$ is continuous as it is a difference of continuous functions $T(x)$ and $T(x+\pi)$.&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;Let:&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
$D(0)=L$ and $D(\pi)=-D(0)=-L$.&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;If $L=-L=0,$ $T(x)-T(x+\pi)=0$ and we are done.&lt;/li&gt;
&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;If $L\neq0,$ then one of $L$ or $-L$ must be above zero and the&amp;nbsp;other below zero.&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
Since $D(x)$ is a continuous function, we can apply the Intermediate&amp;nbsp;Value Theorem to it. By the&amp;nbsp;Intermediate Value Theorem, the function $D(x)=0$ for some&amp;nbsp;$x\in[0,\pi]$.&lt;br /&gt;
Therefore, $T(x)-T(x+\pi)=0$,&amp;nbsp;and $T(x)=T(x+\pi)$ for some $x\in[0,\pi]$.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;$\blacksquare$&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/2692533918905920275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2011/06/proof-equal-temperatures-for-opposing.html#comment-form' title='18 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/2692533918905920275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/2692533918905920275'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2011/06/proof-equal-temperatures-for-opposing.html' title='Proof - Equal temperatures for opposing points on a circle'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><thr:total>18</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-3597277303241581911</id><published>2011-06-17T14:00:00.000-07:00</published><updated>2011-06-20T20:14:06.338-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mathematics"/><title type='text'>Equal temperatures at two opposite points across the earth</title><content type='html'>This is a neat question I got in my first year calculus course:&lt;br /&gt;
&lt;br /&gt;
Imagine a circle anywhere in the universe. (For example, draw a circle on a sheet of paper, or imagine the&amp;nbsp;equator is a circle.) Prove that there are two points directly opposite each other on the circle with the same&amp;nbsp;temperature.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Yes. It is true. And not just with temperature either. The above fact is true if you replace &quot;temperature&quot; with &quot;humidity&quot;, &quot;air pressure&quot;, or any other &lt;i&gt;continuous&lt;/i&gt;&amp;nbsp;phenomenon.&amp;nbsp;Coincidentally, this is also why nobody is ever as cool as they think they are, since there could always be someone right on the other side of the world who is just as cool (ok, that was completely false and un-funny, but you can&#39;t blame a guy for trying).&lt;br /&gt;
&lt;br /&gt;
If you&#39;re a big boy and you want to skip to the proof, see my &lt;a href=&quot;http://hippomath.blogspot.com/2011/06/proof-equal-temperatures-for-opposing.html&quot;&gt;next post&lt;/a&gt;. If not, let&#39;s settle down and get some intuition as to why this surprising fact is true.&lt;br /&gt;
&lt;br /&gt;
First of all, lets stop thinking about temperature as an actual physical thing and start thinking about it like a function, perhaps some function that looks like this:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIxcxBGDTkpuDfy0QAyX0-blgS67CANNG3eutjvLPm09mwT5amnFcENFKhNTRs3C_OOwDyXpdS-QaX4aR_9HN4bLYaU2pE1djOiaUTIpOXNMdyuRay0cLC_JrGqndbtF9caJUJae3YLiI/s1600/Temperature.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;217&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIxcxBGDTkpuDfy0QAyX0-blgS67CANNG3eutjvLPm09mwT5amnFcENFKhNTRs3C_OOwDyXpdS-QaX4aR_9HN4bLYaU2pE1djOiaUTIpOXNMdyuRay0cLC_JrGqndbtF9caJUJae3YLiI/s320/Temperature.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
For our question, you may imagine the y-axis as temperature, and the x-axis as some indicator of where we are on the circle (e.g. an angle). Additionally, there are two properties that are unique to the function we are describing in this problem:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;It is continuous. We don&#39;t expect temperature to &quot;jump&quot; from one temperature to another without hitting all the temperatures in between (at macroscopic levels at least).&lt;/li&gt;
&lt;li&gt;It is periodic (think sin, cos, etc.). If we go from 0 radians to $2\pi$ radians, we&#39;ll have gone full circle and ended back at where we started. So we know that the temperature at 0 radians and $2\pi$ radians are the same.&lt;/li&gt;
&lt;/ol&gt;These properties should drastically change what our function looks like. Instead of the mess of a function above, our temperature function should look something like the graphs below:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqHprjj05DTCjeW5yTLcxonBdVWQCuR7vgz4gh232bw5LPKj74UlkKAslP2pkNesRLyp8nkBAWp76EYqZ5DNmqWWJBexnJ9GvMjShLHV-vYj9fOjawPxORHXFkSKxgt8iUi_q57x7Hvvk/s1600/Periodic1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;188&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqHprjj05DTCjeW5yTLcxonBdVWQCuR7vgz4gh232bw5LPKj74UlkKAslP2pkNesRLyp8nkBAWp76EYqZ5DNmqWWJBexnJ9GvMjShLHV-vYj9fOjawPxORHXFkSKxgt8iUi_q57x7Hvvk/s320/Periodic1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrgbz9_ai2QH5vxA5vh14ORuc7YZGDJEkO0krTJaaHh4ql2yvE2KrWSO1VtDVzDFXab5Z4gtkRKH3qSMPay1QWRQ-j9Rj_DPll5DGXqtCrxLyYlhMr0XQS5d5aQzG42UkpREdRirpILj0/s1600/Periodic2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;188&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrgbz9_ai2QH5vxA5vh14ORuc7YZGDJEkO0krTJaaHh4ql2yvE2KrWSO1VtDVzDFXab5Z4gtkRKH3qSMPay1QWRQ-j9Rj_DPll5DGXqtCrxLyYlhMr0XQS5d5aQzG42UkpREdRirpILj0/s320/Periodic2.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiipXqDfWmsdEy0o_-31Z1s0csWeRe-gsIoeb5Apqma1-pgRIXAGTX1e7n-Hk05ih0Q3CIfm85XkTQxhp_thHIBEmkKhFa6Zb1IXesjspv-zx_yY3S-I7M5kX8Enp0ullcy__vyjLmAvVk/s1600/Periodic3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiipXqDfWmsdEy0o_-31Z1s0csWeRe-gsIoeb5Apqma1-pgRIXAGTX1e7n-Hk05ih0Q3CIfm85XkTQxhp_thHIBEmkKhFa6Zb1IXesjspv-zx_yY3S-I7M5kX8Enp0ullcy__vyjLmAvVk/s320/Periodic3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
Yes. That last graph is periodic (crazy isn&#39;t it?). If you look closely, all graphs have a period of $2\pi$ (i.e. they are all zero at 0,&amp;nbsp;$2\pi$,&amp;nbsp;$4\pi$). Unfortunately, if you were to plot temperatures on a circle around the Earth, it&#39;d probably resemble the third graph more than the first or second graph. Don&#39;t worry though, the shape of the graph doesn&#39;t complicate things as long as its periodic.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s get back to the original question now. We need to find two equal temperatures at two locations &lt;b&gt;directly opposite to each other on a circle.&lt;/b&gt;&amp;nbsp;This means that the two temperatures are separated by an angle of $\pi$ (or&amp;nbsp;$\pi$ units on the x-axis above). This means we can verify that there exists opposing points with the same temperature by simply drawing a horizontal line of length&amp;nbsp;$\pi$ and moving it around until the ends hit two points on our graph (do you see why?). What the question says is that if you draw a horizontal line of length&amp;nbsp;$\pi$ on your temperature graph, you can &lt;b&gt;always&lt;/b&gt;&amp;nbsp;find endpoints for the line which lie right on the temperature function. For $\sin{x}$, this horizontal line has endpoints $(0,0)$ and $(\pi,0)$ (or&amp;nbsp;$(\pi,0)$ and&amp;nbsp;$(2\pi,0)$ if you prefer). The same goes for the triangle wave graph. For the third graph, the line is drawn below:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjooqLefOnE__c7tvVAYg2aqdJq4n7zCZoFm4qrkXGZgea5naSCP0Qn1k8faWi1vg9WhqfcuqJNHQXi1zdfQEnwbxdOKz6HPlwTpfM_inVvLHrXmXkI2HIFh6mZxw58ag-7O9vvb-bed7M/s1600/Drawing+lines+on+periodic+3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjooqLefOnE__c7tvVAYg2aqdJq4n7zCZoFm4qrkXGZgea5naSCP0Qn1k8faWi1vg9WhqfcuqJNHQXi1zdfQEnwbxdOKz6HPlwTpfM_inVvLHrXmXkI2HIFh6mZxw58ag-7O9vvb-bed7M/s320/Drawing+lines+on+periodic+3.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
I&#39;ll leave you with a little puzzle. Although we only drew two lines above, we could have drawn two more lines corresponding to the two we just drew. Where are the other two lines? How many unique solutions are there?&lt;br /&gt;
&lt;br /&gt;
Now that we&#39;ve gained some intuition to this problem, we are ready to proceed with the proof (in the &lt;a href=&quot;http://hippomath.blogspot.com/2011/06/proof-equal-temperatures-for-opposing.html&quot;&gt;next post&lt;/a&gt;).&lt;br /&gt;
&lt;br /&gt;
Update: This post has gotten quite a bit of attention from &lt;a href=&quot;http://www.reddit.com/r/math/comments/i2j77/imagine_a_circle_anywhere_in_the_universe_i_can/&quot;&gt;reddit&lt;/a&gt;! Thanks to all who took the time to read and spread this post!</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/3597277303241581911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2011/06/equal-temperatures-at-two-opposite.html#comment-form' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/3597277303241581911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/3597277303241581911'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2011/06/equal-temperatures-at-two-opposite.html' title='Equal temperatures at two opposite points across the earth'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIxcxBGDTkpuDfy0QAyX0-blgS67CANNG3eutjvLPm09mwT5amnFcENFKhNTRs3C_OOwDyXpdS-QaX4aR_9HN4bLYaU2pE1djOiaUTIpOXNMdyuRay0cLC_JrGqndbtF9caJUJae3YLiI/s72-c/Temperature.png" height="72" width="72"/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-6165081452158270250</id><published>2011-06-16T18:01:00.000-07:00</published><updated>2011-06-19T09:59:40.959-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mathematics"/><category scheme="http://www.blogger.com/atom/ns#" term="Proofs"/><title type='text'>Proof - Reducing prime checking bounds to $\sqrt{n}$</title><content type='html'>&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This is a simple proof accompanying my &lt;a href=&quot;http://hippomath.blogspot.com/2011/06/prime-number-generation.html&quot;&gt;last post&lt;/a&gt; on generating primes.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Let $n$&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;be a non-prime (i.e. composite), then it must have factors $a$&amp;nbsp;and $b$&amp;nbsp;less than $n$.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;In other words:&amp;nbsp;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;$n=ab$,&amp;nbsp;&lt;/span&gt;with&amp;nbsp;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;$n&amp;gt;a&amp;gt;1$&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;and&lt;/span&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;$n&amp;gt;b&amp;gt;1$&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Suppose&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;$a&amp;gt;\sqrt{n}$&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;$b&amp;gt;\sqrt{n}$. This would mean $ab&amp;gt;n$&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;i&gt;.&lt;/i&gt;&lt;/span&gt;&amp;nbsp;This cannot be as we just stated that&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;$n=ab$.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Thus, the conclusion we draw is that either $a$ or $b$&amp;nbsp;is less than or equal to&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;$\sqrt{n}$&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Let us say that&amp;nbsp; it is&amp;nbsp;$a\leq \sqrt{n}$.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Since&amp;nbsp;$a&amp;gt;1$&amp;nbsp;, there must exist a prime $p$&amp;nbsp;that divides $a$. Furthermore, $p\leq a$&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;since it divides $a$&lt;/span&gt;&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;We saw earlier that $a$ divides $n$. Since $p$ &amp;nbsp;divides $a$, our prime $p$ must divide $n$&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;.&amp;nbsp;&lt;/em&gt;This gives us the result we are trying to prove: $p\leq a$ and&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;$a\leq \sqrt{n}$&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;. Therefore:&amp;nbsp;$p\leq a\leq\sqrt{n}$.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Conclusion: If&lt;span style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;$n$&lt;/span&gt;&amp;nbsp;is not prime, it must have a prime factor (or regular factor) below $\sqrt{n}$. Otherwise, $n$&amp;nbsp;must be prime.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;$\blacksquare$&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/6165081452158270250/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2011/06/proof-reducing-prime-checking-bounds-to.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/6165081452158270250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/6165081452158270250'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2011/06/proof-reducing-prime-checking-bounds-to.html' title='Proof - Reducing prime checking bounds to $\sqrt{n}$'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-4154228730283513396</id><published>2011-06-16T18:00:00.000-07:00</published><updated>2011-07-05T23:32:41.085-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer Science"/><category scheme="http://www.blogger.com/atom/ns#" term="Mathematics"/><category scheme="http://www.blogger.com/atom/ns#" term="Project Euler"/><title type='text'>Prime Number Generation</title><content type='html'>&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-size: 12px; line-height: 17px;&quot;&gt;If I asked you right now: what is the 10001st prime number?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;&amp;nbsp;It would be very hard to come up with an answer on the spot.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-size: 12px; line-height: 17px;&quot;&gt;(this is question #7 on&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-size: 12px; line-height: 17px;&quot;&gt;&lt;a href=&quot;http://projecteuler.net/index.php?section=problems&amp;amp;id=7&quot; style=&quot;color: #2970a6; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;Project Euler&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-size: 12px; line-height: 17px;&quot;&gt;).&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;However, if one did want to find the answer, one method to use would be simple “trial division”.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;The idea behind trial division is simple: since a prime must not have any factors other than itself and 1, just divide all the numbers from 2 to N-1 from the number (call it N) to be tested. If the division carries out and has no remainders, then the divided number must be a factor of the number we are checking and so the number we are checking is not prime.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Simple right? However, think of how many operations that would take to test a single number: one would need N-2 operations to loop from 2 to N-1, N-2 operations to carry out the division, N-2 operations to check if the division was carried out, all of which contribute to a massive computation time.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Luckily, there are methods to optimize our trial division prime checker. For instance, a commonly known fact about primes is that one only needs to check up to the integer before $\sqrt{n}$ instead of N-1 (a simple proof is offered in the &lt;a href=&quot;http://hippomath.blogspot.com/2011/06/proof-reducing-prime-checking-bounds-to.html&quot;&gt;next post&lt;/a&gt;). Furthermore, if we check right off the bat if the number is divisible by 2 or 3, the we will not need to check every second and third number from 4 to&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;$\sqrt{n}$&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;. This is really&amp;nbsp;&lt;a href=&quot;http://primes.utm.edu/glossary/page.php?sort=WheelFactorization&quot; style=&quot;color: #2970a6; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;wheel factorization&lt;/a&gt;&amp;nbsp;with two spokes. Such a type of trial division also leads one to the realization that all primes greater than 3 can be expressed in the form $6k +/- 1$, an interesting fact proven by the great mathmatician Leonhard Euler.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;We are now set to create our prime checking algorithm!&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The tricks we will employ are:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;1. Checking only up to&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;$\sqrt{n}$&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;2. Checking first if the number is divisible by 2 or 3&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;3. Starting from 5 and checking every number of the form $6k +/- 1$.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Excellent. Now we are ready to write our algorithm. I will be writing in pseudocode.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Pseudocode:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;function prime?[n]&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if n mod 2 or n mod 3 == 0&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false&amp;nbsp;&lt;/em&gt;// if the number is divisible by 2 or 3, it is not prime (only works for numbers above 3)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; limit = sqrt(n)&lt;/em&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp;&lt;/em&gt;// bounds our testing limit to under&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;$\sqrt{n}$&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (i = 5, i &amp;lt;= limit, i+= 6)&amp;nbsp;&lt;/em&gt;// creates a FOR loop that starts at 5, stops when exceeding the limit, and increments the counter variable (i) by 6 each iteration&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if n mod i or n mod (i+2) = 0&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;return false&amp;nbsp;&lt;/em&gt;// if the function is divisible by numbers of the form $6k+/-1$, the number is not prime.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end if&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end for&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;end if&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return true&amp;nbsp;&lt;/em&gt;// the number has passed all the tests we have given it; it is a prime&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;em style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;end function prime?[n]&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;And there it is! Just run this function with a counter until it reaches 10001 if you want to find the 10001st prime! Of course, there is a faster way to create a list of primes up to 10001st, namely using the sieve of Eratosthenes. This very effective and elegant algorithm may be covered in future blog entries. Keep readin’ til then.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;********&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;References:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;1.&amp;nbsp;&lt;a href=&quot;http://projecteuler.net/&quot; style=&quot;color: #2970a6; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;Project Euler&lt;/a&gt;&amp;nbsp;(the pseudocode for the algorithm was heavily borrowed from PE).&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #555555; font-size: 12px; line-height: 17px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;2.&amp;nbsp;&lt;a href=&quot;http://primes.utm.edu/&quot; style=&quot;color: #2970a6; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;&quot;&gt;The Prime Number Glossary&lt;/a&gt;&amp;nbsp;(for interesting and useful facts about primes).&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/4154228730283513396/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2011/06/prime-number-generation.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/4154228730283513396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/4154228730283513396'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2011/06/prime-number-generation.html' title='Prime Number Generation'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7423697418269914273.post-5688966267248547668</id><published>2011-06-15T22:42:00.000-07:00</published><updated>2011-06-19T10:00:14.848-07:00</updated><title type='text'>A bit of an introduction</title><content type='html'>Hello.&lt;br /&gt;
&lt;br /&gt;
My name is Paul Liu. It&#39;s nice to meet you. I was going to have a lovely conversation with you. However, since my current readership is zero, I&#39;ll edit more info into this page when people start giving a damn. For now, lets just get started. It&#39;s going to be a long long journey. I hope you&#39;ll find the time to share it with me.</content><link rel='replies' type='application/atom+xml' href='http://hippomath.blogspot.com/feeds/5688966267248547668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hippomath.blogspot.com/2011/06/bit-of-introduction.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/5688966267248547668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7423697418269914273/posts/default/5688966267248547668'/><link rel='alternate' type='text/html' href='http://hippomath.blogspot.com/2011/06/bit-of-introduction.html' title='A bit of an introduction'/><author><name>Paul Liu</name><uri>http://www.blogger.com/profile/16809371907394009052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdEg4zzND8XBvuq12LG5Jh-8mNuTujrEF9DqCWYO3Pfg3vWi3X-gAe8sR2VDEvRIL14iHGpQuCvo1QE8PIzcPdrk5E-ugPOZwogZGGuYR4Dx-_Q4lTbSCpX8DwgWa8xYs/s220/profile+pic+-+Copy.jpg'/></author><thr:total>10</thr:total></entry></feed>