<?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: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-5940603985791838144</id><updated>2012-02-17T08:30:44.368+08:00</updated><category term='computation'/><category term='dirichlet eta function'/><category term='complex'/><category term='logic'/><category term='generalised exponential function'/><category term='pi'/><category term='maths'/><category term='rsa'/><category term='series transform'/><category term='matrices'/><category term='ln'/><category term='trivial'/><category term='cellular automata'/><category term='proof'/><category term='smo'/><category term='random walk'/><category term='meta'/><category term='nlp'/><category term='arctangent'/><category term='factorial'/><category term='fourier transform'/><category term='sine map'/><category term='iterated functions'/><category term='graph theory'/><category term='number theory'/><category term='riemann zeta function'/><category term='riemann hypothesis'/><category term='harmonic'/><category term='continued fraction'/><category term='gamma constant'/><category term='integers'/><category term='statistics'/><category term='conjecture'/><category term='gaussian integers'/><category term='approximation'/><category term='interpolation'/><category term='isqrt'/><title type='text'>The inverse buzz</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>89</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-3888909354054932835</id><published>2010-09-20T17:38:00.000+08:00</published><updated>2010-09-20T17:38:49.938+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='number theory'/><title type='text'>Permutations on ℤ/nℤ</title><content type='html'>Prescript: Okay, I suck at keeping to schedules. But you should already know that.&lt;br /&gt;&lt;br /&gt;Here we'll be considering ℤ/&lt;var&gt;n&lt;/var&gt;ℤ, which is just the integers modulo &lt;var&gt;n&lt;/var&gt; in a sense. Let a permutation function be a bijective function ℤ/&lt;var&gt;n&lt;/var&gt;ℤ→ℤ/&lt;var&gt;n&lt;/var&gt;ℤ. Here's the question: for which values of &lt;var&gt;n&lt;/var&gt; can we find permutation functions &lt;var&gt;f&lt;/var&gt; and &lt;var&gt;g&lt;/var&gt; such that &lt;var&gt;f&lt;/var&gt;+&lt;var&gt;g&lt;/var&gt; is also a permutation function?&lt;br /&gt;&lt;br /&gt;This isn't actually as hard as it seems. I've seen the method to solve this problem before (to solve rather unrelated problems). But anyway, here goes a complete solution. Consider first &lt;var&gt;n&lt;/var&gt;=1. This isn't very interesting; trivially, there's only one permutation function, and that plus itself gives itself. Depending on whether &lt;var&gt;f&lt;/var&gt; and &lt;var&gt;g&lt;/var&gt; have to be distinct, the answer can be either yes or no.&lt;br /&gt;&lt;br /&gt;For odd &lt;var&gt;n&lt;/var&gt; ≥ 3 a proof by construction is easy. Let &lt;var&gt;f&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;)=&lt;var&gt;x&lt;/var&gt; (which is trivially a permutation) and &lt;var&gt;g&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;)=&lt;var&gt;x&lt;/var&gt;+1 (again also trivially a permutation). (&lt;var&gt;f&lt;/var&gt;+&lt;var&gt;g&lt;/var&gt;)(&lt;var&gt;x&lt;/var&gt;)=2&lt;var&gt;x&lt;/var&gt;+1 is then also a permutation since division by 2 is defined when &lt;var&gt;n&lt;/var&gt; is odd. (If &lt;var&gt;f&lt;/var&gt;=&lt;var&gt;g&lt;/var&gt; is allowed, then the proof can be made slightly simpler by letting &lt;var&gt;f&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;)=&lt;var&gt;g&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;)=&lt;var&gt;x&lt;/var&gt;.)&lt;br /&gt;&lt;br /&gt;For even &lt;var&gt;n&lt;/var&gt;, attempting to use a proof by construction with linear functions will fail. Give it some thought. This turns out to be because it isn't actually possible. Consider the sum of values of an arbitrary permutation function (linear or not); by nature of it being a permutation this is equal to (&lt;var&gt;n&lt;/var&gt;(&lt;var&gt;n&lt;/var&gt;+1)/2)=(&lt;var&gt;n&lt;/var&gt;/2). This is a necessary but not sufficient condition to be a permutation. With two permutation functions, their sum would have a sum of values of 2(&lt;var&gt;n&lt;/var&gt;/2)=0, implying that (&lt;var&gt;f&lt;/var&gt;+&lt;var&gt;g&lt;/var&gt;) is not a permutation function.&lt;br /&gt;&lt;br /&gt;That wasn't too hard, right? Now consider a generalisation of this into arbitrary rings; is it still so easy to solve? (In particular, I have a feeling that the method used for even &lt;var&gt;n&lt;/var&gt; won't work, but I'm lazy to work out the details.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-3888909354054932835?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/3888909354054932835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=3888909354054932835' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/3888909354054932835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/3888909354054932835'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/09/permutations-on-n.html' title='Permutations on ℤ/nℤ'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-4508771326861754506</id><published>2010-08-23T20:40:00.000+08:00</published><updated>2010-08-23T20:40:25.728+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>Meta: No posts for August, how sad</title><content type='html'>Exactly what it says on the tin.&lt;br /&gt;&lt;br /&gt;In related news, I got gold for SMO Open. Not a spectacular score (43/75), but yeah.&lt;br /&gt;&lt;br /&gt;Also: I might do a post early September to make up for the lack of posts this month, although again there are no guarantees. (Yes, this implies I have an idea on what to write about. I do have a draft post on linear recurrences now, but it's really crappy. It's been a half-written draft for 30 days already, and I'm not sure whether it's something I want to write about.) There's been plenty of other maths-unrelated things I've been doing recently.&lt;br /&gt;&lt;br /&gt;I'm just going to dump ideas here anyway; if you feel like doing research on these then by all means do so. First, the continued fractions of integer multiples of a constant (&lt;a href="http://zznq.blogspot.com/2009/10/transcendental-multiples.html"&gt;again&lt;/a&gt;, except just one transcendental number this time). Second, coquaternions (which are interestingly enough isomorphic to the 2×2 matrices). Third, overkill methods of solving simple problems.&lt;br /&gt;&lt;br /&gt;The problem with the third is that it's hard to find examples that really bring out the essence of overkill. What I want is where there are no unnecessary steps, but involves unnecessarily complicated techniques to solve where simple (and obvious) ones suffice.&lt;br /&gt;&lt;br /&gt;(This blog post open for discussion, although I strongly doubt anybody's still reading, with the ridiculously long hiatus and stuff.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-4508771326861754506?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/4508771326861754506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=4508771326861754506' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4508771326861754506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4508771326861754506'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/08/meta-no-posts-for-august-how-sad.html' title='Meta: No posts for August, how sad'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-5995223415491628866</id><published>2010-07-05T04:50:00.000+08:00</published><updated>2010-07-05T04:50:23.291+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='fourier transform'/><title type='text'>The sawtooth function, smoothing functions, Fourier series</title><content type='html'>In this post we'll (just me actually, but that's an unimportant subtlety) consider Gibbs phenomenon in a sawtooth function; specifically, &lt;var&gt;x&lt;/var&gt;→(((&lt;var&gt;x&lt;/var&gt;+π) mod 2π)−π)/2, equivalently, &lt;var&gt;x&lt;/var&gt;→&lt;var&gt;x&lt;/var&gt;/2 over (−π,π). The Fourier series for this is&lt;br /&gt;&lt;br /&gt;&lt;img alt="\sum_{n=1}^\infty(-1)^{n-1}\frac{\sin nx}n=\sin x-\frac{\sin2x}2\pm\cdots" src="http://lh5.ggpht.com/_pA5P9BzH5uM/TDDgXgUaiNI/AAAAAAAAALA/DW91S3OyhF4/7d9b0cf4d0a713cc0946f6d4907a63ac.png" /&gt;&lt;br /&gt;&lt;br /&gt;which is, thankfully, very simple. (There's actually selection bias here since I'm specifically choosing functions with simple Fourier series.) So, anyway, the partial sums of this series converges pointwise to the sawtooth function, except at the jump discontinuities. However, if you check the Wikipedia article &lt;a href="http://en.wikipedia.org/wiki/Sawtooth_wave"&gt;Sawtooth wave&lt;/a&gt;, or more specifically, if you carefully look at the animation (&lt;a href="http://commons.wikimedia.org/wiki/File:Synthesis_sawtooth.gif"&gt;File:Synthesis sawtooth.gif&lt;/a&gt;), notice that the overshoot just before the discontinuity doesn't tend to 0. This is explained by the &lt;a href="http://en.wikipedia.org/wiki/Gibbs_phenomenon"&gt;Gibbs phenomenon&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Well, now that I linked that Wikipedia article, there isn't much else for me to elaborate on, except by examples. So I got my graphing program of choice (still KmPlot) and did some graphs.&lt;br /&gt;&lt;br /&gt;&lt;img alt="[graph]" src="http://lh3.ggpht.com/_pA5P9BzH5uM/TDDcqEgCF9I/AAAAAAAAAK8/yX4kZ77ddmo/sawtooth.png" style="width: 600px;" /&gt;&lt;br /&gt;&lt;br /&gt;Dark blue is the sawtooth itself, brown/dark red is 5 terms of the series, green is 10 terms. Pink and purple are smoothed versions (with 5 terms each), which do not experience any overshooting, asymptotically.&lt;br /&gt;&lt;br /&gt;The first smoothed one (pink) was obtained by calculating the mean of the first five partial sums; this is equivalent to using the &lt;a href="http://en.wikipedia.org/wiki/Fej%C3%A9r_kernel"&gt;Fejér kernel&lt;/a&gt; instead of the Dirichlet kernel (direct summation). The most obvious drawback is that near discontinuities the convergence properties are worse, but the most apparent advantage is that convergence sufficiently distant from discontinuities is faster. (This is immediately visible for conditionally convergent Fourier series, but it's true provided that the function is not infinitely differentiable, and that the Fourier series also converges almost everywhere.) When considering least squares though, the disadvantage outweighs the advantage. Another equivalent (and more conveniently generalisable) way of stating this is that, with &lt;var&gt;n&lt;/var&gt; terms, the first term has weight 1, second term 1−1/&lt;var&gt;n&lt;/var&gt;, third 1−2/&lt;var&gt;n&lt;/var&gt;, and so on until the &lt;var&gt;n&lt;/var&gt;th term 1/&lt;var&gt;n&lt;/var&gt;.&lt;br /&gt;&lt;br /&gt;This gives two possible generalisations. One is to take the means iteratively. This one doesn't have a nice closed form, so I didn't bother. Another is to use (1−&lt;var&gt;k&lt;/var&gt;/&lt;var&gt;n&lt;/var&gt;)&lt;sup&gt;&lt;var&gt;a&lt;/var&gt;&lt;/sup&gt;, which is the purple graph, with &lt;var&gt;a&lt;/var&gt;=2. This was, like the previous one, with 5 terms.&lt;br /&gt;&lt;br /&gt;Note that the Euler transform (and more generally the binomial transform), which I covered a few times before can be represented as a smoothing function; specifically, for the Euler transform the multipliers are the partial sums of binomial coefficients in reverse order. Among other things, for this particular sawtooth function, using 5 terms of the Euler transform increased convergence rates near zeroes a lot, compared to the other two smoothing functions. This can actually be explained by the Euler transform minimising the difference in derivatives. (This isn't included in the graph because I only thought of this after uploading the plot, and I can't be bothered to upload it again.)&lt;br /&gt;&lt;br /&gt;The first smoothing function is "general-purpose", with nothing exceptional. The second oscillates less than the first (in an objective sense; the purple graph only has inflection points at the zeroes and the discontinuities), but also converges somewhat slower. (It's actually asymptotically the same for fixed &lt;var&gt;a&lt;/var&gt; and &lt;var&gt;n&lt;/var&gt;→∞; it just needs a few more terms to "catch up" for larger &lt;var&gt;a&lt;/var&gt;.) The third converges as well as the first near the discontinuities and much faster far away from discontinuities, but in areas that aren't too near or too far the convergence is worse than the other two, and also seems to still exhibit Gibbs phenomenon, although I haven't verified this yet.&lt;br /&gt;&lt;br /&gt;PS: notice the scale on the graph. Distances on the x-axis are about twice those on the y-axis. "about", because I didn't measure the exact ratio of the plot dimensions, but it should be accurate to within a percent.&lt;br /&gt;&lt;br /&gt;PPS: This post is actually quite horribly written. Must be the sleep deprivation.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-5995223415491628866?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/5995223415491628866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=5995223415491628866' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5995223415491628866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5995223415491628866'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/07/sawtooth-function-smoothing-functions.html' title='The sawtooth function, smoothing functions, Fourier series'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_pA5P9BzH5uM/TDDgXgUaiNI/AAAAAAAAALA/DW91S3OyhF4/s72-c/7d9b0cf4d0a713cc0946f6d4907a63ac.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-7560565110067449692</id><published>2010-06-30T19:52:00.000+08:00</published><updated>2010-06-30T19:52:26.634+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>Happy last day of June</title><content type='html'>I haven't been as productive as I intended to be. So far this year I managed a total of 12 posts not labelled "meta"; 3 for April, 1 for March, and 2 for the rest. Possibly 3 for June, but that's pretty unlikely. I've tried to keep the content here restricted to pure maths, but when I really have nothing better to put I just use filler in the form of computation-related issues. I've done that a few times so far.&lt;br /&gt;&lt;br /&gt;Anyway, I'm currently reading the &lt;a href="http://ocw.mit.edu/courses/mathematics/"&gt;MIT OCW maths&lt;/a&gt; stuff. It's okay, but a bit over my level. I think I'll just keep reading.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-7560565110067449692?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/7560565110067449692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=7560565110067449692' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7560565110067449692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7560565110067449692'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/06/happy-last-day-of-june.html' title='Happy last day of June'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-5128282514631310794</id><published>2010-06-26T15:11:00.002+08:00</published><updated>2010-06-26T15:18:36.449+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='smo'/><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>SMO Open (round 2, 2010 version)</title><content type='html'>Because it's so gratifying to be first, even when I didn't manage to do all the questions. (It was more egregious last year.) Below are the questions.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Let &lt;var&gt;C&lt;/var&gt;&lt;var&gt;D&lt;/var&gt; be a chord of a circle Γ&lt;sub&gt;1&lt;/sub&gt; and &lt;var&gt;A&lt;/var&gt;&lt;var&gt;B&lt;/var&gt; a diameter of Γ&lt;sub&gt;1&lt;/sub&gt; perpendicular to &lt;var&gt;C&lt;/var&gt;&lt;var&gt;D&lt;/var&gt; at &lt;var&gt;N&lt;/var&gt; with &lt;var&gt;A&lt;/var&gt;&lt;var&gt;N&lt;/var&gt; &amp;gt; &lt;var&gt;N&lt;/var&gt;&lt;var&gt;B&lt;/var&gt;. A circle Γ&lt;sub&gt;2&lt;/sub&gt; centred at &lt;var&gt;C&lt;/var&gt; with radius &lt;var&gt;C&lt;/var&gt;&lt;var&gt;N&lt;/var&gt; intersects Γ&lt;sub&gt;1&lt;/sub&gt; at points &lt;var&gt;P&lt;/var&gt; and &lt;var&gt;Q&lt;/var&gt;. The line &lt;var&gt;P&lt;/var&gt;&lt;var&gt;Q&lt;/var&gt; intersects &lt;var&gt;C&lt;/var&gt;&lt;var&gt;D&lt;/var&gt; at &lt;var&gt;M&lt;/var&gt; and &lt;var&gt;A&lt;/var&gt;&lt;var&gt;C&lt;/var&gt; at &lt;var&gt;K&lt;/var&gt;; and the extension of &lt;var&gt;N&lt;/var&gt;&lt;var&gt;K&lt;/var&gt; meets Γ&lt;sub&gt;2&lt;/sub&gt; at &lt;var&gt;L&lt;/var&gt;. Prove that &lt;var&gt;P&lt;/var&gt;&lt;var&gt;Q&lt;/var&gt; is perpendicular to &lt;var&gt;A&lt;/var&gt;&lt;var&gt;L&lt;/var&gt;.&lt;/li&gt;&lt;li&gt;Let &lt;var&gt;a&lt;/var&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt;, &lt;var&gt;b&lt;/var&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt;, &lt;var&gt;n&lt;/var&gt; = 1, 2, … be two sequences of integers defined by &lt;var&gt;a&lt;/var&gt;&lt;sub&gt;1&lt;/sub&gt; = 1, &lt;var&gt;b&lt;/var&gt;&lt;sub&gt;1&lt;/sub&gt; = 0 and for &lt;var&gt;n&lt;/var&gt; ≥ 1,&lt;div style="text-align: center;"&gt;&lt;var&gt;a&lt;/var&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;+1&lt;/sub&gt; = 7&lt;var&gt;a&lt;/var&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt; + 12&lt;var&gt;b&lt;/var&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt; + 6&lt;br /&gt;&lt;var&gt;b&lt;/var&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;+1&lt;/sub&gt; = 4&lt;var&gt;a&lt;/var&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt; + 7&lt;var&gt;b&lt;/var&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt; + 3.&lt;/div&gt;Prove that &lt;var&gt;a&lt;/var&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt;&lt;sup&gt;2&lt;/sup&gt; is the difference of two consecutive cubes.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Suppose that &lt;var&gt;a&lt;/var&gt;&lt;sub&gt;1&lt;/sub&gt;,…,&lt;var&gt;a&lt;/var&gt;&lt;sub&gt;15&lt;/sub&gt; are prime numbers forming an arithmetic progression with common difference &lt;var&gt;d&lt;/var&gt; &amp;gt; 0. If &lt;var&gt;a&lt;/var&gt;&lt;sub&gt;15&lt;/sub&gt;, prove that &lt;var&gt;d&lt;/var&gt; &amp;gt; 30000.&lt;/li&gt;&lt;li&gt;Let &lt;var&gt;n&lt;/var&gt; be a positive integer. Find the smallest positive integer &lt;var&gt;k&lt;/var&gt;  with the property that for any colouring f the squares of a 2&lt;var&gt;n&lt;/var&gt; × &lt;var&gt;k&lt;/var&gt; chessboard with &lt;var&gt;n&lt;/var&gt; colours, there are 2 columns and 2 rows such that the 4 squares in their intersections have the same colour.&lt;/li&gt;&lt;li&gt;Let &lt;var&gt;p&lt;/var&gt; be a prime number and let &lt;var&gt;x&lt;/var&gt;, &lt;var&gt;y&lt;/var&gt;, &lt;var&gt;z&lt;/var&gt; be positive integers so that 0 &amp;lt; &lt;var&gt;x&lt;/var&gt; &amp;lt; &lt;var&gt;y&lt;/var&gt; &amp;lt; &lt;var&gt;z&lt;/var&gt; &amp;lt; &lt;var&gt;p&lt;/var&gt;. Suppose that &lt;var&gt;x&lt;/var&gt;³, &lt;var&gt;y&lt;/var&gt;³ and &lt;var&gt;z&lt;/var&gt;³ have the same remainder when divided by &lt;var&gt;p&lt;/var&gt;, show that &lt;var&gt;x&lt;/var&gt;² + &lt;var&gt;y&lt;/var&gt;² + &lt;var&gt;z&lt;/var&gt;² is divisible by &lt;var&gt;x&lt;/var&gt; + &lt;var&gt;y&lt;/var&gt; + &lt;var&gt;z&lt;/var&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Like before, 5 questions. This is only the second time I'm participating in the Open section, so conclusions may be rusty, but it seems that the first question is always about geometry, and the last about number theory, involving three variables.&lt;br /&gt;&lt;br /&gt;Anyway, I only managed to solve 2, 3 and 5. 2 was incredibly easy, involving just induction (although it took me some time to see the relation); 3 was a number theory textbook example. My method of solving 5 was to first establish some basic facts about cube roots modulo a prime, such as the numbers, except for 0, having 3 cube roots each. I used primitive roots, which are hopefully fine. (I didn't bother proving the existence of primitive roots modulo primes, which might be a problem.) With that, &lt;var&gt;x&lt;/var&gt;+&lt;var&gt;y&lt;/var&gt;+&lt;var&gt;z&lt;/var&gt; is necessarily either &lt;var&gt;p&lt;/var&gt; or 2&lt;var&gt;p&lt;/var&gt;; by then showing that the remainder on division has both 2 and &lt;var&gt;p&lt;/var&gt; as factors (I did these steps separately) the remainder must be 0.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-5128282514631310794?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/5128282514631310794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=5128282514631310794' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5128282514631310794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5128282514631310794'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/06/smo-open-round-2-2010-version.html' title='SMO Open (round 2, 2010 version)'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-5170799324680178424</id><published>2010-06-07T18:11:00.001+08:00</published><updated>2010-06-09T19:42:40.565+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='iterated functions'/><title type='text'>Iterated functions that converge slowly</title><content type='html'>This is somewhat related to the sine map I was talking about &lt;a href="http://zznq.blogspot.com/2010/02/complex-sine-map.html"&gt;a few months ago&lt;/a&gt;. Here I'm only concerned with nonnegative real numbers, and where the fixed point is at 0. (There may be other fixed points, but I'm not concerned with those, especially since they're not real and positive.) The specific function I'm talking about is of the form &lt;var&gt;f&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;)=&lt;var&gt;x&lt;/var&gt;−&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;1+β&lt;/sup&gt;, where β is a positive number.&lt;br /&gt;&lt;br /&gt;Notice that we can actually let &lt;var&gt;f&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;) be like &lt;var&gt;x&lt;/var&gt;−&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;1+β&lt;/sup&gt;+O(&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;1+γ&lt;/sup&gt;) where γ&amp;gt;β for &lt;var&gt;x&lt;/var&gt;~0, without changing much, since the basic iterative behaviour only depends on the secondary term. (Of course, explaining the whole iterative behaviour will use all terms, but that's not what I'm concerned with here.) Starting from a positive number, by iteratively applying &lt;var&gt;f&lt;/var&gt;, it will converge to 0.&lt;br /&gt;&lt;br /&gt;But first, a notational convenience is helpful. &lt;var&gt;f&lt;/var&gt;&lt;sup&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sup&gt;(&lt;var&gt;x&lt;/var&gt;) refers to applying &lt;var&gt;f&lt;/var&gt; &lt;var&gt;n&lt;/var&gt; times on &lt;var&gt;x&lt;/var&gt;, not the &lt;var&gt;n&lt;/var&gt;th power of &lt;var&gt;f&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;).&lt;br /&gt;&lt;br /&gt;We have a basic (and rather obvious result); &lt;var&gt;x&lt;/var&gt;−&lt;var&gt;f&lt;/var&gt;&lt;sup&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sup&gt;(&lt;var&gt;x&lt;/var&gt;)~&lt;var&gt;n&lt;/var&gt;&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;1+β&lt;/sup&gt;, when &lt;var&gt;n&lt;/var&gt; is a constant. By ignoring the "constant" requirement of &lt;var&gt;n&lt;/var&gt; and trying to solve this asymptotic expression to be equal to &lt;var&gt;x&lt;/var&gt; in terms of &lt;var&gt;n&lt;/var&gt; (equivalent to the equation &lt;var&gt;f&lt;/var&gt;&lt;sup&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sup&gt;(&lt;var&gt;x&lt;/var&gt;)~0), we get &lt;var&gt;n&lt;/var&gt;≈&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;−β&lt;/sup&gt;.&lt;br /&gt;&lt;br /&gt;Note that it's impossible for repeated application of &lt;var&gt;f&lt;/var&gt; to reach 0, although it does reach arbitrarily close. At this point I couldn't quite figure out what was going on, so I resorted to computation, which seems to show that &lt;var&gt;f&lt;/var&gt;&lt;sup&gt;&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;−β&lt;/sup&gt;&lt;/sup&gt;(&lt;var&gt;x&lt;/var&gt;)/&lt;var&gt;x&lt;/var&gt; is a constant, which seems good enough. It seems fair to generalise this a bit more to get that &lt;var&gt;f&lt;/var&gt;&lt;sup&gt;α&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;−β&lt;/sup&gt;&lt;/sup&gt;(&lt;var&gt;x&lt;/var&gt;)/&lt;var&gt;x&lt;/var&gt; is also a constant, where α is a constant.&lt;br /&gt;&lt;br /&gt;And it turns out that there's actually a simple form for the constant in terms of α and β, which I've not been able to prove. (I got it by subbing in values for α, β and &lt;var&gt;x&lt;/var&gt;, extrapolating, and checking with other values of α and β.) Because it's the main result of this post, it'll be rendered in LaTeX just to show how important it is. Yeah. (That's actually a lie. The main reason is that it's not easy to have text below text in HTML, as needed for the limit, although I could just have used subscript, but that looks less nice.)&lt;br /&gt;&lt;br /&gt;&lt;img alt="\lim_{x\to0^+}f^{\alpha x^{-\beta}}(x)/x=(1+\alpha\beta)^{-1/\beta}" src="http://lh3.ggpht.com/_pA5P9BzH5uM/TAzEASGlDiI/AAAAAAAAAKs/N7WFauwQWbI/0956bc3e8720fcd067361eb6e4790bf0.png" /&gt;&lt;br /&gt;&lt;br /&gt;By letting β be 2 and α be suitably scaled, this result applies for sine as well, which is nice. Note also that this still applies even when α is negative (i.e., taking the inverse function instead), provided that α&amp;gt;−1/β. So this also gives results for arcsine and hyperbolic sine, which are equal up to the secondary term. Not that this solves any of the problems in the earlier blog post about the sine map, although it's interesting regardless.&lt;br /&gt;&lt;br /&gt;Postscript/update: I didn't think this would be important, but if α&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;−β&lt;/sup&gt; is not an integer then just take the nearest integer, or generalise function iteration to nonintegers. Either works, since in the limit this value tends to infinity, unless α is 0, where the result is trivial. Also, one mistyped word fixed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-5170799324680178424?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/5170799324680178424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=5170799324680178424' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5170799324680178424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5170799324680178424'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/06/iterated-functions-that-converge-slowly.html' title='Iterated functions that converge slowly'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_pA5P9BzH5uM/TAzEASGlDiI/AAAAAAAAAKs/N7WFauwQWbI/s72-c/0956bc3e8720fcd067361eb6e4790bf0.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-4450572678093557342</id><published>2010-05-18T19:52:00.001+08:00</published><updated>2010-06-30T20:01:03.017+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='graph theory'/><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='nlp'/><title type='text'>The no-loop problem (hypercube graphs)</title><content type='html'>I did some reading on graph theory. So now, I can actually state the problem in a more terminologically appropriate manner. The &lt;a href="http://zznq.blogspot.com/2009/04/loop-removal.html"&gt;no-loop problem&lt;/a&gt; is about finding the number of vertices in the largest (in the sense of having the most vertices) induced subgraphs with no cycles of given graphs. Not that the previous description wasn't accurate, just that it was a bit wordy.&lt;br /&gt;&lt;br /&gt;Anyway, back to topic. The hypercube graphs, also denoted &lt;i&gt;Q&lt;/i&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt;, is an interesting case, because there are some trivial results that can be derived very easily, and also because it's particularly convenient to program. (Using the z-order allows induced subgraphs of &lt;i&gt;Q&lt;/i&gt;&lt;sub&gt;1&lt;/sub&gt; to &lt;i&gt;Q&lt;/i&gt;&lt;sub&gt;5&lt;/sub&gt; to be conveniently packed into a 32-bit integer type.) One particular result is that the number of vertices that need to be removed for &lt;i&gt;Q&lt;/i&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt; must be at least double that for &lt;i&gt;Q&lt;/i&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;−1&lt;/sub&gt; for &lt;var&gt;n&lt;/var&gt;&amp;gt;0. This is obvious from the inductive definition of the hypercube graphs.&lt;br /&gt;&lt;br /&gt;Another obvious result is that removing vertices of a certain parity leaves half the number of vertices, and no edges at all, implying that the no-loop number for &lt;i&gt;Q&lt;/i&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt; is at most 2&lt;sup&gt;&lt;var&gt;n&lt;/var&gt;−1&lt;/sup&gt;. Now put these two obvious results together to get the not-so-obvious result that the ratio of removed vertices to the total number of vertices tends to some constant. I suspect this ratio is 1/2, but I don't have sufficient numerical data to back me up for that. Showing that it never reaches 1/2 is of course, again, trivial.&lt;br /&gt;&lt;br /&gt;And on numerical data. In the last post about the NLP on this blog, I mentioned that the no-loop number for &lt;i&gt;Q&lt;/i&gt;&lt;sub&gt;5&lt;/sub&gt; was between 12 and 14 (inclusive). Now, with the aid of a program, I managed to brute-force out all 12-removed and 13-removed induced subgraphs of &lt;i&gt;Q&lt;/i&gt;&lt;sub&gt;5&lt;/sub&gt;, showing that all of these have some cycle. Oh, and by the way, while the no-loop number for the 4-cube graph is 6, there are only 8 ways to remove 6 vertices from &lt;i&gt;Q&lt;/i&gt;&lt;sub&gt;4&lt;/sub&gt; removing all cycles, and these 8 ways are all rotations of each other in 4-space. That was a bit unexpected.&lt;br /&gt;&lt;br /&gt;There are other things we can conjecture. For the 2-cube, 3-cube, 4-cube, 5-cube graphs, restricting the removal of vertices to those of the same parity does not increase the no-loop number. Assuming this, checking that the no-loop number for the 5-cube graph is 14 is almost trivial.&lt;br /&gt;&lt;br /&gt;Something to note about the hypercube graphs is, by dividing the graph into two smaller hypercube graphs, if the two smaller graphs have exactly the same pattern of vertices removed (and are in the same orientation), and if these partitions have at least one edge, there must be a cycle. This isn't really useful except for counting the number of ways to remove vertices such that there are no cycles.&lt;br /&gt;&lt;br /&gt;And counts. There are 32 ways to remove 3 vertices from a 3-cube graph (2 ignoring symmetry), 64 to remove 4 from a 3-cube graph, 8 to remove 6 from a 4-cube graph, 1008 to remove 7 from a 4-cube graph, 4090 to remove 8 from a 4-cube graph, and 1952 to remove 14 from a 5-cube graph.&lt;br /&gt;&lt;br /&gt;I'm going to extend my program to handle the 6-cube, 7-cube and 8-cube graphs soon. Expect those results soon.&lt;br /&gt;&lt;br /&gt;PS: I searched OEIS for 0,1,3,6,14, and none of those results correspond to this sequence. Dropping the 0 gave a lot of candidates though.&lt;br /&gt;&lt;br /&gt;Update: the values for the 4-cube, 7/8-removed and for the 5-cube are suspect. I recently ran a brute force check, which somehow gave the number of ways to remove 14 from &lt;i&gt;Q&lt;/i&gt;&lt;sub&gt;5&lt;/sub&gt; as 2160 instead of 1952. It's in fact probably an error in my code; when I first tried to do the brute force test the program crashed. I could switch from C to another programming language with better memory checking, but the downside will be greatly reduced speed. Among other issues I spotted were that symmetries of the hypercube "destroyed", according to my program, the no-loop property, which is obviously absurd.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-4450572678093557342?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/4450572678093557342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=4450572678093557342' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4450572678093557342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4450572678093557342'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/05/no-loop-problem-hypercube-graphs.html' title='The no-loop problem (hypercube graphs)'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-7923070582633629917</id><published>2010-05-16T18:27:00.000+08:00</published><updated>2010-05-16T18:27:16.436+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='continued fraction'/><category scheme='http://www.blogger.com/atom/ns#' term='complex'/><title type='text'>The imaginary continued fraction (redux)</title><content type='html'>First I'll direct you to a post I wrote plenty of months ago, &lt;a href="http://zznq.blogspot.com/2009/03/imaginary-continued-fraction-again.html"&gt;The imaginary continued fraction again&lt;/a&gt;. Oh wow, that was unexpected. You probably already know what this is about.&lt;br /&gt;&lt;br /&gt;Anyway, note that we can rewrite the recurrence relation as a Möbius transformation, from whence we can rewrite as a matrix. More specifically, the recurrence relation is &lt;var&gt;x&lt;/var&gt;→(2&lt;var&gt;x&lt;/var&gt;−1)/(&lt;var&gt;x&lt;/var&gt;+2), with the corresponding matrix [2,-1;1,2]. But then from here we realise that this is actually the matrix representation of the complex number 2−&lt;i&gt;i&lt;/i&gt;. Oh my, that was mindboggling. We got from a continued fraction to a recurrence to a matrix to a complex number. We can actually go one step further; taking the argument of that gives −arctan(1/2).&lt;br /&gt;&lt;br /&gt;Anyway, since composing the Möbius transformations is isomorphic to multiplying the matrices (ignoring constant scalar multipliers) which is isomorphic to multiplying the complex numbers (again ignoring constant real multipliers) which is isomorphic to adding the angles modulo 2π, essentially what we've done is to reduce it into a problem of whether there is some positive integer power of 2−&lt;i&gt;i&lt;/i&gt; that is purely real. Of course, given that arctan(1/2) is not a rational multiple of π, this is obviously impossible.&lt;br /&gt;&lt;br /&gt;PS: This post was originally going to be longer, with more interesting details, but I got lazy. Actually more like I rage quit because the hostel proxy cut me off arbitrarily before Firefox crashed while I was writing the original version of this post, causing Blogger's autosave to fail and my text to be gone. I'm not going to blame Firefox; if you follow my main blog you should know that I use nightly builds, which are inherently prone to crashing.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-7923070582633629917?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/7923070582633629917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=7923070582633629917' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7923070582633629917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7923070582633629917'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/05/imaginary-continued-fraction-redux.html' title='The imaginary continued fraction (redux)'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-4983466988087674006</id><published>2010-04-21T16:51:00.000+08:00</published><updated>2010-04-21T16:51:19.314+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Sample range over the uniform distribution</title><content type='html'>Let's say we have a uniform distribution (which for simplicity purposes we'll take to be the standard uniform distribution U(0,1)), and we take &lt;var&gt;n&lt;/var&gt; samples from this distribution. How is the sample range (the maximum value minus the minimum) distributed?&lt;br /&gt;&lt;br /&gt;I couldn't find an obvious answer for this, so I did a simulation (with a high-quality pseudorandom number generator) for some &lt;var&gt;n&lt;/var&gt;, applied some of my intuition, and compared the results. The numbers were close, so I'm probably right. It's actually a &lt;a href="http://en.wikipedia.org/wiki/Beta_distribution"&gt;beta distribution&lt;/a&gt;, dependent on &lt;var&gt;n&lt;/var&gt; (obviously). Exactly why it is the beta distribution isn't clear from the description of the beta distribution in either Wikipedia or MathWorld. (In other words, it's probably just due to coincidence.)&lt;br /&gt;&lt;br /&gt;More precisely, it's a special case of the beta distribution. For &lt;var&gt;n&lt;/var&gt; samples, the distribution of the sample range is B(&lt;var&gt;n&lt;/var&gt;−1,2). Equivalently, the pdf is λ&lt;var&gt;x&lt;/var&gt;.&lt;var&gt;n&lt;/var&gt;(&lt;var&gt;n&lt;/var&gt;−1)(1−&lt;var&gt;x&lt;/var&gt;)&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;&lt;var&gt;n&lt;/var&gt;−2&lt;/sup&gt; over [0,1]. The cdf is easily obtained from integrating that.&lt;br /&gt;&lt;br /&gt;Written in that form, it's pretty clear how my reasoning went. The first two points can be anywhere, and the pdf for the special case &lt;var&gt;n&lt;/var&gt;=2 is obviously 1−&lt;var&gt;x&lt;/var&gt;. The remaining &lt;var&gt;n&lt;/var&gt;−2 points must go inside the range, which happens with probability &lt;var&gt;x&lt;/var&gt;&lt;sup&gt;&lt;var&gt;n&lt;/var&gt;−2&lt;/sup&gt;. Taking these two events as independent, we can multiply them together to get the distribution.&lt;br /&gt;&lt;br /&gt;Interesting is that when &lt;var&gt;n&lt;/var&gt;=3, the distribution is symmetric about ½. There's no obvious intuitive explanation for this. At least none that I can think of.&lt;br /&gt;&lt;br /&gt;Quite surprisingly I didn't manage to find any info about this on Wikipedia. That said, I just checked MathWorld, and found the answer. Which just serves to confirm that my intuition was correct. And also to show that checking sites other than Wikipedia is occasionally beneficial.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-4983466988087674006?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/4983466988087674006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=4983466988087674006' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4983466988087674006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4983466988087674006'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/04/sample-range-over-uniform-distribution.html' title='Sample range over the uniform distribution'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-742662848925202914</id><published>2010-04-21T16:18:00.000+08:00</published><updated>2010-04-21T16:18:18.767+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>Oh my, it's April</title><content type='html'>Surprisingly many posts this month. That is all. Actually, no. For the past few months I've been more-or-less struggling to get a proper post up every month. I find it's quite annoying if I write a post but only let it publish when it's a new month, because in cases where I get sudden surges of inspiration readers will have to wait, and by that time I might have forgotten about certain aspects or details, meaning that I won't be able to appropriately respond to comments.&lt;br /&gt;&lt;br /&gt;And comments… all the recent ones were spam. Oh wow, what a surprise. In all honesty, I didn't expect the comment policy to affect anything. Actually I was lying. I was hoping it would change things a bit. Nothing changed.&lt;br /&gt;&lt;br /&gt;Anyway, back to topic. One side effect of posting as and when I get ideas is that there might occasionally be months without any posts. You have been informed. I'll try to keep up, but I can't promise anything. I might write more about having a post queue on my main blog if I feel like. Or maybe not. I feel like sleeping right now.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-742662848925202914?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/742662848925202914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=742662848925202914' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/742662848925202914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/742662848925202914'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/04/oh-my-its-april.html' title='Oh my, it&apos;s April'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-631839341902443974</id><published>2010-04-16T14:33:00.001+08:00</published><updated>2010-04-21T16:00:14.936+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='gamma constant'/><title type='text'>An integral for γ</title><content type='html'>&lt;img src='http://lh3.ggpht.com/_pA5P9BzH5uM/S8gDdKVWulI/AAAAAAAAAKc/HIyKjj7OEW4/98d6be3964803449161cbeca48b02804.png' alt='\gamma=\int_0^1\left(\frac1{\ln x}-\frac1{x-1}\right)dx'/&gt;&lt;br /&gt;&lt;br /&gt;This was quite unexpected. This came up when I was fiddling around with the log integral. I can't figure out why this is the case; if I'm not wrong this provides a/an (inefficient) formula to compute γ if we use the Laurent series expansions of the terms about &lt;var&gt;x&lt;/var&gt;=1 and integrate term by term. The reciprocal terms will cancel out, so this makes stuff particularly convenient. That said though, I'm not exactly sure that the expansion for 1/ln(&lt;var&gt;x&lt;/var&gt;) is suited for computation.&lt;br /&gt;&lt;br /&gt;Update: seems like I missed it by a bit. It's actually quite obvious; taking the series expansion of li(&lt;var&gt;x&lt;/var&gt;) and subtracting ln(&lt;var&gt;x&lt;/var&gt;−1) (then combining the log terms and expanding) leaves the series as γ+O(&lt;var&gt;x&lt;/var&gt;−1), as &lt;var&gt;x&lt;/var&gt;→1.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-631839341902443974?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/631839341902443974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=631839341902443974' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/631839341902443974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/631839341902443974'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/04/integral-for.html' title='An integral for γ'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_pA5P9BzH5uM/S8gDdKVWulI/AAAAAAAAAKc/HIyKjj7OEW4/s72-c/98d6be3964803449161cbeca48b02804.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-5879213444034197943</id><published>2010-04-15T01:29:00.000+08:00</published><updated>2010-04-15T01:29:19.740+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Iterated cubic (exam question)</title><content type='html'>This is from a 2008 maths exam paper. The question:&lt;br /&gt;&lt;blockquote&gt;The graph of &lt;var&gt;y&lt;/var&gt;=&lt;var&gt;h&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;) intersects the graph of &lt;var&gt;y&lt;/var&gt;=&lt;var&gt;h&lt;/var&gt;&lt;sup&gt;-1&lt;/sup&gt;(&lt;var&gt;x&lt;/var&gt;) at &lt;var&gt;x&lt;/var&gt;=2 and &lt;var&gt;x&lt;/var&gt;=3. Given that &lt;var&gt;h&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;)=&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;3&lt;/sup&gt;+&lt;var&gt;ax&lt;/var&gt;+&lt;var&gt;b&lt;/var&gt;, find the values of &lt;var&gt;a&lt;/var&gt; and &lt;var&gt;b&lt;/var&gt;.&lt;/blockquote&gt;&lt;br /&gt;I was still stuck on that question until a few hours ago.  Don't question. The first step is quite obvious; basically what we're looking for is a fixed point of &lt;var&gt;h&lt;/var&gt;∘&lt;var&gt;h&lt;/var&gt;. Then from there we can determine the trivial solution corresponding to 2 and 3 being fixed points of &lt;var&gt;h&lt;/var&gt;, which gives &lt;var&gt;a&lt;/var&gt;=−18 and &lt;var&gt;b&lt;/var&gt;=30. This was the solution that the question setter wanted. However, it's not too hard to see that if we let (2,3) be a period 2 cycle (i.e. &lt;var&gt;h&lt;/var&gt;(2)=3 and &lt;var&gt;h&lt;/var&gt;(3)=2), this also gives a solution &lt;var&gt;a&lt;/var&gt;=−20 and &lt;var&gt;b&lt;/var&gt;=35. From there it's not obvious that these two are the only solutions; in fact, there are three other solutions.&lt;br /&gt;&lt;br /&gt;My first attempt during the exam was to expand out everything. Needless to say, this wasn't a good idea. My second attempt was the trivial solution, and I thought some more and got the second solution. And actually it's a trick question; the function &lt;var&gt;h&lt;/var&gt; has two relative extrema for these two solutions and are not invertible over [2,3]. Bet you didn't see that coming. Oh, and by the way calculators weren't allowed for that part of the exam, so graphing it would have been impractical.&lt;br /&gt;&lt;br /&gt;Some time back I tried to resolve the equation into two equations of second degree in &lt;var&gt;a&lt;/var&gt; and &lt;var&gt;b&lt;/var&gt;, but I probably made a mistake somewhere, since there are 5 solutions and conics intersect at at most 4 real points, and that the not-so-trivial solution wasn't among the solutions of the conic intersections. (At the time of trying that method, I only realised the latter. Checking never hurts.)&lt;br /&gt;&lt;br /&gt;Now, 2010. I try again. First we'll need a lemma. (Actually not really, while it helps to demonstrate why one particular step works it's not actually necessary to proceed with getting the answers.) For any polynomial function &lt;var&gt;P&lt;/var&gt;, &lt;var&gt;P&lt;/var&gt;(&lt;var&gt;P&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;))−&lt;var&gt;x&lt;/var&gt; is divisible by &lt;var&gt;P&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;)−&lt;var&gt;x&lt;/var&gt;, in the sense that (&lt;var&gt;P&lt;/var&gt;(&lt;var&gt;P&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;))−&lt;var&gt;x&lt;/var&gt;)/(&lt;var&gt;P&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;)−&lt;var&gt;x&lt;/var&gt;) is also a polynomial. This is quite simple to prove, and becomes obvious with a few moments of thought. You can probably see where this is going. Notice that if you expand &lt;var&gt;h&lt;/var&gt;(&lt;var&gt;h&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;)) you get a third degree equation in &lt;var&gt;a&lt;/var&gt; and &lt;var&gt;b&lt;/var&gt;; that's rather intractable by itself, so we look to factoring it.&lt;br /&gt;&lt;br /&gt;So since &lt;var&gt;h&lt;/var&gt;(&lt;var&gt;h&lt;/var&gt;(2))−2=0, we can (for now) reject the trivial solution, to get (&lt;var&gt;h&lt;/var&gt;(&lt;var&gt;h&lt;/var&gt;(2))−2)/(&lt;var&gt;h&lt;/var&gt;(2)−2)=0, or expanding it, (I don't feel like using HTML anymore to render equations)&lt;br /&gt;&lt;img alt="4a^2+4ab+37a+b^2+18b+85=0" src="http://lh4.ggpht.com/_pA5P9BzH5uM/S8XwD48PAUI/AAAAAAAAAKI/UuEvVEqIAs0/467bca9a3a7cbb2418a9ef3fe7f06069.png" /&gt;&lt;br /&gt;and likewise for (&lt;var&gt;h&lt;/var&gt;(&lt;var&gt;h&lt;/var&gt;(3))−3)/(&lt;var&gt;h&lt;/var&gt;(3)−3),&lt;br /&gt;&lt;img alt="9a^2+6ab+172a+b^2+57b+820=0" src="http://lh6.ggpht.com/_pA5P9BzH5uM/S8XwD4HdFMI/AAAAAAAAAKM/KlDPQK0fwbg/7c53ea81756d9685d4a5540756b23407.png" /&gt;.&lt;br /&gt;&lt;br /&gt;Hey look! We have two conics, and we can pretty easily solve them for the intersection. However, because I'm lazy (to make a program to do that or to do that by hand), let's try a different approach. Taking the second equation and subtracting the first, we get another conic, where the &lt;var&gt;b&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt; term vanishes. This allows us to conveniently rewrite &lt;var&gt;b&lt;/var&gt; in terms of &lt;var&gt;a&lt;/var&gt; (without involving square roots).&lt;br /&gt;&lt;img src='http://lh6.ggpht.com/_pA5P9BzH5uM/S8XzwmiKF8I/AAAAAAAAAKQ/1LDLI-Vm6As/b841450d0858e84c9e94d600373e8682.png' alt='5a^2+2ab+135a+39b+735=0'/&gt;&lt;br /&gt;&lt;img src='http://lh6.ggpht.com/_pA5P9BzH5uM/S8X07iJaquI/AAAAAAAAAKU/6hFihg1RaFU/63b7d565f7cd065972efcb3c78fb7a43.png' alt='b=-\frac{5a^2+135a+735}{2a+39}'/&gt;&lt;br /&gt;&lt;br /&gt;Substitute that into the first equation, expand everything, and ignore the denominator. This gives a quartic equation in &lt;var&gt;a&lt;/var&gt;.&lt;br /&gt;&lt;img src='http://lh3.ggpht.com/_pA5P9BzH5uM/S8X2cf-wNVI/AAAAAAAAAKY/IYo2OEKPcCY/2ff077d0df1e0eb297bd299179d1086b.png' alt='a^4+82a^3+2461a^2+32097a+153540=0'/&gt;&lt;br /&gt;&lt;br /&gt;At this point it seems like we might as well just use the quartic formula to solve it, but that's a severe waste of effort. The reason is obvious: we already have one of the roots, &lt;var&gt;a&lt;/var&gt;=−20. Dividing out gives the cubic polynomial &lt;var&gt;a&lt;/var&gt;&lt;sup&gt;3&lt;/sup&gt;+62&lt;var&gt;a&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;+1221&lt;var&gt;a&lt;/var&gt;+7677. And here we're stuck, this equation cannot be factored into integer polynomials any more. That obviously doesn't mean that there aren't any more solutions; by visual inspection this guarantees the existence of three more solutions. I'm not going to put the closed forms for these values, that's too tedious.&lt;br /&gt;&lt;br /&gt;The three other solutions are, in order of decreasing &lt;var&gt;a&lt;/var&gt;, (first value is &lt;var&gt;a&lt;/var&gt;, second is &lt;var&gt;b&lt;/var&gt;)&lt;br /&gt;-13.880638929428884792166930157925, 15.617929496135482197651068093891;&lt;br /&gt;-18.980733400749410862968110883025, 25.090971561771816085322956864739;&lt;br /&gt;-29.138627669821704344864958959050, 54.291098942092701717025975041370.&lt;br /&gt;(Values rounded to 30 decimal places.)&lt;br /&gt;&lt;br /&gt;And finally, I solved this problem. Finally.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-5879213444034197943?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/5879213444034197943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=5879213444034197943' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5879213444034197943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5879213444034197943'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/04/iterated-cubic-exam-question.html' title='Iterated cubic (exam question)'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_pA5P9BzH5uM/S8XwD48PAUI/AAAAAAAAAKI/UuEvVEqIAs0/s72-c/467bca9a3a7cbb2418a9ef3fe7f06069.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-5354347446542958938</id><published>2010-03-30T00:08:00.000+08:00</published><updated>2010-03-30T00:08:40.977+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Composing Möbius transformations to obtain constants</title><content type='html'>Möbius transformations take a complex number to another complex number; what I'm concerned here is more about those taking rationals to rationals; converging to some irrational number. What we're going for now is to get a convenient way to express certain irrational numbers of interest as an infinite sequence of Möbius transformations. It'd be useful to know more about Möbius transformations; with a bit of thinking it's not too hard to show that the transformation &lt;var&gt;z&lt;/var&gt;→(&lt;var&gt;a&lt;/var&gt;&lt;var&gt;z&lt;/var&gt;+&lt;var&gt;b&lt;/var&gt;)/(&lt;var&gt;c&lt;/var&gt;&lt;var&gt;z&lt;/var&gt;+&lt;var&gt;d&lt;/var&gt;) is equivalent to left-multiplying the vertical matrix (&lt;var&gt;z&lt;/var&gt;;1) by (&lt;var&gt;a&lt;/var&gt;,&lt;var&gt;b&lt;/var&gt;;&lt;var&gt;c&lt;/var&gt;,&lt;var&gt;d&lt;/var&gt;).&lt;br /&gt;&lt;br /&gt;A certain property of matrices makes this particularly useful: matrix multiplication is associative. In other words, we can group up the terms and apply multiple terms at once. Or that we don't have to apply them in order, which is actually an extremely useful thing, because sometimes the standard order starts from the infinite tail, which is obviously impossible to work with directly.&lt;br /&gt;&lt;br /&gt;An example of a constant that can be easily represented is √&lt;span style="text-decoration: overline;"&gt;2&lt;/span&gt;, where the continued fraction [1;&lt;span style="text-decoration: overline;"&gt;2&lt;/span&gt;] leads to the simple representation as (λ&lt;var&gt;x&lt;/var&gt;.1+1/&lt;var&gt;x&lt;/var&gt;)(λ&lt;var&gt;x&lt;/var&gt;.2+1/&lt;var&gt;x&lt;/var&gt;)(λ&lt;var&gt;x&lt;/var&gt;.2+1/&lt;var&gt;x&lt;/var&gt;)(λ&lt;var&gt;x&lt;/var&gt;.2+1/&lt;var&gt;x&lt;/var&gt;)…(2), or, writing as a matrix product,&lt;br /&gt;&lt;img alt="\begin{pmatrix}1&amp;amp;1\\1&amp;amp;0\end{pmatrix}\begin{pmatrix}2&amp;amp;1\\1&amp;amp;0\end{pmatrix}\begin{pmatrix}2&amp;amp;1\\1&amp;amp;0\end{pmatrix}\begin{pmatrix}2&amp;amp;1\\1&amp;amp;0\end{pmatrix}\cdots\begin{pmatrix}2\\1\end{pmatrix}" src="http://lh4.ggpht.com/_pA5P9BzH5uM/S7DG-TuiDUI/AAAAAAAAAJs/Typ99l0wk8E/28e1413d34a40e32d1766aa5f7a5378c.png" /&gt;&lt;br /&gt;Note that using (2;1) for the last matrix isn't really necessary; choosing any constant would work.&lt;br /&gt;&lt;br /&gt;One nice thing about this representation is that it leads to a simple algorithm for converting into any integer base greater than 1, under the assumption that arbitrary-precision arithmetic is used. For instance, using Python, I managed to write an unobfuscated program to calculate √&lt;span style="text-decoration: overline;"&gt;2&lt;/span&gt; to arbitrarily many digits in 20 lines. The basic method of converting representations is given in &lt;a href="http://www.comlab.ox.ac.uk/jeremy.gibbons/publications/spigot.pdf"&gt;Unbounded Spigot Algorithms for the Digits of Pi&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Obviously the paper linked above focuses more on π, since, well, it's part of the title. There Gosper's fast series (with term ratio 2/27) was used to provide a fast digit churning algorithm. Apart from that, though, the basic factorial-over-odd-double-factorial series (term ratio 1/2) and Lambert's continued fraction were also considered. Note that in such situations Ramanujan's formula and the Chudnovskys' formula aren't useful since they involve a square root multiplier.&lt;br /&gt;&lt;br /&gt;Of course, if we just want to calculate √&lt;span style="text-decoration: overline;"&gt;2&lt;/span&gt;, the Babylonian method is likely the fastest. That said, though, it's possible to chain an infinite sequence of transformations that converge to √&lt;span style="text-decoration: overline;"&gt;2&lt;/span&gt;; by converting to matrix form and squaring repeatedly, the result is effectively the same as the Babylonian method.&lt;br /&gt;&lt;br /&gt;I'm currently thinking about this idea applied to other continued fractions; of interest are other square roots and maybe &lt;i&gt;e&lt;/i&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-5354347446542958938?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/5354347446542958938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=5354347446542958938' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5354347446542958938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5354347446542958938'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/03/composing-mobius-transformations-to.html' title='Composing Möbius transformations to obtain constants'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_pA5P9BzH5uM/S7DG-TuiDUI/AAAAAAAAAJs/Typ99l0wk8E/s72-c/28e1413d34a40e32d1766aa5f7a5378c.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-6142743710480152006</id><published>2010-02-25T21:04:00.004+08:00</published><updated>2010-06-30T15:32:16.980+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='computation'/><category scheme='http://www.blogger.com/atom/ns#' term='sine map'/><category scheme='http://www.blogger.com/atom/ns#' term='complex'/><title type='text'>Complex sine map (again)</title><content type='html'>I made a simple plot of the complex sine map as described in the previous post, black/dark areas probably converge, white/light areas probably diverge. It's more than 1 MB large, so I'm not going to include it directly here, just a link. &lt;a href="http://lh6.ggpht.com/_Pl0QCBqQmf8/S4ZpZkJJAKI/AAAAAAAAAgY/7pJvfh5vowY/sine.png"&gt;Get it here&lt;/a&gt;. (The x axis goes from −4 to 4, y axis from −8 to 0.) I say probably because the superexponential growth means that it quickly becomes impractical to check whether a particular point converges or diverges. It's not too hard to see that there are points with arbitrarily large imaginary parts that converge to zero.&lt;br /&gt;&lt;br /&gt;Other things we can note from the plot is that the plot is periodic with period π, which is quite obvious if you think about it for a while. There are also other lines with easily proven convergence, such as π/2 + &lt;var&gt;y&lt;/var&gt;&lt;i&gt;i&lt;/i&gt; for real &lt;var&gt;y&lt;/var&gt;. (Same for other odd multiples of π/2.) Just like the main line (&lt;var&gt;y&lt;/var&gt;=0) has these vertical lines sticking out, these vertical lines themselves have lines sticking out, although these lines are bent, and apparently have &lt;var&gt;x&lt;/var&gt;=&lt;var&gt;n&lt;/var&gt;π as asymptotes; what these means is that merely by straying slightly from the imaginary axis the point could possibly converge.&lt;br /&gt;&lt;br /&gt;Note that as I mentioned above, the plot is not fully accurate, like some other software plotting similar things (such as the Mandelbrot set), the limitation is in that the software can only run a finite number of iterations (48 here) before having to decide whether a particular point converges or diverges. There's also another limitation here not present in Mandelbrot set renderers; specifically that overflow occurs at around 1.8⋅10&lt;sup&gt;308&lt;/sup&gt;, so any point that hits that value will be considered to have diverged, even though it might still converge to 0 later. There's also only 53 bits of precision, or about 16 significant figures, which means that once this threshold is reached the computation of sine and cosine becomes completely useless, because the next representable number can have very different sine/cosine values. (Damn, I could write a full post about the difficulty of high precision computation!) The effect of this (and the above paragraph) is that the plot could be completely irrelevant.&lt;br /&gt;&lt;br /&gt;Oh, and in case it wasn't obvious enough, the plot looks like a fractal. In fact it should be, as should be evident from the second paragraph above. Exactly what the fractal should look like though, is a different matter. The dimension of the fractal is… I don't know. Even from the lines-branching out simplification, the ratio changes, and it's not an exact correspondence.&lt;br /&gt;&lt;br /&gt;PS: Crappy followup to a crappy post. Meh.&lt;br /&gt;&lt;br /&gt;Update: I found this video &lt;a href="http://www.youtube.com/watch?v=BRsrOQ6I77o"&gt;The Iterated Sin Fractal&lt;/a&gt;. The video is basically just the same thing as my plot, but with less noise and some panning.&lt;br /&gt;&lt;br /&gt;Update: typo fixed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-6142743710480152006?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/6142743710480152006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=6142743710480152006' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6142743710480152006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6142743710480152006'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/02/complex-sine-map-again.html' title='Complex sine map (again)'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-5392871184822477331</id><published>2010-02-24T12:22:00.003+08:00</published><updated>2010-02-24T18:32:32.635+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='sine map'/><category scheme='http://www.blogger.com/atom/ns#' term='complex'/><title type='text'>Complex sine map</title><content type='html'>Some time back I was thinking about the sine map, where it maps a number to its sine, or &lt;var&gt;x&lt;/var&gt;↦sin(&lt;var&gt;x&lt;/var&gt;). It's not too hard to see that starting from any real number 0 is eventually reached. For the sake of filler, I shall present my argument. Without loss of generality, let &lt;var&gt;x&lt;/var&gt; be a positive real number. For all possible &lt;var&gt;x&lt;/var&gt;, &lt;var&gt;x&lt;/var&gt;&amp;gt;sin(&lt;var&gt;x&lt;/var&gt;), so taking the sine reduces the magnitude.  From here it isn't hard to see that all real numbers must converge to 0 under this map. Of course, the rate of convergence is very slow, and obviously sublinear. (The derivative around the fixed point is about 1, which means a damn slow convergence or divergence in general.) That's not actually what I'm concerned with in this post.&lt;br /&gt;&lt;br /&gt;What I actually want to know is when the sine map is applied to the complex numbers. Here by a similar argument it can be shown that all imaginary numbers (other than 0) must diverge to infinity, and do so superexponentially. (It grows like tetration, but I don't know of an adverb form for that.) But what about all the other numbers? After all, the complex plane isn't just two lines. Well, that's a problem. I haven't managed to show there are any points that converge or diverge other than the real and imaginary numbers. (Here by "and" I mean a union, not conjunction. Stupid language.) While some points with small imaginary parts appear to converge, there's no guarantee that the imaginary part won't grow fast enough to diverge (to infinity or otherwise). Likewise, for large imaginary parts, there's no guarantee the real part won't be sufficiently close to an odd multiple of π/2 to bring the imaginary part close to zero.&lt;br /&gt;&lt;br /&gt;One thing to note is that the map is not injective; by definition values differing by a multiple of 2π will map to the same value. Each iterate compresses the complex plane into a 2π by ∞ strip and then blowing it up to the fill the plane again; the question is whether this compression will result in a single point, or multiple points, or an infinite set of points (and with what dimension in this case).&lt;br /&gt;&lt;br /&gt;Not so similar to the sine map is the cosine map. The cosine map has a fixed point at &lt;abbr title="0.7390851332151606416553120876738734040134117589…"&gt;0.739…&lt;/abbr&gt;, unlike the sine map. Real numbers converge there after some time, approximately linearly. As for anything else, I'm not sure. The nonzeroness of the fixed point makes things weird.&lt;br /&gt;&lt;br /&gt;I'll probably be running a simulation of this sometime soon.&lt;br /&gt;&lt;br /&gt;There's another type of sine map, &lt;var&gt;x&lt;/var&gt;↦&lt;var&gt;C&lt;/var&gt;sin(π&lt;var&gt;x&lt;/var&gt;), applying to just the real numbers over [0,1], which is mostly unrelated. I'm not really interested in this, so I'm not elaborating further.&lt;br /&gt;&lt;br /&gt;PS: Hiatus broken, with a rather crappy post that this is. Meh.&lt;br /&gt;&lt;br /&gt;Update: Fixed an error in my reasoning in the 3rd paragraph.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-5392871184822477331?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/5392871184822477331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=5392871184822477331' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5392871184822477331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5392871184822477331'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/02/complex-sine-map.html' title='Complex sine map'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-8215643525929126371</id><published>2010-01-17T16:43:00.003+08:00</published><updated>2010-02-05T15:05:30.419+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='matrices'/><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Matrix magnitude</title><content type='html'>There was something I wondered. Given a square matrix &lt;b&gt;X&lt;/b&gt;, can we define the size of &lt;b&gt;X&lt;/b&gt;, s(&lt;b&gt;X&lt;/b&gt;), in a way that is useful? The determinant is an early candidate, that unfortunately fails the test, because some singular matrices are not nilpotent and have increasing powers tend to infinity, but have determinant zero. Basically, what we want is something like this. Let s(&lt;b&gt;X&lt;/b&gt;) be a nonnegative number &lt;var&gt;c&lt;/var&gt; such that, firstly, for all ε&amp;gt;0, the matrix (&lt;b&gt;X&lt;/b&gt;/(&lt;var&gt;c&lt;/var&gt;+ε))&lt;sup&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sup&gt; has every entry tending to 0 as &lt;var&gt;n&lt;/var&gt;→∞, while, secondly, for all 0&amp;lt;ε&amp;lt;&lt;var&gt;c&lt;/var&gt;, the matrix (&lt;b&gt;X&lt;/b&gt;/(&lt;var&gt;c&lt;/var&gt;−ε))&lt;sup&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sup&gt; has some entry that does not tend to 0.&lt;br /&gt;&lt;br /&gt;Note that for nilpotent matrices the above definition of s gives the size as 0, because if &lt;var&gt;c&lt;/var&gt;≠0 then the second condition does not hold. Also, I've not shown that this necessarily gives a result for the size; there might be pathological matrices for which the size can only be defined as being two numbers &lt;var&gt;c&lt;/var&gt; and &lt;var&gt;d&lt;/var&gt; such that 0≤&lt;var&gt;c&lt;/var&gt;≤&lt;var&gt;d&lt;/var&gt; and (&lt;b&gt;X&lt;/b&gt;/(&lt;var&gt;d&lt;/var&gt;+ε))&lt;sup&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sup&gt; tends to 0 (for ε&amp;gt;0) and (&lt;b&gt;X&lt;/b&gt;/(&lt;var&gt;c&lt;/var&gt;−ε))&lt;sup&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sup&gt; not tending to 0 (for 0&amp;lt;ε&amp;lt;&lt;var&gt;c&lt;/var&gt;), for the smallest &lt;var&gt;d&lt;/var&gt;−&lt;var&gt;c&lt;/var&gt; possible. If I'm not wrong, this is the most pathological things can get. For this we can let &lt;var&gt;d&lt;/var&gt; be the upper size and &lt;var&gt;c&lt;/var&gt; be the lower size. (When just size is mentioned it is assumed that the upper and lower sizes are the same.)&lt;br /&gt;&lt;br /&gt;Some basic facts. For a matrix (over the real numbers), the upper size is bounded above by the magnitude of the largest (in the sense of largest magnitude, not in the sense of most positive) element in the matrix, multiplied by the width. This is quite easy to see, although it's not straight away obvious. Let &lt;b&gt;A&lt;/b&gt; be an &lt;var&gt;n&lt;/var&gt;×&lt;var&gt;n&lt;/var&gt; matrix where every entry is 1. It's then pretty obvious that s(&lt;b&gt;A&lt;/b&gt;)=&lt;var&gt;n&lt;/var&gt;. From this, take the absolute value of every entry in a matrix, then notice that replacement of entries by larger entries only increases the size. (Alternatively, for a slightly tighter bound, use the maximum of the row and column absolute-value sums.)&lt;br /&gt;&lt;br /&gt;There are some other things we can note. When the lower size is 0, this means that the entries decay faster than exponentially… which is only possible when the matrix is nilpotent, or in other words, a size of 0 is equivalent to nilpotency. Also, this size measure is linear, in that s(&lt;var&gt;x&lt;/var&gt;&lt;b&gt;A&lt;/b&gt;)=&lt;var&gt;x&lt;/var&gt;s(&lt;b&gt;A&lt;/b&gt;) for all matrices &lt;b&gt;A&lt;/b&gt; and positive real numbers &lt;var&gt;x&lt;/var&gt;. The identity matrix has size 1, as expected, and s(&lt;var&gt;x&lt;/var&gt;&lt;b&gt;I&lt;/b&gt;)=&lt;var&gt;x&lt;/var&gt;.&lt;br /&gt;&lt;br /&gt;So far we've covered some simple cases: matrices where every entry is the same, nilpotent matrices, and identity matrices. Time to cover even more, because I can't figure out this stuff for non-simple cases. We have lower and upper triangular matrices, where I'll only consider upper triangular matrices because they're equivalent under transposition. The size of an &lt;var&gt;n&lt;/var&gt;×&lt;var&gt;n&lt;/var&gt; upper triangular matrix &lt;b&gt;U&lt;/b&gt; is probably the largest value on the diagonal. (Note: I'm not very sure whether this is correct.) Contrast this with the determinant, which is the product of all the values on the diagonal. When the diagonal values are all 1, observe that the value in the top-right corner grows like a polynomial of degree at most &lt;var&gt;n&lt;/var&gt;−1, and the size and determinant are both 1.&lt;br /&gt;&lt;br /&gt;For &lt;var&gt;n&lt;/var&gt;×&lt;var&gt;n&lt;/var&gt; matrices where all the nondiagonal entries are the same and nonnegative and the diagonal entries are the same and nonnegative, let a diagonal entry be &lt;var&gt;a&lt;/var&gt; and a nondiagonal entry be &lt;var&gt;b&lt;/var&gt;. The size is then &lt;var&gt;a&lt;/var&gt;+(&lt;var&gt;n&lt;/var&gt;−1)&lt;var&gt;b&lt;/var&gt;, or equivalently, the row/column sum. This isn't quite correct when &lt;var&gt;a&lt;/var&gt; or &lt;var&gt;b&lt;/var&gt; is allowed to be negative.&lt;br /&gt;&lt;br /&gt;Time to handle slightly less trivial stuff. We now have &lt;b&gt;A&lt;/b&gt; a 2×2 matrix over the reals. How would we find s(&lt;b&gt;A&lt;/b&gt;)? I haven't figured out the closed form yet, although there are some simple special case results. (Due to me not feeling like using TeX for these matrices, I'll show them inline. The format shouldn't be too hard to understand.)&lt;br /&gt;s([[&lt;var&gt;a&lt;/var&gt;,&lt;var&gt;c&lt;/var&gt;][0,&lt;var&gt;b&lt;/var&gt;]]) = s([[a,0][c,b]]) = max(|&lt;var&gt;a&lt;/var&gt;|,|&lt;var&gt;b&lt;/var&gt;|)&lt;br /&gt;s([[1,1][1,0]]) = (1+√&lt;span style="text-decoration: overline;"&gt;5&lt;/span&gt;)/2=φ&lt;br /&gt;s([[1,2][3,4]]) = (5+√&lt;span style="text-decoration: overline;"&gt;33&lt;/span&gt;)/2&lt;br /&gt;s([[1,3][5,7]]) = 4+√&lt;span style="text-decoration: overline;"&gt;24&lt;/span&gt;&lt;br /&gt;s([[2,3][5,7]]) = (9+√&lt;span style="text-decoration: overline;"&gt;85&lt;/span&gt;)/2&lt;br /&gt;The second one is an obvious consequence by relation to the Fibonacci numbers. It seems that for 2×2 matrices the size is always a quadratic irrational; more precisely, a quadratic &lt;a href="http://en.wikipedia.org/wiki/Pisot%E2%80%93Vijayaraghavan_number"&gt;PV&lt;/a&gt; number. Is this correct?&lt;br /&gt;&lt;br /&gt;Update: I was obviously wrong about the PV number part; by simply taking a sufficiently large multiple the matrix sizes are no longer PV numbers. And while I'm very sure about the quadratic irrationality part, I haven't found a proof yet. Might we similarly expect that &lt;var&gt;n&lt;/var&gt;×&lt;var&gt;n&lt;/var&gt; matrices have sizes that are roots of degree-&lt;var&gt;n&lt;/var&gt; polynomials? How is this polynomial related to the matrix?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-8215643525929126371?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/8215643525929126371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=8215643525929126371' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8215643525929126371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8215643525929126371'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/01/matrix-magnitude.html' title='Matrix magnitude'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-534590138778818641</id><published>2010-01-17T02:46:00.001+08:00</published><updated>2010-01-22T17:59:52.917+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='fourier transform'/><title type='text'>Reverse decomposition of waveforms</title><content type='html'>The basic idea behind this is like this. Basically, given a periodic function &lt;var&gt;f&lt;/var&gt; (with no undefined points except at jump discontinuities), it can be decomposed into a series of sine functions. Specifically, what we want to consider here is the sawtooth wave, which admits a very simple decomposition. First, definitions.&lt;br /&gt;&lt;br /&gt;Let &lt;var&gt;f&lt;/var&gt; be the sawtooth function over the real numbers as defined by &lt;var&gt;f&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;)=π⋅(⌊x/(2π)⌋−x/(2π)+1/2). With the use of a Fourier transform, this decomposes &lt;var&gt;f&lt;/var&gt; into&lt;br /&gt;&lt;img alt="f(x)=\sum_{k=1}^\infty\frac{\sin(kx)}k" src="http://lh6.ggpht.com/_pA5P9BzH5uM/S1H7fm_2NtI/AAAAAAAAAJE/R36G4KIzTDU/6fab7f78acf96a27def786c15512a7c7.png" /&gt;,&lt;br /&gt;which is very apparently simple. This explains the π and 2π scaling factors in the original definition.&lt;br /&gt;&lt;br /&gt;Now we invert this expression, to decompose a sine wave into sawtooth waves. We could either do this manually, expanding term by term via sin(&lt;var&gt;x&lt;/var&gt;)=&lt;var&gt;f&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;)−sin(2&lt;var&gt;x&lt;/var&gt;)/2−…, or by a (provably equivalent) Möbius inversion, which gives the almost-as-simple expression of sin in terms of &lt;var&gt;f&lt;/var&gt;:&lt;br /&gt;&lt;img src='http://lh3.ggpht.com/_pA5P9BzH5uM/S1H-cUeo7CI/AAAAAAAAAJI/PLNVXEFG1Ec/8f5e1845ad8e07a3081d6f9ac4b60469.png' alt='\sin(x)=\sum_{k=1}^\infty\mu(k)\frac{f(kx)}k'/&gt;&lt;br /&gt;&lt;br /&gt;It's quite interesting to see how this version of sine converges as terms are added, at least if you have no life (like me). If you're lazy, basically it's like noise that hugs the sine wave closer as terms are added, except that (for &lt;var&gt;n&lt;/var&gt; terms used) when M(&lt;var&gt;n&lt;/var&gt;)=0 (or by some other similar condition), the amount of noise near multiples of 2π seems to be exceptionally small.&lt;br /&gt;&lt;br /&gt;The nice (or not-so-nice) part about this is that because the sawtooth function I defined is not continuous, the convergence of this inverted decomposition is quite slow; an alternative explanation is that the coefficients μ(&lt;var&gt;k&lt;/var&gt;)/&lt;var&gt;k&lt;/var&gt; tend to 0 slowly, and do not form an absolutely convergent series. This is (probably) the source of the aforementioned apparent noise.&lt;br /&gt;&lt;br /&gt;We could do this to other waves; of particular interest would be more well-behaved waves that have no discontinuities. An example would be the similar triangle wave, where we'll just define from the sine decomposition,&lt;br /&gt;&lt;img src='http://lh3.ggpht.com/_pA5P9BzH5uM/S1ICatmullI/AAAAAAAAAJM/0WBxjZZVvKo/4d888c8b053a4130e65812d0fb9ee99c.png' alt='g(x)=\sum_{k=0}^\infty(-1)^k\frac{\sin((2k+1)x)}{(2k+1)^2}'/&gt;.&lt;br /&gt;&lt;br /&gt;Notice that this function is uniformly convergent, because the coefficients form an absolutely convergent series. If you bother to actually plot this up to a finite number of terms, note that the area around the extrema seems to have exceptionally poor convergence compared to the rest of the function; I think this is because the derivative there tends to 0, yet the left and right limits are of opposite sign. (And then there's stuff like the Gibbs phenomenon, which makes things worse in cases like this.) Anyway. This expression isn't as easy to invert as the sawtooth one. The Möbius inversion doesn't work here, which is hardly encouraging. So here we'll take the naive approach and expand continuously. My quick check fails to reveal any possibly correct formula for the coefficients. The first few are (for the odd numbers, starting at 1) 1, 1, −1, 1, 0, …, with some coefficients appearing to have magnitude greater than 1. (That, I have not verified; while it seems correct I might have made a mistake in my calculations.)&lt;br /&gt;&lt;br /&gt;Regardless, of course, me not knowing the existence of a simple closed form does not mean that such a closed form does not exist. Plotting sin in terms of &lt;var&gt;g&lt;/var&gt; for finite number of terms is similarly interesting, although the reduced amount of noise (due to uniform convergence) makes it less visually appealing.&lt;br /&gt;&lt;br /&gt;Update: one typo fixed ('an' → 'and').&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-534590138778818641?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/534590138778818641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=534590138778818641' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/534590138778818641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/534590138778818641'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2010/01/reverse-decomposition-of-waveforms.html' title='Reverse decomposition of waveforms'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_pA5P9BzH5uM/S1H7fm_2NtI/AAAAAAAAAJE/R36G4KIzTDU/s72-c/6fab7f78acf96a27def786c15512a7c7.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-6842083196007005846</id><published>2009-12-25T20:06:00.007+08:00</published><updated>2009-12-28T02:02:28.667+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>Meta: comment policy</title><content type='html'>I need to keep things in check. So here's the official comment policy.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Comments should not include links to sites irrelevant to the post.&lt;/li&gt;&lt;li&gt;Real names should be used for posting.&lt;/li&gt;&lt;li&gt;Comments may be freely deleted at my will.&lt;/li&gt;&lt;li&gt;Comments should be in English. Simplified Chinese is also fine, but any other language will be ignored (and deleted).&lt;/li&gt;&lt;li&gt;You agree that all content in the comments may be used under any of the Creative Commons licences and may be used by me without any copyright restrictions, unless the copyright of the content belongs to an other entity in which case this is affected by point A.1 below.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;By commenting on any of the posts in this blog you agree to all of these points. (Including the ones below.)&lt;br /&gt;&lt;br /&gt;Addendum A (2009/12/26):&lt;br /&gt;&lt;ol&gt;&lt;li&gt;You also agree that either you own all the copyright to the content in the comment you want to post or the content is available under a free Creative Commons licence or is in the public domain or is otherwise permissively licensed. (The "permissively" part is at my discretion; it basically includes licences such as the revised BSD licence.)&lt;/li&gt;&lt;li&gt;Directly using line breaks should be avoided; use the XHTML tag &amp;lt;br/&amp;gt; instead.&lt;/li&gt;&lt;/ol&gt;Point 5 has also been revised in accordance to point &lt;del&gt;6&lt;/del&gt; A.1. Also, yes, I know there is a loophole here that can be used to prevent me from using the content without copyright restrictions. By transferring the copyright to another entity, a commenter can then post the content covered by point &lt;del&gt;6&lt;/del&gt; A.1 and not point 5. This comment policy is not retroactive; the few comments previously posted are not subject to these. Point &lt;del&gt;7&lt;/del&gt; A.2 is a also a pain in the ass because Blogger automatically converts line breaks to &amp;lt;br&amp;gt; and not &amp;lt;br/&amp;gt;, representing an inconsistency between some default templates (which use XHTML), the HTML post interface (which also uses the XHTML &amp;lt;br/&amp;gt;) and the comment posting interface (which uses HTML).&lt;br /&gt;&lt;br /&gt;Update: I'm fiddling around with the XHTML and CSS to make the numbering correct; for now the numberings for the lists are completely screwed up, but the content should still be readable.&lt;br /&gt;&lt;br /&gt;Update: I give up on fixing the numbering; the CSS spec doesn't make much sense. Lettering the addendum/addenda. Also, fixed an ambiguous point in A.1.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-6842083196007005846?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/6842083196007005846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=6842083196007005846' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6842083196007005846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6842083196007005846'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/12/meta-comment-policy.html' title='Meta: comment policy'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-5718403321268278606</id><published>2009-12-25T19:58:00.001+08:00</published><updated>2009-12-26T02:33:19.724+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='proof'/><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='number theory'/><title type='text'>A proof of Fermat's Little Theorem</title><content type='html'>(Prescript: Mind you, this isn't about the Last Theorem, which is much harder.)&lt;br /&gt;&lt;br /&gt;There's a simple proof of the Little Theorem based on combinatorics. Theorem: Let &lt;var&gt;p&lt;/var&gt; be an aribtrary prime number. Then for all integer &lt;var&gt;a&lt;/var&gt;, &lt;var&gt;a&lt;/var&gt;&lt;sup&gt;&lt;var&gt;p&lt;/var&gt;&lt;/sup&gt;≡&lt;var&gt;a&lt;/var&gt; (mod &lt;var&gt;p&lt;/var&gt;).&lt;br /&gt;&lt;br /&gt;Let S be the set of strings over an alphabet {0,1,…&lt;var&gt;a&lt;/var&gt;−1} of length &lt;var&gt;p&lt;/var&gt;. The cardinality of S is then &lt;var&gt;a&lt;/var&gt;&lt;sup&gt;&lt;var&gt;p&lt;/var&gt;&lt;/sup&gt;. Define a cyclic shift of &lt;var&gt;m&lt;/var&gt;, &lt;var&gt;m&lt;/var&gt; in 0 to &lt;var&gt;p&lt;/var&gt;−1, over a string &lt;var&gt;s&lt;/var&gt;∈S, as the last &lt;var&gt;m&lt;/var&gt; letters concatenated to the first &lt;var&gt;p&lt;/var&gt;−&lt;var&gt;m&lt;/var&gt; letters.&lt;br /&gt;&lt;br /&gt;The only strings that are fixed points of nonzero cyclic shifts are those with only 1 distinct letter from the alphabet, since &lt;var&gt;p&lt;/var&gt; is prime. Consequently, excluding those &lt;var&gt;a&lt;/var&gt; strings from S, the cyclic shift operation becomes a group operation with period &lt;var&gt;p&lt;/var&gt; for every element; this means that &lt;var&gt;p&lt;/var&gt;|(&lt;var&gt;a&lt;/var&gt;&lt;sup&gt;&lt;var&gt;p&lt;/var&gt;&lt;/sup&gt;−&lt;var&gt;a&lt;/var&gt;), completing the proof.&lt;br /&gt;&lt;br /&gt;Okay, granted, this isn't the nicest proof, but to my knowledge it is original. I don't think this proof can be modified to prove Euler's theorem, unlike some other proofs of the Little Theorem.&lt;br /&gt;&lt;br /&gt;Update: &lt;a href="http://www.cimat.mx/~mmoreno/teaching/spring08/Fermats_Little_Thm.pdf"&gt;ninja'd&lt;/a&gt; by 53 years. It's even the first proof in &lt;a href="https://secure.wikimedia.org/wikipedia/en/wiki/Proofs_of_Fermat%27s_little_theorem"&gt;Wikipedia's list&lt;/a&gt;. There's a chance I might have seen read the linked Wikipedia article (and also this proof) before, although I can't objectively claim either way. Looking at the bright side, at least I didn't get ninja'd by someone like Euler right?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-5718403321268278606?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/5718403321268278606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=5718403321268278606' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5718403321268278606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5718403321268278606'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/12/proof-of-fermats-little-theorem.html' title='A proof of Fermat&apos;s Little Theorem'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-8262842281328885606</id><published>2009-12-13T00:48:00.003+08:00</published><updated>2010-01-10T11:46:41.729+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='number theory'/><title type='text'>On squarefree numbers (again)</title><content type='html'>&lt;a href="http://lh6.ggpht.com/_pA5P9BzH5uM/SyPIZ8O3DLI/AAAAAAAAAII/lnDsVAC2slA/sqfreeplot.png"&gt;&lt;img alt="[plot]" src="http://lh6.ggpht.com/_pA5P9BzH5uM/SyPIZ8O3DLI/AAAAAAAAAII/lnDsVAC2slA/sqfreeplot.png" style="width: 600px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I made a plot of the function &lt;i&gt;Q&lt;/i&gt;(&lt;var&gt;x&lt;/var&gt;)−&lt;var&gt;x&lt;/var&gt;/ζ(2) as described in the previous post. Here the bounding functions are ±2√&lt;span style="text-decoration: overline;"&gt;&lt;var&gt;x&lt;/var&gt;&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Some observations to make. We know that the first definition of &lt;i&gt;Q&lt;/i&gt;(&lt;var&gt;x&lt;/var&gt;) I gave in the previous post (as the sum of the absolute values of the Möbius function over the positive integers) is actually (a specific case of) the Dirichlet series ∑&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;&lt;/sub&gt;(|μ(&lt;var&gt;k&lt;/var&gt;)|⋅&lt;var&gt;k&lt;/var&gt;&lt;sup&gt;−&lt;var&gt;s&lt;/var&gt;&lt;/sup&gt;) cut off at &lt;var&gt;x&lt;/var&gt; terms. This can be transformed into something involving the zeros of the ζ function, where by assuming the Riemann hypothesis a better result for the error term than O(&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;1/2&lt;/sup&gt;) can be obtained. Wikipedia mentions that the current best bound, assuming the RH, is O(&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;17/54+ε&lt;/sup&gt;), just under the cube root. One of the references cited in Wikipedia also mentions that there is a known (unconditional, iirc) lower bound, specifically Ω&lt;sub&gt;±&lt;/sub&gt;(&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;1/4&lt;/sup&gt;), or in other words not o(&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;1/4&lt;/sup&gt;).&lt;br /&gt;&lt;br /&gt;An implication of the upper bound of the difference is that it is o(√&lt;span style="text-decoration: overline;"&gt;&lt;var&gt;x&lt;/var&gt;&lt;/span&gt;), if the RH is true. In other words, taking the graph, even if the bounding functions (blue and green) are downscaled by any factor, the pink function will eventually remain trapped by the two bounds from some point on (assuming RH).&lt;br /&gt;&lt;br /&gt;PS: &lt;del&gt;I will update this post properly; battery with few minutes left.&lt;/del&gt; Update: done.&lt;br /&gt;&lt;br /&gt;PPS: The graph might not be fully accurate. The values of μ were computed by hand, since the program (KmPlot) doesn't do number theoretic functions. The first time I plotted it I left out two non-zero values.&lt;br /&gt;&lt;br /&gt;Update: fixed two mistakes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-8262842281328885606?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/8262842281328885606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=8262842281328885606' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8262842281328885606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8262842281328885606'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/12/on-squarefree-numbers-again.html' title='On squarefree numbers (again)'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_pA5P9BzH5uM/SyPIZ8O3DLI/AAAAAAAAAII/lnDsVAC2slA/s72-c/sqfreeplot.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-8610342251157917868</id><published>2009-12-01T03:06:00.002+08:00</published><updated>2009-12-01T13:39:20.255+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='number theory'/><title type='text'>Asymptotic form for the quantity of squarefree integers</title><content type='html'>I found this (the stuff below) in the book &lt;a href="http://books.google.com/books?id=3hTeH5VUheAC"&gt;An Introduction to the Theory of Numbers&lt;/a&gt; (G. H. Hardy and E. M. Wright, page 269), and I modified it slightly. In particular, while the book only gave asymptotic bounds, I will provide obvious hard bounds. ("obvious" in the sense that if the derivation was done with this in consideration the bounds are quite trivial to obtain.)&lt;br /&gt;&lt;br /&gt;Let &lt;i&gt;Q&lt;/i&gt;(&lt;var&gt;x&lt;/var&gt;) be defined (for non-negative &lt;var&gt;x&lt;/var&gt;) as the number of squarefree integers less than or equal to &lt;var&gt;x&lt;/var&gt;. (Using an alternative notation, &lt;i&gt;Q&lt;/i&gt;=∑|μ|.) Let &lt;var&gt;y&lt;/var&gt; be an arbitrary positive number not less than 1. Then by some magical argument (I don't quite get the wording in the original, although overall it still makes sense),&lt;br /&gt;&lt;img alt="\lfloor y^2\rfloor=\sum_{k\le y}Q\left(\frac{y^2}{k^2}\right)" src="http://lh6.ggpht.com/_pA5P9BzH5uM/SxQAKl-LehI/AAAAAAAAAHY/GwSurTwMTj4/1e99626fff0da4cf8df18aaeb189624b.png" /&gt;.&lt;br /&gt;&lt;br /&gt;Now perform a Möbius inversion to obtain &lt;i&gt;Q&lt;/i&gt;(&lt;var&gt;y&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;) in terms of a sum of λ&lt;var&gt;k&lt;/var&gt;.⌊&lt;var&gt;y&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;/&lt;var&gt;k&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;⌋. This gives&lt;br /&gt;&lt;img alt="Q\left(y^2\right)=\sum_{k\le y}\mu(k)\left\lfloor\frac{y^2}{k^2}\right\rfloor" src="http://lh6.ggpht.com/_pA5P9BzH5uM/SxQA5a6wCzI/AAAAAAAAAHg/qkWXeGHuS3g/18ca017ea1bfbb3276fe2d064ecd3f61.png" /&gt;,&lt;br /&gt;where the real fun begins. We see a floor here, so we temporarily remove it by defining another function α(&lt;var&gt;y&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;)=∑&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;≤&lt;var&gt;y&lt;/var&gt;&lt;/sub&gt;[μ(&lt;var&gt;k&lt;/var&gt;)(⌊&lt;var&gt;y&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;/&lt;var&gt;k&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;⌋−&lt;var&gt;y&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;/&lt;var&gt;k&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;)], so we now have&lt;br /&gt;&lt;img alt="Q\left(y^2\right)=y^2\sum_{k\le y}\frac{\mu(k)}{k^2}+\alpha\left(y^2\right)" src="http://lh6.ggpht.com/_pA5P9BzH5uM/SxQDAcuEloI/AAAAAAAAAHk/tl4ziICVadU/1f4c8073bffae99221cc24f92c52e438.png" /&gt;.&lt;br /&gt;&lt;br /&gt;Notice the ∑&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;≤&lt;var&gt;y&lt;/var&gt;&lt;/sub&gt;[μ(&lt;var&gt;k&lt;/var&gt;)/&lt;var&gt;k&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;] in there, which is the same as the sum representing 1/ζ(&lt;var&gt;z&lt;/var&gt;) at &lt;var&gt;z&lt;/var&gt;=2, except with the tail cut off. This can be rewritten as 1/ζ(2)−∑&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;&amp;gt;&lt;var&gt;y&lt;/var&gt;&lt;/sub&gt;[μ(&lt;var&gt;k&lt;/var&gt;)/&lt;var&gt;k&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;]. Bounding the absolute value of this tail approximatively is not difficult, and can be done by just taking the absolute value. This gives the bounding interval as (1/ζ(2)−1/&lt;var&gt;y&lt;/var&gt; , 1/ζ(2)+1/&lt;var&gt;y&lt;/var&gt;).&lt;br /&gt;&lt;br /&gt;As for α(&lt;var&gt;y&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;), note that, for all real &lt;var&gt;z&lt;/var&gt;, &lt;var&gt;z&lt;/var&gt;−⌊&lt;var&gt;z&lt;/var&gt;⌋ is bounded within [0,1). So, by just taking the absolute value, we have that |α(&lt;var&gt;y&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;)|≤&lt;i&gt;Q&lt;/i&gt;(&lt;var&gt;y&lt;/var&gt;)≤&lt;var&gt;y&lt;/var&gt;. With this in place, we can give the final asymptotic bounds as&lt;br /&gt;&lt;img alt="Q\left(y^2\right)=\frac{6y^2}{\pi^2}\quad(\pm2y)" src="http://lh3.ggpht.com/_pA5P9BzH5uM/SxQRb2ib4tI/AAAAAAAAAHo/FeHaHCdUGNk/45a34e5095a55c9903cc4bac6e24ded3.png" /&gt;&lt;br /&gt;(where the plus-minus sign should be taken as meaning a range, not a choice of two options). From here, substituting &lt;var&gt;x&lt;/var&gt;=&lt;var&gt;y&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt; gives the final form&lt;br /&gt;&lt;img alt="Q(x)=\frac{6x}{\pi^2}\quad(\pm2\sqrt x)" src="http://lh3.ggpht.com/_pA5P9BzH5uM/SxQTIZgNs3I/AAAAAAAAAHs/I4Jt6rr8uAU/af22790f99734e5273edd0972540a1a2.png" /&gt;.&lt;br /&gt;&lt;br /&gt;Note that this isn't the tightest bound on the constant multiplier even without much further analysis; by application of this result to the earlier bound for α, the multiplier can be reduced to 1+6/π&lt;sup&gt;2&lt;/sup&gt;, at the expense of having an extra term and lesser elegance. Also note that the range is an open interval; if &lt;var&gt;x&lt;/var&gt; is positive, then the upper and lower bounds are never reached, as can be seen from either the derivation itself or the transcendence of π. (The bounds can only be exactly reached when &lt;var&gt;x&lt;/var&gt;=0.)&lt;br /&gt;&lt;br /&gt;Also, note that this derivation is easily modified to cover the cubefree, etc. numbers instead of the squarefree ones.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-8610342251157917868?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/8610342251157917868/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=8610342251157917868' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8610342251157917868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8610342251157917868'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/12/asymptotic-form-for-quantity-of.html' title='Asymptotic form for the quantity of squarefree integers'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_pA5P9BzH5uM/SxQAKl-LehI/AAAAAAAAAHY/GwSurTwMTj4/s72-c/1e99626fff0da4cf8df18aaeb189624b.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-8728240037069611676</id><published>2009-11-23T17:47:00.001+08:00</published><updated>2009-11-23T17:51:26.740+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rsa'/><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='number theory'/><title type='text'>Breaking RSA, factoring integers</title><content type='html'>Prescript: this post does not contain any effective method of breaking RSA.&lt;br /&gt;&lt;br /&gt;Just for the sake of filler, let's review &lt;a href="http://zznq.blogspot.com/2009/09/quick-description-of-rsa-encryption.html"&gt;what RSA is about&lt;/a&gt;. Basically, given two large-ish primes &lt;var&gt;p&lt;/var&gt; and &lt;var&gt;q&lt;/var&gt; (that aren't too close to each other), the encryption of a plaintext number/message &lt;var&gt;P&lt;/var&gt;, &lt;var&gt;C&lt;/var&gt;, is given by &lt;var&gt;C&lt;/var&gt; = (&lt;var&gt;P&lt;/var&gt;&lt;sup&gt;&lt;var&gt;e&lt;/var&gt;&lt;/sup&gt; mod &lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt;) where &lt;var&gt;e&lt;/var&gt; is the encryption exponent, chosen to be not-too-small, and also coprime to φ(&lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt;). Decryption is then &lt;var&gt;P&lt;/var&gt; = (&lt;var&gt;C&lt;/var&gt;&lt;sup&gt;1/&lt;var&gt;e&lt;/var&gt;&lt;/sup&gt; mod &lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt;) where 1/&lt;var&gt;e&lt;/var&gt; is the multiplicative inverse modulo φ(&lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt;).&lt;br /&gt;&lt;br /&gt;Now let's see the fundamental assumptions behind the unbreakability of RSA. The most obvious premise is that φ(&lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt;) = &lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt;+1−(&lt;var&gt;p&lt;/var&gt;+&lt;var&gt;q&lt;/var&gt;) cannot be easily obtained from just &lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt;, or equivalently that &lt;var&gt;p&lt;/var&gt;+&lt;var&gt;q&lt;/var&gt; is in some aspect independent from &lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt;. Note that that's not actually necessary to break RSA; the key assumption is that without knowledge of &lt;var&gt;p&lt;/var&gt; or &lt;var&gt;q&lt;/var&gt; (except of course of their product), taking roots modulo &lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt; is difficult. Unless &lt;var&gt;C&lt;/var&gt; happens to be a perfect &lt;var&gt;e&lt;/var&gt;th power in the integers, this is impractical, and is at least (I think) as hard as factorisation. (I'm not very sure on this part.)&lt;br /&gt;&lt;br /&gt;So let's just focus on the former assumption. It's actually as hard as factorisation, despite only asking for the sum of the factors and not the individual factors themselves. The reason for this is quite simple (although it somehow eluded me for quite some time): through substitution, a simple quadratic equation can be formed, whose two roots are exactly the two primes &lt;var&gt;p&lt;/var&gt; and &lt;var&gt;q&lt;/var&gt; (the order isn't important here). (Note that this quadratic equation can be solved in polynomial time.)&lt;br /&gt;&lt;br /&gt;In fact, let's focus on finding &lt;var&gt;p&lt;/var&gt;+&lt;var&gt;q&lt;/var&gt; given &lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt;, but in small prime moduli &lt;var&gt;m&lt;/var&gt;. (We can assume that these moduli are smaller than &lt;var&gt;p&lt;/var&gt; and &lt;var&gt;q&lt;/var&gt;, so they will be coprime. If they're not, then factorisation can be done in polynomial time anyway.) Modulo 2, there isn't much to cover, since &lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt; is always 1 and &lt;var&gt;p&lt;/var&gt;+&lt;var&gt;q&lt;/var&gt; is always 0. Modulo 3, &lt;var&gt;p&lt;/var&gt;+&lt;var&gt;q&lt;/var&gt; has two solutions if &lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt; is 1, one solution when &lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt; is 2.&lt;br /&gt;&lt;br /&gt;Let's skip ahead a bit. If you check for yourself, when &lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt; is a quadratic residue, then there are (&lt;var&gt;m&lt;/var&gt;+1)/2 solutions, and when &lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt; isn't, there are (&lt;var&gt;m&lt;/var&gt;−1)/2 solutions. Let's just go hypothetical for a while. If supposing there is exactly one solution, then by the Chinese remainder theorem this is easily solved, using O(log &lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt;) moduli, in polynomial time and by extension also polynomial space.&lt;br /&gt;&lt;br /&gt;Anyway, let's assume we proceed with this method, for moduli &lt;var&gt;m&lt;/var&gt;&lt;sub&gt;&lt;var&gt;i&lt;/var&gt;&lt;/sub&gt;, &lt;var&gt;i&lt;/var&gt; being a natural number, we have the &lt;var&gt;i&lt;/var&gt;th stage of sieving removing approximately half of the possible choices for &lt;var&gt;p&lt;/var&gt;+&lt;var&gt;q&lt;/var&gt;. Even in the worst case, at least 1/3 of the possible choices are sieved away, so this requires Θ(log &lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt;) stages of sieving to solve. Unfortunately, this approach is doomed to failure. Each stage of sieving effectively takes Θ(&lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt;) time, which is already exponential, and worse than &lt;a href="http://en.wikipedia.org/wiki/General_number_field_sieve"&gt;the general number field sieve&lt;/a&gt;, which is subexponential. This method also requires &lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt; memory to store the sieve results, which is in itself way too much and also very unrealistic for realistically large &lt;var&gt;p&lt;/var&gt; and &lt;var&gt;q&lt;/var&gt; (300+ digits each).&lt;br /&gt;&lt;br /&gt;However, if we somehow had some kind of machine with at least &lt;var&gt;p&lt;/var&gt;&lt;var&gt;q&lt;/var&gt; memory, and could do one stage of sieving in O(&lt;var&gt;m&lt;/var&gt;&lt;sub&gt;&lt;var&gt;i&lt;/var&gt;&lt;/sub&gt;) time, then the approach becomes feasible, and in fact doable in polynomial time, but with exponential space. This is clearly impossible on classical systems (e.g. Turing machines).&lt;br /&gt;&lt;br /&gt;Given that factorisation is in NP, and suspected not to be in P, we think factorisation won't be solved (in the sense that a polynomial-time algorithm is found), at least for a long time. Of course, factorisation isn't believed to be NP-complete; if it isn't, then it might be in P. On the other hand, if it is NP-complete, then we have some reason to believe that P=NP, meaning that it might still be in P anyway. In other words, we don't have any concrete results on this yet.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-8728240037069611676?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/8728240037069611676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=8728240037069611676' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8728240037069611676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8728240037069611676'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/11/breaking-rsa-factoring-integers.html' title='Breaking RSA, factoring integers'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-7712378864291889639</id><published>2009-11-06T15:19:00.000+08:00</published><updated>2009-11-06T15:19:53.431+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='number theory'/><category scheme='http://www.blogger.com/atom/ns#' term='complex'/><category scheme='http://www.blogger.com/atom/ns#' term='gaussian integers'/><title type='text'>Density of Gaussian primes redux</title><content type='html'>I just did a &lt;a href="http://www.google.com/search?q=density+of+gaussian+primes"&gt;Google search on the density&lt;/a&gt;, and it turns out that, once again, I had the wrong insight on solving this problem. (See &lt;a href="http://www.emis.de/journals/EM/restricted/7/7.3/vardi.ps"&gt;second link&lt;/a&gt;.) In fact the correct solution is quite simple. Consider a quarter-disk of radius &lt;var&gt;x&lt;/var&gt; in the quarter plane &lt;var&gt;z&lt;/var&gt;: arg(&lt;var&gt;z&lt;/var&gt;) ∈ [0,π/2]. We can actually already start counting the primes via a simple number theoretic theorem about the sums of two squares: that every prime congruent to 1 modulo 4 can be represented as the sum of two squares in exactly one way (or 8 if you count swapping the terms and the signs). So we'll actually count the number exactly now.&lt;br /&gt;&lt;br /&gt;The 3-mod-4 primes on the real/imaginary lines shouldn't be double-counted since they're on the boundaries, so for the appearance on both the real/imaginary lines I count both as just one. This gives π&lt;sub&gt;3&lt;/sub&gt;(&lt;var&gt;x&lt;/var&gt;) primes there. (π&lt;sub&gt;1&lt;/sub&gt; and π&lt;sub&gt;3&lt;/sub&gt; refer to the prime-counting functions on primes in residue classes 1 and 3 respectively.) We'll also make 1+&lt;i&gt;i&lt;/i&gt; a special case, since it corresponds to the natural prime 2, the only even prime. Those remaining are then the number of 1-mod-4 primes less than &lt;var&gt;x&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;, which corresponds to 2π&lt;sub&gt;1&lt;/sub&gt;(&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;) Gaussian primes. Adding these three terms give 1+π&lt;sub&gt;3&lt;/sub&gt;(&lt;var&gt;x&lt;/var&gt;)+2π&lt;sub&gt;1&lt;/sub&gt;(&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;).&lt;br /&gt;&lt;br /&gt;We shall now cast our wand of asymptotics. That gives ~&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;/(2ln&lt;var&gt;x&lt;/var&gt;). Similarly, for the quarter-disk of radius √&lt;span style="text-decoration: overline;"&gt;2&lt;/span&gt;x, ~&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;/ln &lt;var&gt;x&lt;/var&gt;. Performing the same scaling trick that we did in the last post, this gives the same value: π(&lt;var&gt;x&lt;/var&gt;,&lt;var&gt;x&lt;/var&gt;) ~ (2/π)&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;/ln &lt;var&gt;x&lt;/var&gt;, and from that we see that our initial heuristic turns out to be correct.&lt;br /&gt;&lt;br /&gt;It would be nice if we had some kind of error analysis, but we don't quite know how much bias there is for primes to be 1-mod-4 over 3-mod-4 or vice versa, so no analysis here, sorry.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-7712378864291889639?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/7712378864291889639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=7712378864291889639' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7712378864291889639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7712378864291889639'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/11/density-of-gaussian-primes-redux.html' title='Density of Gaussian primes redux'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-389766316481818876</id><published>2009-11-06T01:58:00.004+08:00</published><updated>2009-11-08T13:35:53.592+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='number theory'/><category scheme='http://www.blogger.com/atom/ns#' term='complex'/><category scheme='http://www.blogger.com/atom/ns#' term='gaussian integers'/><title type='text'>Density of Gaussian primes (heuristics)</title><content type='html'>Heuristic: let the density of primes in the sum-of-two-squares integers (i.e. those that have even powers of primes congruent to 3 modulo 4 in the prime factorisation) be asymptotically proportional to (i.e. big theta of) that of integers in general, i.e. inversely proportional to the log. This heuristic is actually quite crazy. It's not obvious, and I can't quite justify much; it might not even be true! (This is the case for heuristics in general actually.)&lt;br /&gt;&lt;br /&gt;So given that assumption, it's time to find the multiplier. Modulo 2, the squares are evenly distributed among 0 and 1, and so are the sums of two squares, so no multiplier here. Modulo 3, the squares go in residue class 0 at 1/3, residue class 1 at 2/3, so the sums go in residue class 0 at 1/9, implying a 8/9 chance of being coprime to 3 instead of 2/3, so the current multiplier considering modulo 6 is 4/3. For modulo 5, the chances of being divisible 5 is 9/25, being coprime is 16/25, differing from the expected 20/25, introducing another multiplier 4/5. The closed form for this actually depends on quadratic residue stuff; this is left as an exercise for the reader (you).&lt;br /&gt;&lt;br /&gt;And then multiplying all these multipliers gives 4/π. Let that be K. (So we can avoid having π refer to both the constant and the function.) Note that K is only assuming the initial heuristic; it is not a heuristic itself if the initial heuristic is valid. (Well, inasmuch as the fact that the density of the primes tends to zero.)&lt;br /&gt;&lt;br /&gt;Thus, we can roughly approximate π(&lt;var&gt;x&lt;/var&gt;,&lt;var&gt;y&lt;/var&gt;), which we define as the number of Gaussian primes with non-negative real/imaginary parts, with real part less than &lt;var&gt;x&lt;/var&gt; and imaginary part less than &lt;var&gt;y&lt;/var&gt;. Since we're only concerned with asymptotics here it doesn't matter if we use "less than" or "not greater than", or "non-negative" versus "positive", since they contribute a insignificant proportion by themselves. In fact I'm only going to consider when &lt;var&gt;x&lt;/var&gt;=&lt;var&gt;y&lt;/var&gt;, or in other words a square in the complex plane. I'll also ignore edge cases where the real/imaginary part is equal to zero. We shall now perform a double integration on this density. Direct integration is not exactly easily usable, since there is no closed form for the integrand (integrating in either variable), so we consider two related areas: the quarter-disk contained inside the square, and the quarter-disk containing the squares, both of which can be integrated quite easily via change of variables. Using asymptotics (and after scaling so the areas match), they are both K&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;/(2 ln &lt;var&gt;x&lt;/var&gt;), so we can conclude that, heuristically, π(&lt;var&gt;x&lt;/var&gt;,&lt;var&gt;x&lt;/var&gt;) ~ (K/2) &lt;var&gt;x&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;/ln &lt;var&gt;x&lt;/var&gt;. Again, assuming that heuristic, it's not hard to prove that π(&lt;var&gt;x&lt;/var&gt;,&lt;var&gt;y&lt;/var&gt;) ~ K &lt;var&gt;x&lt;/var&gt;&lt;var&gt;y&lt;/var&gt;/ln(&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;+&lt;var&gt;y&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;). (Note that so far only one heuristic has been used: the one set out at the start.)&lt;br /&gt;&lt;br /&gt;From my calculations (done in C, not Mathematica, you insensitive clod!), π(1200,1200)=137253, corresponding with a value of K≈1.352, which isn't exactly close to 4/π≈1.273, until you realise that I swindled a few times in the asymptotics by ignoring large (but still relatively insignificant) error terms; it's probably the case that accurate computation of the value would require very large numbers, or even that the heuristic is false.&lt;br /&gt;&lt;br /&gt;Update [10:55]: Fixed some stuff.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-389766316481818876?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/389766316481818876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=389766316481818876' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/389766316481818876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/389766316481818876'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/11/density-of-gaussian-primes-heuristics.html' title='Density of Gaussian primes (heuristics)'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-3734940529145619769</id><published>2009-11-05T15:45:00.003+08:00</published><updated>2009-11-05T16:34:47.159+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='generalised exponential function'/><title type='text'>A generalised exponential function (part 2)</title><content type='html'>Actually, come to think of it, the solutions can't actually be too hard. The obvious thing about such generalised exponentials is that they solve a particular (and quite simple) differential equation: &lt;var&gt;f&lt;/var&gt;&lt;sup&gt;(&lt;var&gt;n&lt;/var&gt;)&lt;/sup&gt; = &lt;var&gt;f&lt;/var&gt; (where the bracketed superscript denotes an &lt;var&gt;n&lt;/var&gt;-fold differentiation). There's also another class of solution generators&lt;sup&gt;[1]&lt;/sup&gt; to this differential equation, and for some reason I didn't quite think of them earlier. They're &lt;i&gt;e&lt;/i&gt;&lt;sup&gt;δ&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt;&lt;/sup&gt; where δ&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt; is any &lt;var&gt;n&lt;/var&gt;th root of unity.&lt;br /&gt;&lt;br /&gt;It turns out that via a very simple trick these two classes of solutions can be related. Recall that the sum of &lt;var&gt;n&lt;/var&gt;th roots of unity equals 0 when &lt;var&gt;n&lt;/var&gt;&amp;gt;1, and also that taking the set of nontrivial roots of unity (i.e. all the roots except for 1), and taking each element to the power of an integer coprime to &lt;var&gt;n&lt;/var&gt; gives you back the same set. With those in mind, we have a preliminary result: a closed form for exp&lt;sub&gt;0,&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt;.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://lh3.ggpht.com/_Pl0QCBqQmf8/SvKGD569FNI/AAAAAAAAAdw/r7yEmhVFyjg/d69271e656b52a82dacf2fb9820f7cbb.png" alt="\exp_{0,n}(x)=\frac1n\sum_{k=0}^{n-1}e^{\delta_n^kx}" /&gt;&lt;br /&gt;&lt;br /&gt;Via differentiation of the Taylor series definition of exp&lt;sub&gt;&lt;var&gt;m&lt;/var&gt;,&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt;, we find that (exp&lt;sub&gt;&lt;var&gt;m&lt;/var&gt;,&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt;)′=exp&lt;sub&gt;&lt;var&gt;m&lt;/var&gt;−1,&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt;, where &lt;var&gt;m&lt;/var&gt;−1 really means &lt;var&gt;m&lt;/var&gt;−1 modulo &lt;var&gt;n&lt;/var&gt;. So we differentiate the above series, and we get, in turn, closed-forms for exp&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;−1,&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt;, exp&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;−2,&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt;, et cetera all the way to exp&lt;sub&gt;1,&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt;. The closed forms for these are similarly simple, except the exponentials are weighted by some root of unity first. This gives a general solution:&lt;br /&gt;&lt;br /&gt;&lt;img src="http://lh6.ggpht.com/_Pl0QCBqQmf8/SvKLHIt3ztI/AAAAAAAAAd0/CabJDFVmeuE/c48c4c5ed1f5c42fd283b4240e291c8f.png" alt="\exp_{m,n}(x)=\frac1n\sum_{k=0}^{n-1}\delta_n^{-mk}e^{\delta_n^kx}" /&gt;&lt;br /&gt;&lt;br /&gt;In case anybody forgot, in the first post about this I specifically asked for real transformations. Taking complex powers almost seems cheating, until you remember that complex numbers have both real parts and imaginary parts, and exponentiating to complex powers can be considered as converting them to sines and cosines. The end result involves a series (still going from 0 to &lt;var&gt;n&lt;/var&gt;−1) with the sine/cosine of a sine multiplied by something else, which isn't very nice, but is interesting in its own right, in that when &lt;var&gt;x&lt;/var&gt; is real the complicated imaginary part miraculously cancels out.&lt;br /&gt;&lt;br /&gt;[1] I say generators, because any summation of any multiples of them will also solve the differential equation. This also provides a simple proof that these &lt;var&gt;n&lt;/var&gt; generators are independent (although clearly also very closely related), in the sense that no sum of multiples of &lt;var&gt;n&lt;/var&gt;−1 of them can generate the other one.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-3734940529145619769?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/3734940529145619769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=3734940529145619769' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/3734940529145619769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/3734940529145619769'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/11/generalised-exponential-function-part-2.html' title='A generalised exponential function (part 2)'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_Pl0QCBqQmf8/SvKGD569FNI/AAAAAAAAAdw/r7yEmhVFyjg/s72-c/d69271e656b52a82dacf2fb9820f7cbb.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-4333899627274767018</id><published>2009-10-26T22:55:00.002+08:00</published><updated>2009-10-26T23:18:48.870+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>Math Overflow</title><content type='html'>No, I haven't been lagging behind in the mathematics blogging community about the existence of this question-answering tool. (Okay maybe I was a bit slow because I came to know it from Terence Tao's blog, and he claims that he reported the info late.)&lt;br /&gt;&lt;br /&gt;Regarding &lt;a href="http://zznq.blogspot.com/2009/10/generalised-exponential-function.html"&gt;the generalised exponential functions I posted 2 days ago&lt;/a&gt;, I posted &lt;a href="http://mathoverflow.net/questions/2609/closed-form-of-a-type-of-generalised-exponential-functions"&gt;a question&lt;/a&gt; on MO. I've gotten a single answer, although it seems a bit unsatisfactory. (I asked for real transformations, precisely because I thought the complex ones would make the problem too easy to solve. Not that DFTs are simple to understand, but still.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-4333899627274767018?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/4333899627274767018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=4333899627274767018' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4333899627274767018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4333899627274767018'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/10/math-overflow.html' title='Math Overflow'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-3246268185803321739</id><published>2009-10-24T22:31:00.004+08:00</published><updated>2009-10-25T18:21:13.506+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='generalised exponential function'/><title type='text'>A generalised exponential function</title><content type='html'>I was thinking about this for the past few days. Consider the Taylor series for &lt;i&gt;e&lt;/i&gt;&lt;sup&gt;&lt;var&gt;x&lt;/var&gt;&lt;/sup&gt;, then the ones for &lt;i&gt;e&lt;/i&gt;&lt;sup&gt;−&lt;var&gt;x&lt;/var&gt;&lt;/sup&gt; and &lt;i&gt;e&lt;/i&gt;&lt;sup&gt;&lt;i&gt;i&lt;/i&gt;&lt;var&gt;x&lt;/var&gt;&lt;/sup&gt;. For the second we can rewrite it as cosh(&lt;var&gt;x&lt;/var&gt;)−sinh(&lt;var&gt;x&lt;/var&gt;), and the third as cos(&lt;var&gt;x&lt;/var&gt;)+&lt;i&gt;i&lt;/i&gt;sin(&lt;var&gt;x&lt;/var&gt;). Noting that the hyperbolic sine/cosine's Taylor series is actually all positive, being complementary terms to that of the exponential function, sine and cosine could similarly be split into two functions each. This presents a generalisation. (&lt;var&gt;n&lt;/var&gt; denotes an arbitrary positive integer, &lt;var&gt;m&lt;/var&gt; denotes an integer between 0 and &lt;var&gt;n&lt;/var&gt;−1, inclusive. &lt;var&gt;m&lt;/var&gt; and &lt;var&gt;n&lt;/var&gt; may also be called the residue and modulus respectively.)&lt;br /&gt;&lt;br /&gt;&lt;img src="http://lh6.ggpht.com/_Pl0QCBqQmf8/SuMR-PG6VOI/AAAAAAAAAbY/k9E4y2nUhN4/89d6690147c2979c21f271130e54468b.png" alt="\exp_{m,n}(x)=\sum_{k=0}^\infty\frac{x^{kn+m}}{(kn+m)!}" /&gt;&lt;br /&gt;&lt;br /&gt;With that, sin = exp&lt;sub&gt;1,4&lt;/sub&gt; − exp&lt;sub&gt;3,4&lt;/sub&gt;, cos = exp&lt;sub&gt;0,4&lt;/sub&gt; − exp&lt;sub&gt;2,4&lt;/sub&gt;, sinh = exp&lt;sub&gt;1,2&lt;/sub&gt;, cosh = exp&lt;sub&gt;0,2&lt;/sub&gt;. The original motivation for this was to have a way of easily expressing &lt;i&gt;e&lt;/i&gt;&lt;sup&gt;δ&lt;var&gt;x&lt;/var&gt;&lt;/sup&gt; where δ is an arbitrary integer root of unity. We just saw uses for them where δ&lt;sup&gt;4&lt;/sup&gt;=1. Unfortunately, not having a closed form for these in general we can't quite use them for anything. Now letting δ here be a complex cube root of 1, we have some kind of a closed form for exp&lt;sub&gt;&lt;var&gt;m&lt;/var&gt;,3&lt;/sub&gt;, except not really. Using the obvious result, we have&lt;br /&gt;&lt;br /&gt;&lt;img src="http://lh4.ggpht.com/_Pl0QCBqQmf8/SuMVAXCn_5I/AAAAAAAAAbc/Y9eEm5hONPo/1264e2d821065de8063395b23fb07faf.png" alt="\frac2{\sqrt3}\sin\frac{\sqrt3}2x=e^{x/2}\left(\exp_{1,3}(x)-\exp_{2,3}(x)\right)" /&gt;&lt;br /&gt;&lt;br /&gt;which is as far as we go. We don't have any results on exp&lt;sub&gt;0,3&lt;/sub&gt;, nor any individual results on exp&lt;sub&gt;1,3&lt;/sub&gt; or exp&lt;sub&gt;2,3&lt;/sub&gt;, so this trivial one is kind of moot. A question: can exp&lt;sub&gt;m,&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt; be expressed in terms of real transformations (i.e. without invoking complex numbers) on generalised exponentials with smaller modulus for sufficiently large &lt;var&gt;n&lt;/var&gt;?&lt;br /&gt;&lt;br /&gt;Update: a quick search on arXiv gave one somewhat related paper, except it focuses on a different (and somewhat more trivial) generalisation of the exponential, trigonometric and hyperbolic functions.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-3246268185803321739?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/3246268185803321739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=3246268185803321739' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/3246268185803321739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/3246268185803321739'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/10/generalised-exponential-function.html' title='A generalised exponential function'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_Pl0QCBqQmf8/SuMR-PG6VOI/AAAAAAAAAbY/k9E4y2nUhN4/s72-c/89d6690147c2979c21f271130e54468b.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-2402185271385843378</id><published>2009-10-19T12:56:00.003+08:00</published><updated>2009-10-20T15:11:14.029+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='isqrt'/><title type='text'>Regarding the integer square root</title><content type='html'>For notational convenience I'll follow the notation used in Wikipedia in the article &lt;a href="http://en.wikipedia.org/wiki/Integer_square_root"&gt;"Integer square root"&lt;/a&gt;. In fact, I shall offer a very trivial proof of one of the claims in the article (which is currently with a "[citation needed]").&lt;br /&gt;&lt;br /&gt;The claim is that, given the approximations &lt;var&gt;x&lt;/var&gt;&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;&lt;/sub&gt; and &lt;var&gt;x&lt;/var&gt;&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sub&gt; generated with the Babylonian method to √&lt;span style="text-decoration: overline;"&gt;&lt;var&gt;n&lt;/var&gt;&lt;/span&gt; whereby &lt;var&gt;x&lt;/var&gt;&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;&lt;/sub&gt;−&lt;var&gt;x&lt;/var&gt;&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sub&gt;&amp;lt;1, ⌊&lt;var&gt;x&lt;/var&gt;&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sub&gt;⌋=⌊√&lt;span style="text-decoration: overline;"&gt;&lt;var&gt;n&lt;/var&gt;&lt;/span&gt;⌋. First, a preliminary result (which is easily demonstrated). With ε being the relative error of &lt;var&gt;x&lt;/var&gt; to √&lt;span style="text-decoration: overline;"&gt;&lt;var&gt;k&lt;/var&gt;&lt;/span&gt;, we have that ε&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;+1&lt;/sub&gt;=ε&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;&lt;/sub&gt;&lt;sup&gt;2&lt;/sup&gt;/(2(1+ε&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;&lt;/sub&gt;)), provided that ε&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;&lt;/sub&gt; is positive. (This is easily checked.) Completing the square, we get (ε&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;&lt;/sub&gt;−ε&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sub&gt;)&lt;sup&gt;2&lt;/sup&gt;=ε&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sub&gt;&lt;sup&gt;2&lt;/sup&gt;+2ε&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sub&gt;=(ε&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sub&gt;+1)&lt;sup&gt;2&lt;/sup&gt;−1. Using the inequality &lt;var&gt;x&lt;/var&gt;&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;&lt;/sub&gt;−&lt;var&gt;x&lt;/var&gt;&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sub&gt;&amp;lt;1, we get (⁠ε&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sub&gt;+1)&lt;sup&gt;2&lt;/sup&gt;&amp;lt;1+1/&lt;var&gt;n&lt;/var&gt;. Taking square root, ε&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sub&gt;&amp;lt;√&lt;span style="text-decoration: overline;"&gt;1+1/&lt;var&gt;n&lt;/var&gt;&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;The rest of the proof goes by contradiction. Suppose that ⌊&lt;var&gt;x&lt;/var&gt;&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sub&gt;⌋&amp;gt;⌊√&lt;span style="text-decoration: overline;"&gt;&lt;var&gt;n&lt;/var&gt;&lt;/span&gt;⌋. Then ε&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sub&gt;≥&lt;var&gt;n&lt;/var&gt;&lt;sup&gt;−½&lt;/sup&gt;(1−(&lt;var&gt;n&lt;/var&gt;&lt;sup&gt;½&lt;/sup&gt;−⌊&lt;var&gt;n&lt;/var&gt;&lt;sup&gt;½&lt;/sup&gt;⌋)). Now we'll need some bounds on ⌊&lt;var&gt;n&lt;/var&gt;&lt;sup&gt;½&lt;/sup&gt;⌋; the obvious (&lt;var&gt;n&lt;/var&gt;&lt;sup&gt;½&lt;/sup&gt;−1,&lt;var&gt;n&lt;/var&gt;&lt;sup&gt;½&lt;/sup&gt;] does not suffice. Given that &lt;var&gt;n&lt;/var&gt; is an integer, ⌊&lt;var&gt;n&lt;/var&gt;&lt;sup&gt;½&lt;/sup&gt;⌋∈[(&lt;var&gt;n&lt;/var&gt;+1)&lt;sup&gt;½&lt;/sup&gt;−1,&lt;var&gt;n&lt;/var&gt;&lt;sup&gt;½&lt;/sup&gt;]. After some simplification, ε&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sub&gt;≥√&lt;span style="text-decoration: overline;"&gt;1+1/&lt;var&gt;n&lt;/var&gt;&lt;/span&gt;, which is a contradiction! The claim is then shown to be true. Given that this is the tightest possible bound on ε&lt;sub&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sub&gt; without any other knowledge of &lt;var&gt;n&lt;/var&gt;, this shows that 1 is the largest possible stopping criterion.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-2402185271385843378?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/2402185271385843378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=2402185271385843378' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2402185271385843378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2402185271385843378'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/10/regarding-integer-square-root.html' title='Regarding the integer square root'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-5212438424687646351</id><published>2009-10-01T19:58:00.005+08:00</published><updated>2009-10-01T20:30:59.391+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='conjecture'/><category scheme='http://www.blogger.com/atom/ns#' term='continued fraction'/><title type='text'>Transcendental multiples</title><content type='html'>I shall now make the conjecture in &lt;a href="http://zznq.blogspot.com/2009/03/irrational-multiples.html"&gt;one of my earlier posts&lt;/a&gt; weaker (applying only to transcendentals and not irrationals in general), and phrased more rigorously.&lt;br /&gt;&lt;br /&gt;Definition of continued fraction convergents: the continued fraction chopped off at some point. For any positive number &lt;var&gt;x&lt;/var&gt;, the continued fraction convergents are denoted as &lt;var&gt;x&lt;/var&gt;&lt;sub&gt;&lt;var&gt;i&lt;/var&gt;&lt;/sub&gt; for &lt;var&gt;i&lt;/var&gt; in ℕ with &lt;var&gt;x&lt;/var&gt;&lt;sub&gt;1&lt;/sub&gt;=⌊&lt;var&gt;x&lt;/var&gt;⌋. (For the purposes of stating this conjecture the edge case of &lt;var&gt;x&lt;/var&gt; being rational and thus having a finite continued fraction is impossible and so this case is ignored here.)&lt;br /&gt;&lt;br /&gt;Conjecture: Given a transcendental number &lt;var&gt;x&lt;/var&gt; and a positive rational number &lt;var&gt;q&lt;/var&gt;, the sequences &lt;var&gt;x&lt;/var&gt;&lt;sub&gt;&lt;var&gt;i&lt;/var&gt;&lt;/sub&gt; and (&lt;var&gt;q&lt;/var&gt;&lt;var&gt;x&lt;/var&gt;)&lt;sub&gt;&lt;var&gt;i&lt;/var&gt;&lt;/sub&gt;/&lt;var&gt;q&lt;/var&gt; will agree on infinitely many terms. More strongly, the number &lt;var&gt;N&lt;/var&gt; of terms in (&lt;var&gt;q&lt;/var&gt;&lt;var&gt;x&lt;/var&gt;)&lt;sub&gt;&lt;var&gt;i&lt;/var&gt;&lt;/sub&gt;/&lt;var&gt;q&lt;/var&gt; that also appear in &lt;var&gt;x&lt;/var&gt;&lt;sub&gt;&lt;var&gt;i&lt;/var&gt;&lt;/sub&gt; for &lt;var&gt;i&lt;/var&gt; in the range 1 to &lt;var&gt;n&lt;/var&gt; exceeds &lt;var&gt;K&lt;/var&gt;&lt;var&gt;n&lt;/var&gt; for some positive number &lt;var&gt;K&lt;/var&gt; for sufficiently large &lt;var&gt;n&lt;/var&gt;. Stronger yet, that this value of &lt;var&gt;K&lt;/var&gt; is 1 for almost all (transcendental) values of &lt;var&gt;x&lt;/var&gt;.&lt;br /&gt;&lt;br /&gt;Note that the conjecture could be weakened to just allowing &lt;var&gt;q&lt;/var&gt; to be a positive integer; this formulation turns out to be equivalent by a simple argument. Also note that the first one says that &lt;var&gt;N&lt;/var&gt;=O(&lt;var&gt;n&lt;/var&gt;), the second that &lt;var&gt;N&lt;/var&gt;=Θ(&lt;var&gt;n&lt;/var&gt;), the third that &lt;var&gt;N&lt;/var&gt;~&lt;var&gt;n&lt;/var&gt;. Note that if &lt;var&gt;x&lt;/var&gt; is allowed to be a &lt;a href="http://en.wikipedia.org/wiki/Quadratic_irrational"&gt;quadratic irrational&lt;/a&gt;, then &lt;var&gt;K&lt;/var&gt; might not be 1; the earlier post I mentioned has an example (involving φ and 2φ/3).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-5212438424687646351?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/5212438424687646351/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=5212438424687646351' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5212438424687646351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5212438424687646351'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/10/transcendental-multiples.html' title='Transcendental multiples'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-375248723394179303</id><published>2009-09-30T01:55:00.006+08:00</published><updated>2009-09-30T02:36:41.354+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='computation'/><category scheme='http://www.blogger.com/atom/ns#' term='dirichlet eta function'/><title type='text'>Calculating η (again)</title><content type='html'>These few days I've been thinking about how to calculate values of the η function efficiently on my calculator so that only the last 4 or so significant figures are off. This is, as I've mentioned in an earlier post, easily attained when |&lt;var&gt;s&lt;/var&gt;−1| is within a circle of radius 1.5 centred at the origin, by using the Laurent series of ζ and just 12 of the Stieltjes constants, for Re(&lt;var&gt;s&lt;/var&gt;)&amp;gt;4 by taking one step of the Euler transform (note that the Euler transform itself is the limit when infinitely many steps are taken), and adding around 50 terms, which is actually quite fast. This leaves huge gaps though. The rest of the domain of the function is calculated by use of a full Euler transform, which is unfortunately very slow. I think it's the way I implemented it, but regardless, it's still quite slow. The worst part is that even though η doesn't converge too slowly on (2.5,4), it converges too fast for the Euler transform to converge fast.&lt;br /&gt;&lt;br /&gt;What a headache. For now, if the Euler transform has to be used, and Re(&lt;var&gt;s&lt;/var&gt;)&amp;gt;0, I'm adding 20 terms together before using the Euler transform on the rest of the terms; this doesn't help much, but it's still a nice improvement. But, we can do better! We'll need to notice a few things. First, the one-step transform on the η series causes η(&lt;var&gt;s&lt;/var&gt;) to converge at roughly the same speed as η(&lt;var&gt;s&lt;/var&gt;+1) (but slightly slower in that the hidden constant of the error term has a larger value), so by taking a 7-step transform we can make η(&lt;var&gt;s&lt;/var&gt;) converge like η(&lt;var&gt;s&lt;/var&gt;+7), which allows sufficiently fast convergence over Re(&lt;var&gt;s&lt;/var&gt;) in [0,4]. Of course, the extra steps aren't free; as mentioned in brackets above, they will converge a few digits behind η(&lt;var&gt;s&lt;/var&gt;+7), and it requires computation of 7 extra terms. Then again, if fifty terms can be done quite fast, seven should be no problem.&lt;br /&gt;&lt;br /&gt;Moreover, by using a 7-step transform instead of a 1-step transform for Re(&lt;var&gt;s&lt;/var&gt;)&amp;gt;0, the convergence should be significantly improved even outside the original intended range of [2.5,4]. I'll try these out when I recharge my AAA batteries.&lt;br /&gt;&lt;br /&gt;PS: While checking the value of η(2) = π&lt;sup&gt;2&lt;/sup&gt;/12 with Google, I found &lt;a href="http://www.jimloy.com/geometry/pi.htm"&gt;a pretty "interesting" site&lt;/a&gt;. It's actually quite lame and indicates that the author uses a calculation system with insufficient precision, and can't think for shit's sake. Also seems like he doesn't know about continued fractions, the integral test. And like a cheapskate, he includes "Grampa's Series" attributed to himself in addendum #12. Yeah, that Grampa's Series from the Y E O Adrian book (which has an average rating of 3 on Amazon, right in the middle of the scale). Hold on, I'm not supposed to be ranting about stuff in zznq. Oh well then.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-375248723394179303?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/375248723394179303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=375248723394179303' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/375248723394179303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/375248723394179303'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/09/calculating-again.html' title='Calculating η (again)'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-3017896007996949281</id><published>2009-09-27T13:34:00.006+08:00</published><updated>2009-09-27T15:12:15.220+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='riemann hypothesis'/><title type='text'>Riemann hypothesis simplified</title><content type='html'>Most of my target audience already know what the RH is. But, just for fun, I shall attempt to describe the Riemann hypothesis in a manner that is easily understandable. First, a definition of the complex numbers. I'm going to skip this part; most books on popular mathematics involving complex numbers would probably do a much better job of explaining them than I can. Also, &lt;a href="http://en.wikipedia.org/wiki/Complex_number"&gt;the Wikipedia article&lt;/a&gt; is quite helpful, but is a bit heavy for the not-so-inclined. Now about complex exponentiation. The core of the Riemann hypothesis in the original formulation involves real numbers taken to complex numbers. Now, hold on, how can a complex power be taken? We'll now have to define exponentiation. Again, &lt;a href="http://en.wikipedia.org/wiki/Exponentiation#Complex_powers_of_positive_real_numbers"&gt;check Wikipedia&lt;/a&gt;. I'm not going to detract from the real content here.&lt;br /&gt;&lt;br /&gt;Now on to the real stuff. We'll define the Dirichlet eta function η, but restricted to the input having positive real part&lt;var&gt;&lt;/var&gt;&lt;var&gt;&lt;/var&gt;&lt;var&gt;&lt;/var&gt;. The most convenient way to do this is, of course, to use the series expansion. It's equation 2 in &lt;a href="http://4.bp.blogspot.com/_pA5P9BzH5uM/SdYIfXMWqKI/AAAAAAAAAAk/pCJivNRaP18/eta200904-p1.png"&gt;this scan&lt;/a&gt;. (The rest of the scanned page is irrelevant to current discussion.) So anyway. The infinite sum converges exactly when the real part of the argument is greater than zero. (When the real part is exactly zero (and the imaginary part is not), summing the terms is like performing a two-dimensional random walk. Definitely not convergent.) There are infinitely many values of &lt;var&gt;s&lt;/var&gt; for which η(&lt;var&gt;s&lt;/var&gt;)=0; there are the so-called trivial values that occur regularly on the line Re(&lt;var&gt;z&lt;/var&gt;)=1, and the so-called nontrivial zeroes that are not on that line. Basically what the RH asserts is that all these nontrivial zeroes happen to be on another straight line, Re(&lt;var&gt;z&lt;/var&gt;)=½. That's all there is to the Riemann hypothesis in a more classic explanation.&lt;br /&gt;&lt;br /&gt;I do not deny that there are many other ways to state the Riemann hypothesis; some of them are significantly simpler (to understand, not necessarily solve), but they don't quite capture the essence of the original and how it relates to prime numbers. And I must also note that this isn't the original either. The original involves complex (in both senses) calculus, and is quite difficult to comprehend. The formulation I presented here is easily shown to be equivalent though. Of course, if the RH turns out to be false, it's all a sham, but at least we have another way of looking at things.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-3017896007996949281?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/3017896007996949281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=3017896007996949281' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/3017896007996949281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/3017896007996949281'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/09/riemann-hypothesis-simplified.html' title='Riemann hypothesis simplified'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-1618371830486160778</id><published>2009-09-22T21:37:00.007+08:00</published><updated>2009-09-24T07:33:41.810+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='rsa'/><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Quick description of the RSA encryption algorithm</title><content type='html'>Mathematical algorithms typically operate on numbers, integers specifically, and in the case of encryption larger numbers mean larger possible security. Breaking up strings into numbers isn't particularly hard, and is pretty obvious once you have the right insight. RSA works on the difficulty on factoring large integers. Note that this is not necessarily the theoretical security of RSA; it has not been proven that breaking RSA is as hard as factoring integers, although for now that's the easiest method.&lt;br /&gt;&lt;br /&gt;&lt;var&gt;a&lt;/var&gt;&lt;sup&gt;φ(&lt;var&gt;n&lt;/var&gt;)&lt;/sup&gt; ≡ 1 (mod &lt;var&gt;n&lt;/var&gt;), for all &lt;var&gt;a&lt;/var&gt; such that gcd(&lt;var&gt;a&lt;/var&gt;,&lt;var&gt;n&lt;/var&gt;) = 1&lt;br /&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Euler%27s_theorem"&gt;Euler's theorem&lt;/a&gt; will be important here. In particular, for the RSA algorithm, we'll take &lt;var&gt;n&lt;/var&gt; to be a product of two large primes &lt;var&gt;p&lt;/var&gt; and &lt;var&gt;q&lt;/var&gt;. Note that proving that arbitrary large numbers are primes is quite difficult (even though this is in &lt;abbr title="polynomial"&gt;P&lt;/abbr&gt; time), so it's allowed for the numbers to be probable primes. The number &lt;var&gt;n&lt;/var&gt; is public, while &lt;var&gt;p&lt;/var&gt; and &lt;var&gt;q&lt;/var&gt; are kept secret. With that in place, note that φ(&lt;var&gt;n&lt;/var&gt;)=(&lt;var&gt;p&lt;/var&gt;−1)(&lt;var&gt;q&lt;/var&gt;−1). The encryption key is then a number &lt;var&gt;e&lt;/var&gt; coprime to φ(&lt;var&gt;n&lt;/var&gt;), or in other words, coprime to both (&lt;var&gt;p&lt;/var&gt;−1) and (&lt;var&gt;q&lt;/var&gt;−1).&lt;br /&gt;&lt;br /&gt;So, how is encryption done? Basically, given a plaintext number &lt;var&gt;P&lt;/var&gt; (note caps) in &lt;a href="http://en.wikipedia.org/wiki/Modular_arithmetic#The_ring_of_congruence_classes"&gt;ℤ/&lt;var&gt;n&lt;/var&gt;ℤ&lt;/a&gt;, take &lt;var&gt;C&lt;/var&gt;≡&lt;var&gt;P&lt;/var&gt;&lt;sup&gt;&lt;var&gt;e&lt;/var&gt;&lt;/sup&gt; (mod &lt;var&gt;n&lt;/var&gt;). These sequences of numbers are then sent as a message. Notice that 0 and 1 are fixed points of the exponentiation function; by the fact that &lt;var&gt;e&lt;/var&gt; was chosen to be coprime to φ(&lt;var&gt;n&lt;/var&gt;), these are the only fixed points. The algorithm could be strengthened slightly by using values in the range 2 to &lt;var&gt;n&lt;/var&gt;−1 instead of from 0 to &lt;var&gt;n&lt;/var&gt;−1, which avoids these pathological cases where the decryption is trivial. Notice that the encryption key &lt;var&gt;e&lt;/var&gt; is &lt;em&gt;public&lt;/em&gt;; anybody who wants to send a message to you encrypts it using your encryption key.&lt;br /&gt;&lt;br /&gt;Now that encryption is covered, how is decryption done? In other words, how do you take the &lt;var&gt;e&lt;/var&gt;&lt;sup&gt;th&lt;/sup&gt; root of the number &lt;var&gt;C&lt;/var&gt;? The answer lies in Euler's theorem, by finding a number &lt;var&gt;d&lt;/var&gt; such that &lt;var&gt;d&lt;/var&gt;·&lt;var&gt;e&lt;/var&gt; ≡ 1 (mod φ(&lt;var&gt;n&lt;/var&gt;)). There are simple algorithms to calculate &lt;var&gt;d&lt;/var&gt; from &lt;var&gt;e&lt;/var&gt; and φ(&lt;var&gt;n&lt;/var&gt;) quite quickly, under the assumption that &lt;var&gt;e&lt;/var&gt; is coprime to φ(&lt;var&gt;n&lt;/var&gt;). Utilising this with Euler's theorem, and some basic arithmetic, &lt;var&gt;C&lt;/var&gt;&lt;sup&gt;&lt;var&gt;d&lt;/var&gt;&lt;/sup&gt; = &lt;var&gt;P&lt;/var&gt;&lt;sup&gt;&lt;var&gt;d&lt;/var&gt;·&lt;var&gt;e&lt;/var&gt;&lt;/sup&gt; = &lt;var&gt;P&lt;/var&gt;&lt;sup&gt;&lt;var&gt;k&lt;/var&gt;·φ(&lt;var&gt;n&lt;/var&gt;)+1&lt;/sup&gt; for some value of &lt;var&gt;k&lt;/var&gt;. Factoring the &lt;var&gt;P&lt;/var&gt; out, &lt;var&gt;C&lt;/var&gt;&lt;sup&gt;&lt;var&gt;d&lt;/var&gt;&lt;/sup&gt; = &lt;var&gt;P&lt;/var&gt;·&lt;var&gt;P&lt;/var&gt;&lt;sup&gt;&lt;var&gt;k&lt;/var&gt;·φ(&lt;var&gt;n&lt;/var&gt;)&lt;/sup&gt; ≡ &lt;var&gt;P&lt;/var&gt;·1&lt;sup&gt;&lt;var&gt;k&lt;/var&gt;&lt;/sup&gt; = &lt;var&gt;P&lt;/var&gt; (mod &lt;var&gt;n&lt;/var&gt;). Note that while for &lt;var&gt;P&lt;/var&gt; = 0, even though Euler's theorem doesn't apply, the result is still correct, since 0 is a fixed point of the power function, and &lt;var&gt;P&lt;/var&gt; = &lt;var&gt;C&lt;/var&gt; = 0.&lt;br /&gt;&lt;br /&gt;What provides the security then? Couldn't an attacker just follow the same procedure to get the value of &lt;var&gt;d&lt;/var&gt;? Yeah, attackers can't. Notice that the only known way to efficiently calculate &lt;var&gt;d&lt;/var&gt; is through the two prime factors of &lt;var&gt;n&lt;/var&gt;, &lt;var&gt;p&lt;/var&gt; and &lt;var&gt;q&lt;/var&gt;, which are not public. Hence, for now at least, to compute &lt;var&gt;d&lt;/var&gt; requires factoring the large integer &lt;var&gt;n&lt;/var&gt;, which is, again for now, difficult to do quickly. Technical stuff: factoring numbers is probably hard (not in polynomial time), but the results of the factorisation can be checked relatively quickly (in polynomial time), so factoring numbers is NP-hard. This effectively hinges on the P not being equivalent to NP, which is (the negated version of) one of the Clay Millennium problems.&lt;br /&gt;&lt;br /&gt;Update: For some weird reason I neglected the fact that &lt;var&gt;n&lt;/var&gt; has two non-trivial factors. Even taking that into account, according to Wikipedia (and some common sense), by using the Chinese remainder theorem, the above equation still holds. Of course, it's not likely that a factor of &lt;var&gt;n&lt;/var&gt; is encountered, and if it were it could be used to factor &lt;var&gt;n&lt;/var&gt;. The only number not coprime to &lt;var&gt;n&lt;/var&gt; that might appear with any high probability is 0, which should not even be used. Also, Wikipedia has more info about RSA. That my working was so similar to the version in Wikipedia was completely coincidental; I wasn't referring to the article while I was typing this post, and I had not read that article before writing this post.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-1618371830486160778?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/1618371830486160778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=1618371830486160778' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/1618371830486160778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/1618371830486160778'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/09/quick-description-of-rsa-encryption.html' title='Quick description of the RSA encryption algorithm'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-8100804247835157029</id><published>2009-09-07T16:48:00.005+08:00</published><updated>2009-09-07T17:21:35.168+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='factorial'/><title type='text'>Continuous factorial</title><content type='html'>I was thinking for a while. Notice that the factorial function is quite discrete in nature, although the analytic counterpart (the gamma function) isn't. The reason I say it's discrete is because, in effect, it multiplies integers going up. Think the triangle numbers, but multiplying instead of adding. If we smooth out the process and ignore some terms, we get the function mapping to half the square numbers instead of the triangle numbers. This is integration.&lt;br /&gt;&lt;br /&gt;We could in fact apply the same idea to the factorial function. Basically, instead of writing factorial as a product, write it as an exponentiated sum: (using the incredibly convenient summation operator I introduced in &lt;a href="http://zznq.blogspot.com/2009/07/summing-polynomials-multiplied-by.html"&gt;Summing polynomials multiplied by an alternating factor&lt;/a&gt;)&lt;br /&gt;&lt;img src="http://lh4.ggpht.com/_pA5P9BzH5uM/SqTKvuq9xRI/AAAAAAAAAE0/TdJIzbRYuKs/0f10cfafee578d9b0aab75aed5356d47.png" alt="n!=e^{\left(\sum\ln\right)(n)}" /&gt;&lt;br /&gt;&lt;br /&gt;So now, instead of using summation, use integration, and get (using ? instead of !)&lt;br /&gt;&lt;img src="http://lh3.ggpht.com/_pA5P9BzH5uM/SqTMAoOkCDI/AAAAAAAAAFU/wJ7tRvBKRpU/3aadc013a4f44faf993be1dd4dfe733d.png" alt="n?=\left(\frac n e\right)^n" /&gt;&lt;br /&gt;after some simplification. Note that for the lower limit of integration use 0, since 0 is more convenient than 1 here.&lt;br /&gt;&lt;br /&gt;Just a random idea; note that this function can be expressed in terms of (a finite number of) the elementary functions, unlike Γ (or Π if you don't like Legendre), which requires an integral. Also note the similarity with Stirling's approximation formula.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-8100804247835157029?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/8100804247835157029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=8100804247835157029' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8100804247835157029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8100804247835157029'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/09/continuous-factorial.html' title='Continuous factorial'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_pA5P9BzH5uM/SqTKvuq9xRI/AAAAAAAAAE0/TdJIzbRYuKs/s72-c/0f10cfafee578d9b0aab75aed5356d47.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-8222588157180141858</id><published>2009-09-06T13:15:00.001+08:00</published><updated>2009-09-06T16:02:40.680+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>Proof of the PNT ((not) coming soon)</title><content type='html'>Shaun Lee had provided &lt;a href='http://gort.wordpress.com/2009/08/21/blorph-blorph/'&gt;a proof outline&lt;/a&gt; of the PNT (as you should know by now) around 2 weeks ago. There were some serious gaps in the proof, but I'll fix them. In fact, I am now. For now, I've completed the first parts of the proof; also, when I'm done, I'm scanning it, because doing it with TeX is just too inconvenient. The proof is mostly basic calculus and algebra. While the use of calculus does disqualify the proof for counting as elementary, it's still quite easy to follow. It's probably also the simplest possible proof of the PNT using little complex analysis. (The elementary proof by Selberg is quite difficult to follow; there were some times a little bit of basic calculus was used as well, such as to prove the existence of γ, although these statements are provable without calculus, albeit with some difficulty.)&lt;br /&gt;&lt;br /&gt;Update: while thinking of how to make the last part work, it turned out that it assumes that the limit of π(&lt;var&gt;x&lt;/var&gt;)ln(&lt;var&gt;x&lt;/var&gt;)/&lt;var&gt;x&lt;/var&gt; exists as &lt;var&gt;x&lt;/var&gt; tends to infinity; basically what Chebyshev was stuck on 150 years back. Dang.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-8222588157180141858?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/8222588157180141858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=8222588157180141858' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8222588157180141858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8222588157180141858'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/09/proof-of-pnt-coming-soon.html' title='Proof of the PNT ((not) coming soon)'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-2396876923421746404</id><published>2009-09-03T22:41:00.002+08:00</published><updated>2009-10-25T18:25:48.765+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='computation'/><category scheme='http://www.blogger.com/atom/ns#' term='gamma constant'/><category scheme='http://www.blogger.com/atom/ns#' term='harmonic'/><title type='text'>Computation of constants (redux)</title><content type='html'>&lt;img src='http://lh5.ggpht.com/_Pl0QCBqQmf8/Sp_WLGG1gxI/AAAAAAAAATY/z0jyfp1gPxQ/cb9c32155125dd7f7a3c8f7af204cf0c.png' style='width:600px' alt='{H_n\sim\frac{\ln2m}2+\gamma+\frac1{12m}-\frac1{120m^2}+\frac1{630m^3}-\frac1{1680m^4}+\frac1{2310m^5}-\frac{191}{360360m^6}+\cdots}'/&gt;&lt;br /&gt;&lt;br /&gt;… where &lt;var&gt;m&lt;/var&gt;=&lt;var&gt;n&lt;/var&gt;(&lt;var&gt;n&lt;/var&gt;+1)/2. (Ramanujan's expansion of the harmonic series.) It's pretty cool. And from here I shall describe a method by which more digits of γ may be obtained from less in a somewhat iterative manner. Starting from a crude (but reasonable) estimate like 0.57721566, the first correction term (12m)&lt;sup&gt;−1&lt;/sup&gt; may be "deduced", as can the next term (120m&lt;sup&gt;2&lt;/sup&gt;)&lt;sup&gt;−1&lt;/sup&gt; by using 10 terms. This gives the error bound in terms of &lt;var&gt;m&lt;/var&gt;&lt;sup&gt;−3&lt;/sup&gt;, where we assume that the Ramanujan expansion works in integer powers of &lt;var&gt;m&lt;/var&gt; of alternating sign. (It does.) The third term however, can seem like a pain in the behind, depending on whether you use &lt;var&gt;m&lt;/var&gt; or 2&lt;var&gt;m&lt;/var&gt; for calculations. The first time I tried this out I used 2&lt;var&gt;m&lt;/var&gt;; this gives 4/315 as the coefficient, which is not conveniently recognisable. Of course, if using computational aids to do this, the precision should be as high as is sane; round-off errors creep in very fast.&lt;br /&gt;&lt;br /&gt;There are other complications. The most obvious is that the above expansion (like many other useful ones for γ not involving the zeta function) is just an asymptotic expression; take up to that many terms and the error is at most the next (for sufficiently large values), but for a fixed value for &lt;var&gt;n&lt;/var&gt; the terms eventually oscillate and become bigger instead of smaller. Also, the coefficients tend to be non-unit fractions in the long run, and in fact grow arbitrarily large, so continued fractions (or something of that sort) have to be used to solve for them. And also considering that the later terms could have a significant effect on the digits produced by earlier terms (due to large coefficients), arbitrarily large numbers of terms have to be used to get high accuracy.&lt;br /&gt;&lt;br /&gt;Of course, as I hinted above (and in the title) this applies to all asymptotic expansions with alternating sign, although this should be the most useful use case. The only other important alternating asymptotic expansion I know is that for the gamma function (coincidence), where accurate results for integers can be obtained by taking the factorisation by using Legendre's factorial formula (which doesn't seem to have a name attached).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-2396876923421746404?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/2396876923421746404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=2396876923421746404' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2396876923421746404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2396876923421746404'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/09/computation-of-constants-redux.html' title='Computation of constants (redux)'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_Pl0QCBqQmf8/Sp_WLGG1gxI/AAAAAAAAATY/z0jyfp1gPxQ/s72-c/cb9c32155125dd7f7a3c8f7af204cf0c.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-2519305476771759710</id><published>2009-08-30T11:50:00.003+08:00</published><updated>2009-08-30T14:16:40.976+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='interpolation'/><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='computation'/><title type='text'>On polynomial interpolation</title><content type='html'>(Note: functions mentioned by themselves are italicised, but are otherwise not italicised.)&lt;br /&gt;&lt;br /&gt;Suppose you have a function &lt;var&gt;f&lt;/var&gt; defined over a range, where values at some points are known. If supposing that the values f(&lt;var&gt;x&lt;/var&gt;&lt;sub&gt;0&lt;/sub&gt;), f(&lt;var&gt;x&lt;/var&gt;&lt;sub&gt;1&lt;/sub&gt;) and f(&lt;var&gt;x&lt;/var&gt;&lt;sub&gt;2&lt;/sub&gt;) are known for &lt;var&gt;x&lt;/var&gt;&lt;sub&gt;0&lt;/sub&gt;, &lt;var&gt;x&lt;/var&gt;&lt;sub&gt;1&lt;/sub&gt;, &lt;var&gt;x&lt;/var&gt;&lt;sub&gt;2&lt;/sub&gt;, then a quadratic function &lt;var&gt;g&lt;/var&gt; may be used to interpolate that (this is done easily). Taking &lt;var&gt;f&lt;/var&gt;−&lt;var&gt;g&lt;/var&gt;, we now have a function that is known to have three zeros. Factoring that out gives a modified interpolating polynomial that is of degree three less than the original (unknown) interpolating polynomial, and this can be solved more readily. After the modified interpolating polynomial is found, we can add &lt;var&gt;g&lt;/var&gt; to that, to give an interpolating polynomial for the original function &lt;var&gt;f&lt;/var&gt;.&lt;br /&gt;&lt;br /&gt;Of course, the Lagrange form of the interpolating polynomial can be used when the data points are those of &lt;var&gt;x&lt;/var&gt; and f(&lt;var&gt;x&lt;/var&gt;), but this is not always the case. Occasionally the data points can be &lt;var&gt;x&lt;/var&gt; and f′(&lt;var&gt;x&lt;/var&gt;), whereby using the Lagrange form is impossible. In this case huge systems of linear equations have to be solved; although reducing the degree by a constant number doesn't help much, it does make life that bit easier.&lt;br /&gt;&lt;br /&gt;The key downside to this method is that it gives polynomials in a weird form (not that the Lagrange form isn't weird). An example would be a function defined as such: f(0)=f(2/3)=0, f(1/2)=1/2, f(1)=f(1/3)=1, f′(1/3)=f′(2/3)=0. Here I used g(&lt;var&gt;x&lt;/var&gt;) = &lt;var&gt;x&lt;/var&gt; (for the points 0, 1/2 and 1). From there I found that the system is overdetermined (since I was looking for a quintic, and this had 7 givens), and solved it to get the polynomial f(&lt;var&gt;x&lt;/var&gt;)=&lt;var&gt;x&lt;/var&gt;[1−9(&lt;var&gt;x&lt;/var&gt;−1)⁠(2&lt;var&gt;x&lt;/var&gt;−1)(9&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;−9&lt;var&gt;x&lt;/var&gt;+1)]. (Note: I didn't use a CAS for this, and did this all on paper, so it might be wrong.) I haven't bothered to expand it; it should be quite pointless to do so, since this is a demonstration of the generated polynomial.&lt;br /&gt;&lt;br /&gt;I also note that this method could be applied to more than just 3 points; perhaps it could be iterated, a la divide and conquer? Maybe such a procedure will lead to something similar to the Lagrange form.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-2519305476771759710?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/2519305476771759710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=2519305476771759710' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2519305476771759710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2519305476771759710'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/08/on-polynomial-interpolation.html' title='On polynomial interpolation'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-1655018282965191387</id><published>2009-08-27T00:17:00.001+08:00</published><updated>2009-08-27T00:21:47.426+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='riemann zeta function'/><title type='text'>Zeta zero map</title><content type='html'>(Er, not map as in transformation.)&lt;br /&gt;&lt;br /&gt;&lt;a href='http://arxiv.org/abs/math/0309433v1'&gt;X-Ray of Riemann zeta-function&lt;/a&gt; by J. Arias-de-Reyna.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-1655018282965191387?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/1655018282965191387/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=1655018282965191387' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/1655018282965191387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/1655018282965191387'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/08/zeta-zero-map.html' title='Zeta zero map'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-8444896513217358046</id><published>2009-08-25T20:24:00.001+08:00</published><updated>2009-08-27T00:17:11.408+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='trivial'/><title type='text'>One series for one</title><content type='html'>&lt;img src='http://lh4.ggpht.com/_Pl0QCBqQmf8/SpPYmJxMOvI/AAAAAAAAASY/TkLJrIa65TA/f75d7ec71249bf2b4f7766b211655fd7.png' alt='1=\sum_{n=1}^\infty2^n\frac{(n-1)!(n+1)!}{(2n+1)!}'/&gt;&lt;br /&gt;&lt;br /&gt;It's quite trivial actually. I derived it from the Euler-transformed Leibniz series (factorial over odd double factorial), although there should be an easier way to derive it.&lt;br /&gt;&lt;br /&gt;PS: It's not one month since the last post.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-8444896513217358046?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/8444896513217358046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=8444896513217358046' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8444896513217358046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8444896513217358046'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/08/one-series-for-one.html' title='One series for one'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_Pl0QCBqQmf8/SpPYmJxMOvI/AAAAAAAAASY/TkLJrIa65TA/s72-c/f75d7ec71249bf2b4f7766b211655fd7.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-2205104418064612044</id><published>2009-07-31T21:12:00.001+08:00</published><updated>2009-08-01T22:47:04.191+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Coin flips: expected probabilities</title><content type='html'>Say you have a coin that can only land heads or tails. Let the probability of landing heads be &lt;var&gt;p&lt;/var&gt;, then tails 1−&lt;var&gt;p&lt;/var&gt;. By the principle of indifference, every probability is equally likely; i.e. the probability distribution graph shows a value of 1 in the range (0,1). (Note: open interval.)&lt;br /&gt;&lt;br /&gt;So, assuming a fixed number of flips &lt;var&gt;n&lt;/var&gt; is played out, and &lt;var&gt;h&lt;/var&gt; of them heads. Then the expected probability of the coin coming up heads is (&lt;var&gt;h&lt;/var&gt;+1)/(&lt;var&gt;n&lt;/var&gt;+2).&lt;br /&gt;This is actually dependent on how the flips are played out. Supposing that the number of flips is variable and stops on the first head. I haven't figured out what the formula for this is, but it's probably not as simple. There are also other models, such as stopping at heads with a fixed probability. More complicated models are likely to follow &lt;var&gt;h&lt;/var&gt;/&lt;var&gt;n&lt;/var&gt; more closely.&lt;br /&gt;&lt;br /&gt;Of course, the above is interesting. It completely throws out statistical sampling with small samples. For example, supposing that with 100 coin flips all come up heads. This implies that there is a 1 in 102 chance that tails will come out next, although textbook statistical analysis methods give a probability of zero.&lt;br /&gt;&lt;br /&gt;More details: The expected probability is&lt;br /&gt;&lt;img src="http://3.bp.blogspot.com/_Pl0QCBqQmf8/SnRR71C9NHI/AAAAAAAAAQ4/z6Xl7NLGdCU/s400/e4775e79a9992c4bac9578cc07bf0e3e.png" alt="\frac{\int\limits_0^1xf(x)\, dx}{\int\limits_0^1f(x)\, dx}" id="BLOGGER_PHOTO_ID_5365003144398713970" /&gt;,&lt;br /&gt;where &lt;var&gt;f&lt;/var&gt;(&lt;var&gt;x&lt;/var&gt;) is the probability of the event (the specified chain of heads/tails) happening if &lt;var&gt;p&lt;/var&gt; = &lt;var&gt;x&lt;/var&gt;. In the above example, flipping the coin a fixed number of times, this gives&lt;br /&gt;&lt;img src="http://2.bp.blogspot.com/_Pl0QCBqQmf8/SnRTXiadW8I/AAAAAAAAARA/uCbErcYzjRM/s400/d8f50093881d3c0021d46411025ac7ad.png" alt="f(x)=\binom n h x^h(1-x)^{n-h}" id="BLOGGER_PHOTO_ID_5365004719944981442" /&gt;&lt;br /&gt;where the above proposition of E(&lt;var&gt;p&lt;/var&gt;) = (&lt;var&gt;h&lt;/var&gt;+1)/(&lt;var&gt;n&lt;/var&gt;+2) can be verified. Note that the binomial coefficient cancels itself out in this particular case, thus not affecting the result. Specifically, we can treat &lt;var&gt;f&lt;/var&gt; as being &lt;var&gt;f&lt;/var&gt;:&lt;var&gt;x&lt;/var&gt;→&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;&lt;var&gt;h&lt;/var&gt;&lt;/sup&gt;(1−&lt;var&gt;x&lt;/var&gt;)&lt;sup&gt;&lt;var&gt;n&lt;/var&gt;−&lt;var&gt;h&lt;/var&gt;&lt;/sup&gt; without loss of generality. I haven't yet bothered figuring out how the integrals work out in the other scenarios mentioned above.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-2205104418064612044?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/2205104418064612044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=2205104418064612044' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2205104418064612044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2205104418064612044'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/07/coin-flips-expected-probabilities.html' title='Coin flips: expected probabilities'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Pl0QCBqQmf8/SnRR71C9NHI/AAAAAAAAAQ4/z6Xl7NLGdCU/s72-c/e4775e79a9992c4bac9578cc07bf0e3e.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-1215702991331982580</id><published>2009-07-30T23:43:00.000+08:00</published><updated>2009-07-30T23:47:46.305+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>Meta: template update</title><content type='html'>So, because I'm expecting most of you readers to have a horizontal screen resolution of at least 950 pixels, I've tweaked the blog template slightly to expand the main content area by 200 pixels horizontally, which allows for far more convenient reading and enjoyment of mathematical insights! (Best read with an excited tone.)&lt;br /&gt;&lt;br /&gt;PS: Don't expect much content to appear over the next few days.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-1215702991331982580?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/1215702991331982580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=1215702991331982580' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/1215702991331982580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/1215702991331982580'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/07/meta-template-update.html' title='Meta: template update'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-441434134134221693</id><published>2009-07-29T21:15:00.000+08:00</published><updated>2009-07-29T23:22:48.308+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>The mathematical truth</title><content type='html'>This post will be just about mathematics, with quite little actual mathematical content. It's not like I haven't done such a post before, just that I haven't done it on this (or my other) blog before. So here goes. (Warning wall of text.) Mathematics is a rather interesting subject. The key idea about mathematics is abstraction. Let's have an example. Numbers aren't by themselves physical objects, and hence they can't be touched, or anything like that. In this sense, they're abstract entities. Negative numbers were probably harder to comprehend than positive numbers, especially since the positive numbers can be quantified (typically using (delicious) fruits), but the negative numbers… Have you seen a negative fruit before? Most probably not, since they are rather difficult to make. (It's probably the case that the only sane way to interpret the previous sentence is to invoke the matter-antimatter antisymmetry, which isn't even exact but heck.)&lt;br /&gt;&lt;br /&gt;Mathematics can occasionally be hard to comprehend initially, as with negative numbers. I've never had this problem though, since I've been exposed to complex numbers before I turned ten. After the integers we have the non-integers. These, well, aren't too difficult to comprehend, since we could measure non-integral lengths with a ruler (which is, by definition, cool), and most of us have rulers. Even if you don't, the concept of division is easily demonstrated with origami, and I'm sure you would have some paper. Or maybe pie, or pizza. And of course, there's a theorem that is just waiting to be mentioned: the pizza theorem. Given a pizza (modelled by a cylinder) of radius &lt;var&gt;z&lt;/var&gt; and thickness &lt;var&gt;a&lt;/var&gt;, what's the volume? pi &lt;var&gt;z&lt;/var&gt;&lt;var&gt;z&lt;/var&gt; &lt;var&gt;a&lt;/var&gt;! The joke's not mine though. There's really a legitimate pizza theorem though, and it's different from this one. But I digress.&lt;br /&gt;&lt;br /&gt;Then there's the concept of infinity. What would infinity plus one be? No, not that brotherhood. This actually depends on what kind of infinity you're referring to. "Oh, great. So you're telling me there are multiple types of infinity?" Well, yes. And they're different. There are infinite cardinals and infinite ordinals, and they behave differently. I don't quite bother myself with these most of the time though. There's another thing that some people (like ancient Greeks) can't comprehend, and that is that adding up infinitely many numbers can give a finite sum. Maybe you've pondered on this before, maybe not. Consider a line segment that's a meter long. Cut it in half, and halve one of those halves, and so on ad infinitum. What's the total length of the other line segments apart from the smallest ones? Half plus a quarter plus an eighth plus a sixteenth and so on part of a meter, and that turns out to be exactly one meter, since there is no smallest line segment.&lt;br /&gt;&lt;br /&gt;Oh, but that might be trivial stuff. At least relative to what I'll be covering in the next few sentences. The concept of convergence is basically that a sequence of numbers eventually get as close to a specific limit as you want and always stays at least as close from then on. Wikipedia has more about this, and more precise too. So maybe for a while we can ignore convergence. Then we have divergence. Of course, there are infinite sums that well, don't end up at a specific value. There are effectively three ways divergent series can go. One is to head off to infinity, or negative infinity, another is to oscillate around zero with increasing amplitude, so it simultaneously goes off to positive and negative infinity, and the last is to have the value constantly changing without getting arbitrarily close to any specific value and staying as close from then. That was quite a mouthful. For example, 1 − 3 + 5 − 7 + …, which contains all the odd numbers, and alternating between positive and negative, is divergent. The second kind of divergence I specified above, specifically. But so what? We can still meaningfully assign a "sum" to that series, and that'd be zero. There have been rules formulated for manipulating divergent series, such as regularity, linearity and stability. Of course, sometimes even these rules are too strict, and they are ignored where it makes sense to.&lt;br /&gt;&lt;br /&gt;Of course, there's worse than divergent series. They're infinite series that seem like they'd converge, but only if you add the terms up in a specific order. Add them up in a different order, and BAM! You get a different sum! A classic example is the alternating harmonic series, 1/1 − 1/2 + 1/3 − 1/4 + …, which adds up to ln 2 = 0.693147… (slowly, but it works; you'd need around a million terms to get close though). However, taking only the positive terms or only the negative terms give a rather bleak result: they're both divergent (of the first kind mentioned above, going to infinity). What this means is that you can make it any value you want. Say you want it to equal 1. Take as many terms as is necessary to bring the sum above 1 (1/1 + 1/3), then subtract as is necessary to bring the sum below 1 (1/1 + 1/3 − 1/2), then add (1/1 + 1/3 − 1/2 + 1/5), and subtract (1/1 + 1/3 − 1/2 + 1/5 − 1/4), rinse and repeat to give 1/1 + 1/3 − 1/2 + 1/5 − 1/4 + 1/7 + 1/9 − 1/6 + 1/11 + 1/13 − 1/8 + 1/15 + …. Because the individual terms themselves go to zero, this series eventually gets as close to 1 as you want, and stays at least as close as that from some point on. (Note that there is not much pattern in the signs above; this is because a certain number called &lt;i&gt;e&lt;/i&gt; is irrational, i.e. cannot be expressed as a fraction.) So what, 0.693147… is equal to 1, and the whole of mathematics is shattered? Not quite. You see, this kind of series where you must add the terms in the correct order are called conditionally convergent series, and the other garden-variety kind of convergent series are called absolutely convergent series. You can check Wikipedia for more information.&lt;br /&gt;&lt;br /&gt;So in the last three paragraphs we covered infinite sums. We could do with slightly less heavy stuff. That might be logic, and the basis of mathematical rigour. You see, mathematics is an exact science, and mathematical rigour is extremely important. Hundreds of years back there was this guy called Pierre de Fermat, who came up with this "theorem": there is no way two positive integers exponentiated to some integer power can equal another integer exponentiated to the same power, if that power is greater than two. Of course, he didn't fully justify it; he merely proved the case when the power is four. But there are more integers greater than two than that. There's 3, 5, 6, 7, 8, 9, et cetera; he didn't cover those. It took hundreds of years for this theorem to actually be proven, by this guy called Andrew Wiles (along with some other people whose names I've forgotten) in the 1990s. This guy set down the exact reasons why this theorem is always correct. Fermat probably only had a gut feel for it; historical evidence indicates that he probably didn't have a proof for his own theorem. In fact, Wile's proof involves many recent mathematical innovations (and is also very long), and these were most likely not available to Fermat.&lt;br /&gt;&lt;br /&gt;Such "theorems" that were originally derived from intuition are called conjectures. They could be true, we most likely think so, but if someone shows that it's false, we can accept it. There were originally seven conjectures chosen by the Clay Mathematics Institute that had a 1000000 USD prize for each proof as to whether the conjectures were true, and of which one have been solved, although the eccentric who solved it declined the million-dollar prize. This leaves six conjectures, and some of them are highly critical to current mathematical knowledge. The two that I know a bit of are the Riemann hypothesis (which is actually a conjecture as mentioned) and the P=NP conjecture. The former would reveal insights into a certain class of positive integers called the primes (these numbers have exactly two factors: 1 and themselves), the latter would demonstrate that there is a way to write integers as a product of primes efficiently. Of course, these aren't the only results of these conjectures. As things stand, there are many (some say more than 500) mathematical proofs that rely on the truth of the Riemann hypothesis. Mathematicians normally avoid such conditional proofs, and this only shows the confidence mathematicians have in the truth of the Riemann hypothesis. If it happens that the Riemann hypothesis is shown to be false, all of these proofs are automatically invalidated. That's how mathematical proofs work. If any foundation is shattered, the whole building collapses. It could be the case that there is another way to get to the result, and that is the beauty of mathematics. You could fail, but you can always come back up.&lt;br /&gt;&lt;br /&gt;There's a very nice analogy to how proofs work. Say you have two banks of the river, with the opposite bank being quite far away. There are stones on which you can walk (yeah I fail geography, but this is only for illustration) and basically every mathematical theorem is a stone. It's only by stepping on a stone that you can verify that there's really a stone there; if there's not, you get stuck on the previous stone. The idea of a mathematical proof is to verify whether there's a stone at a particular place, and it's only by stepping on earlier verified-to-exist stones can one show that there is a stone there. Conditional proofs assume that there is some stone somewhere that can be used, but if it turns out that that stone doesn't exist, you fall through the gap. Of course, there are subtleties. There are infinitely many theorems, and an arbitrary statement cannot be proven in finite time. And that, of course, was a proven mathematical statement. Interesting that maths can demonstrate what maths cannot do eh?&lt;br /&gt;&lt;br /&gt;There's a lot more I could write about, but I'm tired now. Maybe there'll be a part 2, maybe not. This kind of writing is not what I'm used to anyway.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-441434134134221693?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/441434134134221693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=441434134134221693' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/441434134134221693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/441434134134221693'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/07/mathematical-truth.html' title='The mathematical truth'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-5223756498055217491</id><published>2009-07-28T07:34:00.001+08:00</published><updated>2009-07-29T17:27:02.574+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='harmonic'/><title type='text'>Continuation of the harmonic numbers</title><content type='html'>I'm going to standardise on the notation here. H&lt;sub&gt;1&lt;/sub&gt; = 1, H&lt;sub&gt;2&lt;/sub&gt; = 3/2, and yeah you get it. Cue image!&lt;br /&gt;&lt;img src='http://lh5.ggpht.com/_Pl0QCBqQmf8/SnAVom6606I/AAAAAAAAAQ0/bTdvBPqVQGU/480d5413fbbd5a912e0c53df45e348c9.png' alt='H_n=\sum_{k=1}^n\frac1k=\sum_{k=1}^\infty\binom n k\frac{(-1)^{k-1}}k'/&gt;&lt;br /&gt;&lt;br /&gt;Note that this converges for all non-negative real numbers, and probably also all complex numbers with Re(&lt;var&gt;n&lt;/var&gt;)&amp;gt;0, although I've not verified that yet. This most definitely wouldn't be the first attempt at a continuation of the harmonic numbers, since Euler had done it already, hundreds of years ago. His idea was to convert it into an integral. Cue image again! Nah, just kidding. I'm lazy. Basically he integrated (1−&lt;var&gt;t&lt;/var&gt;&lt;sup&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sup&gt;)/(1−&lt;var&gt;t&lt;/var&gt;) with respect to &lt;var&gt;t&lt;/var&gt; over the range (0,1). In this case the denominator would divide perfectly into the numerator if &lt;var&gt;n&lt;/var&gt; is an integer, giving a geometric progression, which when integrated quite obviously gives the harmonic numbers. This representation is actually quite useless. How about this?&lt;br /&gt;&lt;br /&gt;&lt;img src='http://lh4.ggpht.com/_Pl0QCBqQmf8/Sm5R42Ai1fI/AAAAAAAAAQo/oGmLZ6vOmow/4949204ea004cac0ec925de1733454db.png' alt='H_n=\sum_{k=1}^\infty\left(\frac1k-\frac1{n+k}\right)'/&gt;&lt;br /&gt;&lt;br /&gt;This converges for all complex numbers. It's better! But whatever. It's not as elegant.&lt;br /&gt;&lt;br /&gt;Update: changed the first equation for elegance.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-5223756498055217491?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/5223756498055217491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=5223756498055217491' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5223756498055217491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5223756498055217491'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/07/continuation-of-harmonic-numbers.html' title='Continuation of the harmonic numbers'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_Pl0QCBqQmf8/SnAVom6606I/AAAAAAAAAQ0/bTdvBPqVQGU/s72-c/480d5413fbbd5a912e0c53df45e348c9.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-7830506382424959497</id><published>2009-07-22T00:44:00.002+08:00</published><updated>2009-07-22T01:05:30.425+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>This is not, and neither is that</title><content type='html'>You might be wondering why I take over two hours just to make the previous post. Well, maybe not, but I'll be assuming you are. First, I had already done a huge portion of the algebra aided with a CAS; however, I had made two mistakes. First was, as in the last post, that I substituted 2&lt;sup&gt;&lt;var&gt;k&lt;/var&gt;&lt;/sup&gt; instead of 2&lt;sup&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sup&gt; as the multiplicative factor. This one I found out and rectified &lt;em&gt;after&lt;/em&gt; the post went online, so it didn't quite harm. The second one was one I thought I committed, but did not. I mistakenly thought I forgot to change a variable, when in fact I did, and wasted quite a bit of time on my CAS getting it right, only to figure out it was right all along. (Even taking into account the multiplicative factor error.)&lt;br /&gt;&lt;br /&gt;Well, of course, that wasn't the only reason. Another was markup. As I mentioned in my regular blog, I mostly blog from the HTML editor, and not the WYSIWYG one. The advantage is fine-grained control, the disadvantage is that it's extremely tedious. The above example of "2&lt;sup&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sup&gt;" has &lt;code&gt;2&amp;lt;sup&amp;gt;&amp;lt;var&amp;gt;k&amp;lt;/var&amp;gt;+1&amp;lt;/sup&amp;gt;&lt;/code&gt; as the markup. One particular expression used 136 characters, and roughly the same number of bytes. (If using Firefox, select the blog post and view selection source.) For the minus sign I did not use the hyphen-dash as a replacement. I used the Unicode minus sign: "−" U+2212. Of course, for "π" I similarly used U+03C0, for ellipsis U+2026, summation symbol U+2211 (contrast Σ and ∑, capital sigma and summation respectively), right-pointing arrow "→" U+2192, multiplication sign "×" U+00D7. This takes quite a bit of time, if you don't realise. I hadn't memorised (at that time) the codepoint for the minus sign, so every time I used it I either used &amp;amp;minus; or from copying an earlier mention.&lt;br /&gt;&lt;br /&gt;Yes, I know that's inefficient, but I'm overly pedantic at times. Why not use Symbol for the Greek characters? For one, I'm using the HTML editor; I won't know what letters map to what. For another I don't even have that stupid shitty Microsoft-ish font. For yet another, this isn't semantic markup. For another one that's more from a pragmatic standpoint, using this method saves no space. (Well of course, Greek characters were quite sparse anyway.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-7830506382424959497?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/7830506382424959497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=7830506382424959497' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7830506382424959497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7830506382424959497'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/07/this-is-not-and-neither-is-that.html' title='This is not, and neither is that'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-1499809607468364482</id><published>2009-07-18T19:50:00.012+08:00</published><updated>2009-08-30T02:04:26.537+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='integers'/><title type='text'>Summing polynomials multiplied by an alternating factor</title><content type='html'>Prescript: if you're a pedant, feel free to substitute "we" for "I" below (since I'm the only one here). (I do not have split personalities, unlike Ian.)&lt;br /&gt;&lt;br /&gt;First, to get things straight. We'll define an operator ∑ which is applied to a function that is defined on the positive integers, with&lt;br /&gt;&lt;img src="http://2.bp.blogspot.com/_Pl0QCBqQmf8/SmG7xWlFjII/AAAAAAAAAPw/Bl76KJxjxoU/s400/12fc7d84a3e71ba4b9a02185926463a7.png" alt="\left(\sum f\right)(n)=\sum_{k=1}^n f(k)" id="BLOGGER_PHOTO_ID_5359771488096717954" /&gt; .&lt;br /&gt;&lt;br /&gt;We won't be covering &lt;a href="http://en.wikipedia.org/wiki/Faulhaber%27s_formula"&gt;Faulhaber's formula&lt;/a&gt; here; doing so would only serve to distract. (We will use it though.) Instead, we'll directly cover the summation. As in the title, we'll have a polynomial &lt;var&gt;p&lt;/var&gt;, with non-zero degree, and a multiplier &lt;var&gt;A&lt;/var&gt;:&lt;var&gt;n&lt;/var&gt;→−cos(π&lt;var&gt;n&lt;/var&gt;). In particular, we'll let &lt;var&gt;p&lt;/var&gt; be a power of it's argument: &lt;var&gt;p&lt;/var&gt;:&lt;var&gt;n&lt;/var&gt;→&lt;var&gt;n&lt;/var&gt;&lt;sup&gt;&lt;var&gt;k&lt;/var&gt;&lt;/sup&gt; for some positive integer &lt;var&gt;k&lt;/var&gt;. (The original assumption of having &lt;var&gt;p&lt;/var&gt; an arbitrary polynomial can be recovered by adding up the powers.)&lt;br /&gt;&lt;br /&gt;With that, we have that ∑&lt;var&gt;p&lt;/var&gt; is another polynomial (of degree &lt;var&gt;k&lt;/var&gt;+1, which can be obtained through Faulhaber's formula), and that [∑(&lt;var&gt;A&lt;/var&gt;×&lt;var&gt;p&lt;/var&gt;)](&lt;var&gt;n&lt;/var&gt;) = [∑&lt;var&gt;p&lt;/var&gt;](&lt;var&gt;n&lt;/var&gt;)−2&lt;sup&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sup&gt;[∑&lt;var&gt;p&lt;/var&gt;](⌊&lt;var&gt;n&lt;/var&gt;/2⌋), when &lt;var&gt;n&lt;/var&gt; is a positive integer. Clearly, neither of these forms will converge as &lt;var&gt;n&lt;/var&gt; tends to infinity. However, we can still proceed from here. (Somewhat.) In particular, when &lt;var&gt;k&lt;/var&gt; = 0 (which we explicitly disallowed earlier) we have Grandi's series (which cannot be summed by the method as described further below).&lt;br /&gt;&lt;br /&gt;How now? Actually, we may note that infinity is simultaneously even and odd (roughly speaking), so ⌊&lt;var&gt;n&lt;/var&gt;/2⌋ (with &lt;var&gt;n&lt;/var&gt; being infinity) is simultaneously &lt;var&gt;n&lt;/var&gt;/2 and (&lt;var&gt;n&lt;/var&gt;−1)/2. (We're sticking with &lt;var&gt;n&lt;/var&gt; being an integer.) We may then let these be applied by the polynomial ∑&lt;var&gt;p&lt;/var&gt;, and equate and solve. As an example, let's have &lt;var&gt;k&lt;/var&gt; = 4. Then the summation ∑&lt;var&gt;p&lt;/var&gt;:&lt;var&gt;n&lt;/var&gt;→&lt;var&gt;n&lt;/var&gt;(&lt;var&gt;n&lt;/var&gt;+1)(2&lt;var&gt;n&lt;/var&gt;+1)(3&lt;var&gt;n&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;+3&lt;var&gt;n&lt;/var&gt;−1)/30 (as may be verified with Faulhaber's formula). Then after some algebra, this gives &lt;var&gt;n&lt;/var&gt; ∈ {0,−1,−φ,φ−1}. (Note that φ is the golden ratio.) Letting the set be applied by ∑(&lt;var&gt;A&lt;/var&gt;×&lt;var&gt;p&lt;/var&gt;) (assuming the 2|&lt;var&gt;n&lt;/var&gt; form; not that it matters since they're equal) gives 0 for all four of these. Therefore, the infinite sum, by some metric, should be 0. (Note that ∑(&lt;var&gt;A&lt;/var&gt;×&lt;var&gt;p&lt;/var&gt;) in this case is ∑(&lt;var&gt;A&lt;/var&gt;×&lt;var&gt;p&lt;/var&gt;):&lt;var&gt;n&lt;/var&gt;→&lt;var&gt;A&lt;/var&gt;(&lt;var&gt;n&lt;/var&gt;)×&lt;var&gt;n&lt;/var&gt;(&lt;var&gt;n&lt;/var&gt;+1)(&lt;var&gt;n&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;+&lt;var&gt;n&lt;/var&gt;−1)/60 .)&lt;br /&gt;&lt;br /&gt;If the above looks familiar, let's recall the Dirichlet eta function, expressed as a summation. (It's the second equation in the Wikipedia article &lt;a href="http://en.wikipedia.org/wiki/Dirichlet_eta_function"&gt;"Dirichlet eta function"&lt;/a&gt;.) If we substitute in a negative integer value for &lt;var&gt;s&lt;/var&gt;, we get exactly what we described here! In fact, since η(−4) = 0, the above example turns out to be correct.&lt;br /&gt;&lt;br /&gt;We suppose that the method as described above would contain among its solutions (if more than one) the actual value as defined by the Dirichlet eta function; however, we have not yet shown mathematically that this is the case. As an aside, let's have another example (a simple one this time), with &lt;var&gt;k&lt;/var&gt; = 1. The partial sums are (starting with index 1) 1, −1, 2, −2, … , leading to a particularly simple expression for the partial sum ∑(&lt;var&gt;A&lt;/var&gt;×&lt;var&gt;p&lt;/var&gt;). In particular, the cases when the argument is even or odd are both linear, intersecting at one point and therefore leaving one solution, and that single solution is η(−1) = 1/4. More information about the particular case η(−1) may be found at the Wikipedia article &lt;a href="http://en.wikipedia.org/wiki/1_%E2%88%92_2_%2B_3_%E2%88%92_4_%2B_%C2%B7_%C2%B7_%C2%B7"&gt;"1 − 2 + 3 − 4 + · · ·"&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Getting back to the issue of summing general polynomials multiplied by &lt;var&gt;A&lt;/var&gt;, the above technique requires modification in order to work. In particular, since &lt;var&gt;p&lt;/var&gt; is no longer necessarily a monomial, the expansion factor 2&lt;sup&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sup&gt; (where &lt;var&gt;k&lt;/var&gt; is the degree of &lt;var&gt;p&lt;/var&gt;) needs to have smaller correction terms. However, a similar idea may be used. Noting that taking ∑(&lt;var&gt;A&lt;/var&gt;×&lt;var&gt;p&lt;/var&gt;) at positive even values provides a polynomial of degree equalling the degree of &lt;var&gt;p&lt;/var&gt;, as does taking it at odd values, although these polynomials may differ, a similar process of equation and solution may be used to obtain an "infinite sum" of sorts.&lt;br /&gt;&lt;br /&gt;PS: This post has the dubious glory of being the post I took longest to write (roughly 134 minutes), on all of my blogs. Runner-ups would be the rant about the web (roughly 60 minutes) and the rant about Safari (roughly 50 minutes).&lt;br /&gt;&lt;br /&gt;Update: I fixed an error (mistakenly using 2&lt;sup&gt;&lt;var&gt;k&lt;/var&gt;&lt;/sup&gt; instead of 2&lt;sup&gt;&lt;var&gt;k&lt;/var&gt;+1&lt;/sup&gt;). This removes some weirdness I couldn't explain. I also added the last paragraph (before the postscript). This makes the total post time far longer. (And taking into account the time I spent way before I wrote this post thinking about a raw form of this method… it'd be very long indeed.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-1499809607468364482?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/1499809607468364482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=1499809607468364482' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/1499809607468364482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/1499809607468364482'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/07/summing-polynomials-multiplied-by.html' title='Summing polynomials multiplied by an alternating factor'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Pl0QCBqQmf8/SmG7xWlFjII/AAAAAAAAAPw/Bl76KJxjxoU/s72-c/12fc7d84a3e71ba4b9a02185926463a7.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-5797880484537310760</id><published>2009-07-04T17:55:00.005+08:00</published><updated>2009-07-04T23:39:28.641+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='smo'/><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>SMO Open (round 2)</title><content type='html'>So, as you may, or may not have gathered, earlier today was the SMO Open special round. I managed to do one question (only ☹), and have since solved another one. (It was already mostly solved then; just that I figured out the last step on my way home.) So here be the questions; first on the Internets! (Note that for question 2 I snipped the definition of a palindromic number.)&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Let &lt;var&gt;O&lt;/var&gt; be the center of the circle inscribed in a rhombus &lt;var&gt;A&lt;/var&gt;&lt;var&gt;B&lt;/var&gt;&lt;var&gt;C&lt;/var&gt;&lt;var&gt;D&lt;/var&gt;. Points &lt;var&gt;E&lt;/var&gt;, &lt;var&gt;F&lt;/var&gt;, &lt;var&gt;G&lt;/var&gt;, &lt;var&gt;H&lt;/var&gt; are chosen on sides &lt;var&gt;A&lt;/var&gt;&lt;var&gt;B&lt;/var&gt;, &lt;var&gt;B&lt;/var&gt;&lt;var&gt;C&lt;/var&gt;, &lt;var&gt;C&lt;/var&gt;&lt;var&gt;D&lt;/var&gt; and &lt;var&gt;D&lt;/var&gt;&lt;var&gt;A&lt;/var&gt; respectively so that &lt;var&gt;E&lt;/var&gt;&lt;var&gt;F&lt;/var&gt; and &lt;var&gt;G&lt;/var&gt;&lt;var&gt;H&lt;/var&gt; are tangent to the inscribed circle. Show that &lt;var&gt;E&lt;/var&gt;&lt;var&gt;H&lt;/var&gt; and &lt;var&gt;F&lt;/var&gt;&lt;var&gt;G&lt;/var&gt; are parallel.&lt;/li&gt;&lt;li&gt;Prove that the arithmetic progression 18, 37, … contains infinitely many palindromic numbers.&lt;/li&gt;&lt;li&gt;For &lt;var&gt;k&lt;/var&gt; a positive integer, define &lt;var&gt;A&lt;/var&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt; for &lt;var&gt;n&lt;/var&gt; = 1, 2, … , by&lt;br /&gt;&lt;img src='http://lh5.ggpht.com/_Pl0QCBqQmf8/Sk91M5na0cI/AAAAAAAAAPQ/4z21z5tvBcM/9e776c93ad054f2cfef98bc329fb06d4.png' alt='A_n=\frac{n A_n+2(n+1)^{2k}}{n+2}, A_1=1'/&gt;&lt;br /&gt;Prove that &lt;var&gt;A&lt;/var&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt; is an integer for all &lt;var&gt;n&lt;/var&gt; ≥ 1, and &lt;var&gt;A&lt;/var&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt; is odd if and only if &lt;var&gt;n&lt;/var&gt; ≡ 1 or 2 (mod 4).&lt;/li&gt;&lt;li&gt;Find the largest constant &lt;var&gt;C&lt;/var&gt; such that&lt;br /&gt;&lt;img src='http://lh3.ggpht.com/_Pl0QCBqQmf8/Sk91NHsb_jI/AAAAAAAAAPY/_WIel4u_sxc/799a2a48a6feb67abeb6726178fdd27b.png' alt='\sum_{i=1}^4\left(x_i+\frac1{x_i}\right)\ge C'/&gt;&lt;br /&gt;for all positive real numbers &lt;var&gt;x&lt;/var&gt;&lt;sub&gt;1&lt;/sub&gt;, … , &lt;var&gt;x&lt;/var&gt;&lt;sub&gt;4&lt;/sub&gt; such that&lt;br /&gt;&lt;img src='http://lh3.ggpht.com/_Pl0QCBqQmf8/Sk91NGWbqfI/AAAAAAAAAPg/RQt5nGVaUrY/63c6c5fc5c9f9ca323a3803faf1d0e80.png' alt='x_1^3+x_3^3+3x_1x_3=x_2+x_4=1'/&gt;&lt;/li&gt;&lt;li&gt;Find all integers &lt;var&gt;x&lt;/var&gt;, &lt;var&gt;y&lt;/var&gt; and &lt;var&gt;z&lt;/var&gt; with 2 ≤ &lt;var&gt;x&lt;/var&gt; ≤ &lt;var&gt;y&lt;/var&gt; ≤ &lt;var&gt;z&lt;/var&gt; such that&lt;br /&gt;&lt;div style="column-count:3;-moz-column-count:3;"&gt;&lt;var&gt;x&lt;/var&gt;&lt;var&gt;y&lt;/var&gt; ≡ 1 (mod &lt;var&gt;z&lt;/var&gt;)&lt;br /&gt;&lt;var&gt;x&lt;/var&gt;&lt;var&gt;z&lt;/var&gt; ≡ 1 (mod &lt;var&gt;y&lt;/var&gt;)&lt;br /&gt;&lt;var&gt;y&lt;/var&gt;&lt;var&gt;z&lt;/var&gt; ≡ 1 (mod &lt;var&gt;x&lt;/var&gt;)&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;The question I managed to do was 2, the one I mostly did was 5. For 2, I used two palindromic numbers 201000 000000 000102 and 320000 000000 000023 to generate a/an (countable) infinity of palindromic numbers congruent to −1 modulo 19. (The former is in residue class 0, latter in class 18.) For 5, I first showed (tried to show actually) that &lt;var&gt;x&lt;/var&gt; = 2 (the missing crucial step), then from there, &lt;var&gt;y&lt;/var&gt; = 3 and &lt;var&gt;z&lt;/var&gt; = 5.&lt;br /&gt;&lt;br /&gt;PS: &lt;del&gt;the "[insert formula here later]" means that it'll take some time for the formulae to appear, because I'm thinking about how to use texvc locally. This postscript will be struckthrough when I'm getting around to it. (Also, hope that Blogger works with image uploading now.)&lt;/del&gt; Fixed, images added; even though Blogger image uploading is still broken.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-5797880484537310760?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/5797880484537310760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=5797880484537310760' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5797880484537310760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5797880484537310760'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/07/smo-open-round-2.html' title='SMO Open (round 2)'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_Pl0QCBqQmf8/Sk91M5na0cI/AAAAAAAAAPQ/4z21z5tvBcM/s72-c/9e776c93ad054f2cfef98bc329fb06d4.png' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-6509531420737960931</id><published>2009-07-01T00:31:00.009+08:00</published><updated>2009-10-02T19:22:15.069+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='riemann zeta function'/><title type='text'>Conditional convergence of the summation expansion of the reciprocal zeta function</title><content type='html'>&lt;img src="http://3.bp.blogspot.com/_Pl0QCBqQmf8/SkrZCz2DtxI/AAAAAAAAAO0/uV1aLvMjwBo/s400/0887afd0281db6dc32d5cfc5707886d1.png" alt="[\zeta(s)]^{-1}=\sum_{n=1}^\infty\frac{\mu(n)}{n^s}" id="BLOGGER_PHOTO_ID_5353329749383165714" /&gt;&lt;br /&gt;&lt;br /&gt;Well, the summation expansion of the reciprocal zeta function (as above) is a bit weird. For example, when &lt;var&gt;s&lt;/var&gt; tends to 1, we have the LHS tending to 0 (which is trivially obtained from the Laurent series for ζ), but as for the RHS… it's a bit weird. When &lt;var&gt;s&lt;/var&gt;=1, the RHS converges, but only conditionally. If you attempt to expand it (without substituting &lt;var&gt;s&lt;/var&gt;=1), you get something like this:&lt;br /&gt;&lt;a href='http://lh4.ggpht.com/_Pl0QCBqQmf8/Sk8NOjMKGFI/AAAAAAAAAPI/pNbUXK7xHLE/96beaef49f4b900464483cafd4ad539d.png'&gt;&lt;img src="http://lh4.ggpht.com/_Pl0QCBqQmf8/Sk8NOjMKGFI/AAAAAAAAAPI/pNbUXK7xHLE/96beaef49f4b900464483cafd4ad539d.png" alt="{1-P(s)+\frac{P(s)^2-P(2s)}2-\frac{P(s)^3-3P(2s)P(s)+3P(3s)}6+\frac{P(s)^4-\cdots}{24}-\frac{P(s)^5-\cdots}{120}+\cdots}" style="width: 600px;" /&gt;&lt;/a&gt;&lt;br /&gt;(Note that I use P to denote the prime zeta function, summing over the primes instead of all natural numbers.) This is interesting, because if you ignore the non-primary terms, you get e&lt;sup&gt;−P(&lt;var&gt;s&lt;/var&gt;)&lt;/sup&gt;, which tends to 0 as &lt;var&gt;s&lt;/var&gt; tends to 1. In other words, this somewhat of a good heuristic, at least when &lt;var&gt;s&lt;/var&gt; is close to 1.&lt;br /&gt;&lt;br /&gt;Note: in above equation ("1−P(s)+…") the P(s) comes from taking one prime number, the P(s)&lt;sup&gt;2&lt;/sup&gt;/2 comes from taking two primes and ignoring the order, P(s)&lt;sup&gt;3&lt;/sup&gt;/6 from taking three primes and ignoring order, et cetera. The other terms come from correction of terms with duplicate primes (eg 1/(2×2)) (and also the &lt;a href="http://en.wikipedia.org/wiki/Inclusion-exclusion_principle"&gt;inclusion-exclusion principle&lt;/a&gt;).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-6509531420737960931?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/6509531420737960931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=6509531420737960931' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6509531420737960931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6509531420737960931'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/07/conditional-convergence-of-summation.html' title='Conditional convergence of the summation expansion of the reciprocal zeta function'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Pl0QCBqQmf8/SkrZCz2DtxI/AAAAAAAAAO0/uV1aLvMjwBo/s72-c/0887afd0281db6dc32d5cfc5707886d1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-8103270459141480565</id><published>2009-06-28T00:35:00.003+08:00</published><updated>2009-07-04T18:30:32.129+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='smo'/><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='trivial'/><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>Just a meta post</title><content type='html'>I realise there was a 31 day break between the previous two posts; I'm sorry about that, but sometimes I just don't think of anything new.&lt;br /&gt;&lt;br /&gt;Occasionally I receive external stimulus. For today, that'd be the SMO Senior section Special round. The most interesting question should probably be question 2, which asks for an ordered pair of positive integers (&lt;var&gt;m&lt;/var&gt;,&lt;var&gt;n&lt;/var&gt;) such that 3 × 2&lt;sup&gt;&lt;var&gt;m&lt;/var&gt;&lt;/sup&gt; + 1 = &lt;var&gt;n&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;. With epic skill, I split the problem into two parts, &lt;var&gt;m&lt;/var&gt; even and &lt;var&gt;m&lt;/var&gt; odd, and solved with continued fractions … almost. I needed the continued fractions for √&lt;span style="text-decoration: overline;"&gt;3&lt;/span&gt; and √&lt;span style="text-decoration: overline;"&gt;3/2&lt;/span&gt; (in retrospect √&lt;span style="text-decoration: overline;"&gt;6&lt;/span&gt; would also have worked), which I evaluated to 7 terms each. The problem now is to find all the convergents that have a denominator that is a power of 2, and I only managed to prove that for √&lt;span style="text-decoration: overline;"&gt;3&lt;/span&gt;, sadly. Of course, my working contained something like &lt;span title="in TeX: a_{p_{2^x}-2}"&gt;&lt;var&gt;a&lt;/var&gt;&lt;sub&gt;&lt;var&gt;p&lt;/var&gt;&lt;sub&gt;2&lt;sup&gt;&lt;var&gt;x&lt;/var&gt;&lt;/sup&gt;&lt;/sub&gt;−2&lt;/sub&gt;&lt;/span&gt;, which was quite hard to read, especially considering I changed it quite a bit in-place, making it rather messy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-8103270459141480565?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/8103270459141480565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=8103270459141480565' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8103270459141480565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8103270459141480565'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/06/just-meta-post.html' title='Just a meta post'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-4029221270614649248</id><published>2009-06-26T23:58:00.007+08:00</published><updated>2009-06-27T00:38:12.811+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Courtesy of Ramanujan</title><content type='html'>&lt;img src="http://1.bp.blogspot.com/_Pl0QCBqQmf8/SkTwSslEoTI/AAAAAAAAANk/ibrZ0gZHzD4/s400/a041b4116ff1de844eb4ea59f3bdfa6f.png" alt="\begin{align}\pi^\prime(x)&amp;amp;=\frac1{x\ln x}\sum_{r=1}^\infty\frac{\mu(r)}r\left(x^{1/r}-1\right)\\&amp;amp;=\frac1{x\ln x}\sum_{r=1}^n\frac{\mu(r)}r\left(x^{1/r}-1\right)+O\left(\frac1{n x}\right)\end{align}" id="BLOGGER_PHOTO_ID_5351666461217956146" /&gt;&lt;br /&gt;&lt;br /&gt;π here refers to the prime counting function, and μ refers to the Möbius function. The first equality was derived by Ramanujan (slightly changed by me for faster (and more predictable) convergence) and the second contains the error term, which is valid when &lt;var&gt;n&lt;/var&gt; = ω(ln &lt;var&gt;x&lt;/var&gt;). (And of course I derived the error term. I don't rip everything off.)&lt;br /&gt;&lt;br /&gt;I really don't get how a step function can be differentiated. And for that matter, evaluating that to 150 terms gave π'(4) ≈ 0.4066596… with the upper bound of the error being a miserable 0.0033333…. My version converges faster, but clearly, it's not quite fast anyway. The Möbius function is quite difficult to handle.&lt;br /&gt;&lt;br /&gt;Note: the original version had &lt;var&gt;x&lt;/var&gt;&lt;sup&gt;1/&lt;var&gt;r&lt;/var&gt;&lt;/sup&gt; instead of &lt;var&gt;x&lt;/var&gt;&lt;sup&gt;1/&lt;var&gt;r&lt;/var&gt;&lt;/sup&gt;−1, which had the benefit of elegance, but converges much slower.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-4029221270614649248?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/4029221270614649248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=4029221270614649248' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4029221270614649248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4029221270614649248'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/06/courtesy-of-ramanujan.html' title='Courtesy of Ramanujan'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Pl0QCBqQmf8/SkTwSslEoTI/AAAAAAAAANk/ibrZ0gZHzD4/s72-c/a041b4116ff1de844eb4ea59f3bdfa6f.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-2043624421258830141</id><published>2009-05-25T21:46:00.008+08:00</published><updated>2009-07-19T14:59:11.853+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='series transform'/><title type='text'>Linear to quadratic</title><content type='html'>&lt;img src="http://3.bp.blogspot.com/_Pl0QCBqQmf8/Si8tYKbNmgI/AAAAAAAAAMY/tp58aFxY0rY/s1600/18bc36a38e4ebb415c3d810c3c4117eb.png" alt="\sum_{n=0}^\infty\frac{\delta(n)}{2^n}=2\sum_{n=0}^\infty\frac1{2^{2^n}+1}" id="BLOGGER_PHOTO_ID_5339765185282623282" /&gt;&lt;br /&gt;Unlike in most previous posts, this equation has no conceivable uses. At least, none that I can think of. Here, as in three posts back, δ refers to the binary digit sum.&lt;br /&gt;&lt;br /&gt;I wasn't actually intending to find a faster converging series; I was really hoping to find a closed form, but I couldn't find one. At least quadratic convergence is comforting.&lt;br /&gt;&lt;br /&gt;Update: &lt;del&gt;the equation is wrong. It should be twice the summation on the right side. I'll try to bother to update the image.&lt;/del&gt; Fixed!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-2043624421258830141?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/2043624421258830141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=2043624421258830141' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2043624421258830141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2043624421258830141'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/05/linear-to-quadratic.html' title='Linear to quadratic'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Pl0QCBqQmf8/Si8tYKbNmgI/AAAAAAAAAMY/tp58aFxY0rY/s72-c/18bc36a38e4ebb415c3d810c3c4117eb.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-2927518809736944448</id><published>2009-05-16T15:55:00.005+08:00</published><updated>2009-05-16T16:39:28.908+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='factorial'/><title type='text'>Central binomial coefficients</title><content type='html'>&lt;img src="http://1.bp.blogspot.com/_pA5P9BzH5uM/Sg52OrUOn1I/AAAAAAAAADI/M0n1zCVHk80/s400/bf2056ed91ecf63ebf9a79e6eda2a2e0.png" alt="\binom{2n}n\lesssim\frac{4^n}\sqrt{n\pi}" id="BLOGGER_PHOTO_ID_5336332602998431570" /&gt;&lt;br /&gt;&lt;br /&gt;That less-than with tilde sign basically means "less than and tends asymptotically to". I'd almost have marked this as trivial, since this inequality is easily obtained with Stirling's approximation formula, but the approximation formula itself is not very easy to prove. It's relatively trivial to get less tight (and not asymptotically equal) bounds, such as a lower bound of 4&lt;sup&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sup&gt;/(2&lt;var&gt;n&lt;/var&gt;+1) (this is used in &lt;a href="http://en.wikipedia.org/wiki/Proof_of_Bertrand%27s_postulate"&gt;a proof of Bertrand's postulate&lt;/a&gt;), and an upper bound of 4&lt;sup&gt;n&lt;/sup&gt;.&lt;br /&gt;&lt;br /&gt;Of course, with a bit of rearrangement, we have an approximation for √&lt;span style="text-decoration: overline;"&gt;&lt;var&gt;n&lt;/var&gt;π&lt;/span&gt;. Admittedly, it's not very good, or useful, but it is interesting. For example, with &lt;var&gt;n&lt;/var&gt;=3, we have √&lt;span style="text-decoration: overline;"&gt;3π&lt;/span&gt;≈64/20=3.2, which is not bad for such a small &lt;var&gt;n&lt;/var&gt;. But here, with just one iteration of the Babylonian method, starting with 3, a much better approximation is obtained, because 3 and π are quite close to each other.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-2927518809736944448?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/2927518809736944448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=2927518809736944448' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2927518809736944448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2927518809736944448'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/05/central-binomial-coefficients.html' title='Central binomial coefficients'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_pA5P9BzH5uM/Sg52OrUOn1I/AAAAAAAAADI/M0n1zCVHk80/s72-c/bf2056ed91ecf63ebf9a79e6eda2a2e0.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-6636573721994193301</id><published>2009-05-12T17:27:00.004+08:00</published><updated>2009-05-12T17:41:51.412+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Log and 3-smooth numbers</title><content type='html'>With the work on sorting algorithms recently, as mentioned on my main blog, I suddenly came up with a strange realisation. First, it's very easy to get the asymptotic formula for the number of 3-smooth numbers under &lt;var&gt;n&lt;/var&gt;, this is about 0.657(log &lt;var&gt;n&lt;/var&gt;)&lt;sup&gt;2&lt;/sup&gt; (iirc). The way I got this was the obvious method of generating 3-smooth numbers by hand: start with powers of two, then 3·2&lt;sup&gt;m&lt;/sup&gt;, then 9·2&lt;sup&gt;m&lt;/sup&gt;, and so on. The result is a "triangle", width log&lt;sub&gt;2&lt;/sub&gt;&lt;var&gt;n&lt;/var&gt; and height log&lt;sub&gt;3&lt;/sub&gt;&lt;var&gt;n&lt;/var&gt;. Multiply and simplify.&lt;br /&gt;&lt;br /&gt;The next realisation I got is that if you try to get the 3-smooth numbers in order from this method, you'll notice that you'll be alternating between two different diagonal lines most of the time. I believe these represent the continued fraction convergents (and possibly semiconvergents) of (log 3)/(log 2). And, time for obvious result that dawned on me during the Chinese exam: the ratio between consecutive 3-smooth numbers tends to 1. This was partially unexpected, because of the low density of 3-smooth numbers.&lt;br /&gt;&lt;br /&gt;Footnote: &lt;a href="http://www.research.att.com/~njas/sequences/A003586"&gt;A003586 3-smooth numbers&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-6636573721994193301?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/6636573721994193301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=6636573721994193301' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6636573721994193301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6636573721994193301'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/05/log-and-3-smooth-numbers.html' title='Log and 3-smooth numbers'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-5609519200001613532</id><published>2009-05-07T17:21:00.004+08:00</published><updated>2009-05-07T17:59:54.151+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='dirichlet eta function'/><title type='text'>Eta and binary digit sum</title><content type='html'>(From Borwein and Borwein 1992 &lt;a href="http://www.cecm.sfu.ca/personal/pborwein/PAPERS/P56.pdf"&gt;"Strange series and high precision fraud"&lt;/a&gt;.)&lt;br /&gt;&lt;br /&gt;&lt;img src="http://1.bp.blogspot.com/_pA5P9BzH5uM/SgKpVSvLlTI/AAAAAAAAACw/_yzZRuCp-kA/s400/7fbc2ab70bb8f9125f62008c52b64fde.png" alt="\sum_{n=1}^\infty\delta(n)\left(\frac1{n^k}-\frac1{(n+1)^k}\right)=\frac{2^k}{2^k-1}\cdot\eta(k)" id="BLOGGER_PHOTO_ID_5333011092032165170" /&gt;&lt;br /&gt;where δ(&lt;var&gt;n&lt;/var&gt;) is the &lt;a href="http://www.research.att.com/~njas/sequences/A000120"&gt;binary digit sum&lt;/a&gt; of &lt;var&gt;n&lt;/var&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-5609519200001613532?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/5609519200001613532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=5609519200001613532' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5609519200001613532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5609519200001613532'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/05/eta-and-binary-digit-sum.html' title='Eta and binary digit sum'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_pA5P9BzH5uM/SgKpVSvLlTI/AAAAAAAAACw/_yzZRuCp-kA/s72-c/7fbc2ab70bb8f9125f62008c52b64fde.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-9222979172556435604</id><published>2009-05-07T15:48:00.003+08:00</published><updated>2009-05-07T15:54:08.976+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>Too Old For This</title><content type='html'>&lt;a href="http://xkcd.com/447/"&gt;&lt;img src="http://2.bp.blogspot.com/_pA5P9BzH5uM/SgKSc3IaNGI/AAAAAAAAACo/6GVgkRVWOcM/s400/too_old_for_this_shit.png" alt="" title="They say if a mathematician doesn't do their great work by age eleven, they never will." /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And I'm fifteen.&lt;br /&gt;&lt;br /&gt;(Image from &lt;a href="http://xkcd.com/"&gt;xkcd&lt;/a&gt;, &lt;a href="http://xkcd.com/447/"&gt;comic 447 "Too Old For This Shit"&lt;/a&gt;. &lt;a href="http://creativecommons.org/licenses/by-nc/2.5/"&gt;CC BY-NC 2.5&lt;/a&gt;.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-9222979172556435604?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/9222979172556435604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=9222979172556435604' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/9222979172556435604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/9222979172556435604'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/05/too-old-for-this.html' title='Too Old For This'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_pA5P9BzH5uM/SgKSc3IaNGI/AAAAAAAAACo/6GVgkRVWOcM/s72-c/too_old_for_this_shit.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-7603814697302707487</id><published>2009-04-29T18:29:00.004+08:00</published><updated>2009-04-29T19:08:33.550+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='cellular automata'/><title type='text'>Irreversible simple 1D cellular automata</title><content type='html'>(Note: simple 1D CA refers to the 1D CA where a new cell is generated from the corresponding old one and the old one's direct neighbours, and where each cell has exactly two states. This gives 2↑2↑3=256 different such CA.)&lt;br /&gt;&lt;br /&gt;Which of the 256 are reversible, and which aren't? For one, the obvious 85 and 170 are reversible, and the obvious 0 and 255 aren't. Rule 45 is not reversible if you allow infinite patterns (which is actually required since 45 is an odd rule), since there are three infinite patterns leading to the all filled cells pattern (all blank and alternating). (This also covers 30 other odd rules, excluding the aforementioned 255.)&lt;br /&gt;&lt;br /&gt;This leaves 221 rules, 126 even and 95 odd. Really encouraging. Yeah.&lt;br /&gt;&lt;br /&gt;As a side note: maybe we should only consider the even rules; the odd ones misbehave, making analysis a bit difficult.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-7603814697302707487?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/7603814697302707487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=7603814697302707487' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7603814697302707487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7603814697302707487'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/04/irreversible-simple-1d-cellular.html' title='Irreversible simple 1D cellular automata'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-4537700915369801499</id><published>2009-04-29T18:24:00.003+08:00</published><updated>2009-04-29T18:29:36.690+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='trivial'/><title type='text'>Permutation period</title><content type='html'>From the depths of my mind: Consider a permutation of a fixed number of objects. Let the period of the permutation be defined as the number of times the permutation needs to be applied to the identity permutation to get back the identity. Then the period is a factor of the total number of permutations possible.&lt;br /&gt;&lt;br /&gt;Yeah, that's trivial after some thought, but it does seem a bit deep at first glance.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-4537700915369801499?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/4537700915369801499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=4537700915369801499' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4537700915369801499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4537700915369801499'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/04/permutation-period.html' title='Permutation period'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-5128438970985938418</id><published>2009-04-25T14:44:00.003+08:00</published><updated>2009-04-25T14:50:19.910+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='random walk'/><title type='text'>2D random walk observation</title><content type='html'>Some years back, when my trigonometry skills were still rather weak, I figured out that the root-mean-square distance of a two-dimensional random walk is the square root of the number of steps taken, if we assume that each step is of length 1. Turns out that my method of derivation is rather similar to &lt;a href="http://mathworld.wolfram.com/RandomWalk2-Dimensional.html"&gt;the one on MathWorld&lt;/a&gt;. (I think I had the benefit of hindsight though.)&lt;br /&gt;&lt;br /&gt;Of course, I haven't figured out what the mean distance is yet.&lt;br /&gt;&lt;br /&gt;PS: the only step that actually requires trigo is the sin&lt;sup&gt;2&lt;/sup&gt; &lt;var&gt;x&lt;/var&gt; + cos&lt;sup&gt;2&lt;/sup&gt; &lt;var&gt;x&lt;/var&gt; = 1 identity.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-5128438970985938418?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/5128438970985938418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=5128438970985938418' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5128438970985938418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5128438970985938418'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/04/2d-random-walk-observation.html' title='2D random walk observation'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-3557611309424257886</id><published>2009-04-22T21:12:00.002+08:00</published><updated>2009-04-22T21:17:05.840+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>Just another meta post</title><content type='html'>I'm reaching a block, not getting any new discoveries. I did recently write a post about mathematics over at my sister's blog though, which you can check for yourself because I'm lazy to link, and I don't want to hyperinflate her page rank. Actually, that post covers an introduction to divergent series, so it's not that trivial.&lt;br /&gt;&lt;br /&gt;Also, I think I'll be writing for the Singapore Mathematical Society essay competition thingy. Or maybe not. I'm not sure. Also, (astronomy) ⊂ (physics), more like applied maths than pure maths. So maybe not. I'm not sure.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-3557611309424257886?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/3557611309424257886/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=3557611309424257886' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/3557611309424257886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/3557611309424257886'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/04/just-another-meta-post.html' title='Just another meta post'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-2832028667438398829</id><published>2009-04-18T09:54:00.006+08:00</published><updated>2009-04-25T15:19:43.465+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Negative half power</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_Pl0QCBqQmf8/SekzH2L8T0I/AAAAAAAAAMI/ETRAHZqMy5A/s1600-h/1c5cbfe2e0a750175bd95821e022d21d.png"&gt;&lt;img src="http://3.bp.blogspot.com/_Pl0QCBqQmf8/SekzH2L8T0I/AAAAAAAAAMI/ETRAHZqMy5A/s400/1c5cbfe2e0a750175bd95821e022d21d.png" alt="(1+a)^{-\frac1 2}=\sum_{n=0}^\infty\frac{(2n-1)!!(-1)^n a^n}{(2n)!!}=\sum_{n=0}^\infty\binom{2n}n\left(-\frac a 4\right)^n" id="BLOGGER_PHOTO_ID_5325844244240027458" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It needs no explanation. It's neat though. I can't believe I didn't simplify it to the rightmost form earlier.&lt;br /&gt;&lt;br /&gt;Anyway, you may verify the results of the previous posts with this easily. Except the one with sublinear convergence. For that one, you also need to prove that it converges at all, which is not difficult, with the help of &lt;a href="http://en.wikipedia.org/wiki/Stirling%27s_approximation"&gt;Stirling's approximation formula&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Well, anyway, too many digressions. The key idea here, as in the previous two posts, is to find a neat and useful formula for √&lt;span style="text-decoration: overline;"&gt;2&lt;/span&gt;. I've already mentioned the possibility of using &lt;var&gt;a&lt;/var&gt;=1/8, and it provides a linear convergence rate of slightly more than 0.9 digits per term. There're much better ones that can be obtained with the other Pell numbers, but they're not very efficient for calculation on &lt;em&gt;binary&lt;/em&gt; machines. So I found that &lt;var&gt;a&lt;/var&gt;=−7×2&lt;sup&gt;-15&lt;/sup&gt; also gives a neat result, with (1+&lt;var&gt;a&lt;/var&gt;)&lt;sup&gt;-½&lt;/sup&gt;=(128/181)√&lt;span style="text-decoration: overline;"&gt;2&lt;/span&gt;, with a convergence rate of slightly more than 11 digits for 3 terms. These formulas allow for calculation without high-precision floats, and can be implemented with just bignums.&lt;br /&gt;&lt;br /&gt;Update: fixed one grammar error lol.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-2832028667438398829?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/2832028667438398829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=2832028667438398829' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2832028667438398829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2832028667438398829'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/04/negative-half-power.html' title='Negative half power'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Pl0QCBqQmf8/SekzH2L8T0I/AAAAAAAAAMI/ETRAHZqMy5A/s72-c/1c5cbfe2e0a750175bd95821e022d21d.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-6286013662822652797</id><published>2009-04-16T19:49:00.005+08:00</published><updated>2009-04-16T20:13:25.906+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Square root of two</title><content type='html'>Er, it turns out that, if you try to use the binomial transform on a binomial series, you just get another one. I realised that. Anyway, I was checking with other values of (1+&lt;var&gt;a&lt;/var&gt;)&lt;sup&gt;-½&lt;/sup&gt;, and it seems that &lt;var&gt;a&lt;/var&gt;=1/8 is a good choice. Coincidentally, the numerator is 9, which is a square, so it factors out. I think I can prove that of all the odd powers of two, 8 is the only one one less than a square.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://3.bp.blogspot.com/_Pl0QCBqQmf8/SecgKiHbQUI/AAAAAAAAAMA/qa2c9nB5FFY/s400/0837b3f9eb31b29239e3df430e76dc82.png" alt="\sqrt2=\frac3 2\sum_{n=0}^\infty\frac{(2n-1)!!}{(2n)!!(-8)^n}" id="BLOGGER_PHOTO_ID_5325260449717633346" /&gt;&lt;br /&gt;&lt;br /&gt;Anyway, this also provides a simple spigot algorithm, similar to those used for BBP-type formulas, but there have been better times. (Note that this does not qualify as a BBP-type formula because it does not have a polynomial numerator and denominator.)&lt;br /&gt;&lt;br /&gt;PS: If you're really desperate to calculate √&lt;span style="text-decoration: overline;"&gt;2&lt;/span&gt;, just use the obvious method: use the Babylonian method to calculate it. It works, and it works well, because it converges quadratically.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-6286013662822652797?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/6286013662822652797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=6286013662822652797' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6286013662822652797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6286013662822652797'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/04/square-root-of-two.html' title='Square root of two'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Pl0QCBqQmf8/SecgKiHbQUI/AAAAAAAAAMA/qa2c9nB5FFY/s72-c/0837b3f9eb31b29239e3df430e76dc82.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-7960180742529140941</id><published>2009-04-15T23:12:00.003+08:00</published><updated>2009-04-15T23:29:36.322+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='trivial'/><title type='text'>Reciprocal of Pythagoras' constant</title><content type='html'>This one is just trivial, but anyways, here you go:&lt;br /&gt;&lt;img src="http://1.bp.blogspot.com/_Pl0QCBqQmf8/SeX8bIcp2sI/AAAAAAAAAL4/GfH8rEzH2T8/s400/98a4be44d3147256d4c02483f29626d0.png" alt="\frac\sqrt2 2=\sum_{n=0}^\infty\frac{(2n-1)!!(-1)^n}{(2n)!!}" id="BLOGGER_PHOTO_ID_5324939677489814210" /&gt;&lt;br /&gt;&lt;br /&gt;In case you can't figure it out… I just applied the binomial theorem to (1+1)&lt;sup&gt;-½&lt;/sup&gt;. As such, it has effectively sublinear convergence, as you may confirm with the ratio test. Not my fault. I was too occupied with other matters to transform it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-7960180742529140941?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/7960180742529140941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=7960180742529140941' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7960180742529140941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7960180742529140941'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/04/reciprocal-of-pythagoras-constant.html' title='Reciprocal of Pythagoras&apos; constant'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Pl0QCBqQmf8/SeX8bIcp2sI/AAAAAAAAAL4/GfH8rEzH2T8/s72-c/98a4be44d3147256d4c02483f29626d0.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-9191923240021715795</id><published>2009-04-11T21:51:00.003+08:00</published><updated>2009-04-11T21:59:33.629+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>Another meta post</title><content type='html'>Performing some vanity searches (whoops couldn't resist), it seems that this blog comes up 12th when searching for "zznq". Cool. Also, Google Webmaster Tools tell me that my site is the second site on the search result for "odd cubes" that actually involves the idea (2&lt;var&gt;n&lt;/var&gt;+1)&lt;sup&gt;3&lt;/sup&gt;. Neat.&lt;br /&gt;&lt;br /&gt;Well, it turns out that lots of the searches have nothing to do with the mathematical content here. I'm pretty sure Google has some work to do on &lt;del&gt;Pigeon&lt;/del&gt;PageRank.&lt;br /&gt;&lt;br /&gt;Anyway, the recent American Scientist has a column about displaying mathematical formulas in the web, mentioning MathML, TeX, and HTML. For this blog, I'm going to consistently use TeX and HTML only, and the former only when HTML is not adequate for the situation, since MathML is a pain to use, and especially so with that weird redraw-resize bug on Gecko, and complete lack of appearance in WebKit (like I care) and IE (ditto). (It would've worked in Opera, except I removed it before anybody tested it.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-9191923240021715795?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/9191923240021715795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=9191923240021715795' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/9191923240021715795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/9191923240021715795'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/04/another-meta-post.html' title='Another meta post'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-1794980274617203671</id><published>2009-04-09T20:36:00.005+08:00</published><updated>2009-04-09T22:52:29.345+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Equidistribution about a circle</title><content type='html'>Problem: There are 26 letters in the English alphabet. Find a way to arrange 26 sets of the alphabet around a circle such that all 676 pairs appear exactly once.&lt;br /&gt;&lt;br /&gt;Generalisation: There is an alphabet &lt;var&gt;A&lt;/var&gt; with &lt;var&gt;n&lt;/var&gt; letters. Find a way to arrange &lt;var&gt;n&lt;/var&gt; sets of &lt;var&gt;A&lt;/var&gt; around a circle such that all &lt;var&gt;n&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt; strings of length 2 in &lt;var&gt;A&lt;/var&gt; appear exactly once.&lt;br /&gt;&lt;br /&gt;I only have solutions for &lt;var&gt;n&lt;/var&gt;&amp;lt;4. For &lt;var&gt;n&lt;/var&gt;=2 the answer is a trivial 0,0,1,1, for &lt;var&gt;n&lt;/var&gt;=3 the answer could be a less trivial 0,1,2,0,0,2,2,1,1 or 0,0,1,1,0,2,2,1,2. (There are others, but they're effectively equivalent.)&lt;br /&gt;&lt;br /&gt;I wrote a small program using a genetic algorithm in an attempt to solve it yesterday. It kept getting stuck in a local maximum. Damn. However, I think I'm on the way to a breakthrough. (watch this space)&lt;br /&gt;&lt;br /&gt;Update: I realise that the proper term for my algorithm is "&lt;a href="http://en.wikipedia.org/wiki/Simulated_annealing"&gt;simulated annealing&lt;/a&gt;". Also, I've tweaked the mutation routine to be less aggressive, and it now hits a higher local maximum. Not 100% yet though.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-1794980274617203671?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/1794980274617203671/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=1794980274617203671' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/1794980274617203671'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/1794980274617203671'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/04/equidistribution-about-circle.html' title='Equidistribution about a circle'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-973001644914060898</id><published>2009-04-07T18:40:00.003+08:00</published><updated>2009-04-07T19:16:14.842+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='nlp'/><title type='text'>Loop removal</title><content type='html'>I've actually been thinking whether this information really belongs here, since it's a bit more like applied maths than pure maths, but heck. Anyway, an introduction to the no-loop problem, posed by Douglas. In it's most original form, you started out with an &lt;var&gt;m&lt;/var&gt;×&lt;var&gt;n&lt;/var&gt; rectangular grid, and the no-loop number is the minimum number of cells that need to be removed so that there are no loops that can be formed from orthogonal connections. In a less primitive form, it involves graphs, and the no-loop number is now the number of &lt;em&gt;vertices&lt;/em&gt; that need to be removed so that there are no cycles. The no-loop problem then asks what the no-loop number is, for a certain graph or &lt;var&gt;m&lt;/var&gt;×&lt;var&gt;n&lt;/var&gt; rectangular grid. Douglas also mentioned a variant on the rectangular grid version earlier this year, removing dominoes (adjacent cells) instead of single cells, but I won't cover this here now. I've written quite a bit of stuff already before this blog was started, you can see them &lt;a href="http://chltoopro.blogspot.com/search?q=deloopified"&gt;here&lt;/a&gt;, and &lt;a href="http://nush.commontown.net/cos/o.x?c=/fs_nush/eport&amp;amp;func=view&amp;amp;rid=127369"&gt;here&lt;/a&gt;. (Note that the second link might die soon.)&lt;br /&gt;&lt;br /&gt;The &lt;var&gt;n&lt;/var&gt;×&lt;var&gt;n&lt;/var&gt; squares have been pretty extensively checked for correctness, and so are the 6×n grids. I've reviewed the 6×6 proof more than thrice, 7×7 proof twice, and 8×8 proof twice, so they're almost definitely right. The current big question is what the asymptotic removal density is. (If you're so dense (&lt;del&gt;no&lt;/del&gt; pun intended), the removal density refers to the no-loop number divided by the total number of cells.) I've conjectured that it's 1/3, having found 3 ways to fill the grid, loopless, at that density. However, it almost seems wrong, in that the currently known limit is for the 15×15, at 0.2977… removal density, significantly less than 1/3=0.3333…. If you can find a tile that tiles loopless at a density lower than 1/3, I salute you. It's not trivial, if it exists. Also, bonus reward if you can show that that isn't optimal, and extra bonus if you show whether the asymptotic removal density is irrational.&lt;br /&gt;&lt;br /&gt;Another issue I'm currently tackling is also the exact removal density, at least for some values of &lt;var&gt;m&lt;/var&gt; in &lt;var&gt;m&lt;/var&gt;×&lt;var&gt;n&lt;/var&gt;. I've only managed to do this for &lt;var&gt;m&lt;/var&gt;∈{1, 2, 3, 4, 6}, and was trying to work it out for &lt;var&gt;m&lt;/var&gt;=5. &lt;var&gt;m&lt;/var&gt;=7 or 9 seems out of reach for now, and &lt;var&gt;m&lt;/var&gt;=8 looks barely possible.&lt;br /&gt;&lt;br /&gt;As for the graph generalisation, I haven't done much work on it, having focused solely on the rectangular grids. However, do note that I have proven that the four-dimensional hypercube graph needs 6 vertices removed, and that the five-dimensional hypercube graph needs somewhere between 12 and 14 (inclusive). The former proven by showing equivalence of upper and lower bounds, latter, well, duh. Anyone can do better with a 13 or 12 upper bound?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-973001644914060898?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/973001644914060898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=973001644914060898' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/973001644914060898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/973001644914060898'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/04/loop-removal.html' title='Loop removal'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-562789855170285571</id><published>2009-04-05T18:12:00.004+08:00</published><updated>2009-04-07T18:27:13.741+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='logic'/><title type='text'>Unprovability</title><content type='html'>Suppose we have some conjecture that there is no integer (or, set of integers, same really) satisfying some specified condition. There are many conjectures that (used to) fall under this condition, such as Fermat's Last Theorem. Now, suppose that someone demonstrates an attempt at a proof that this is unprovable. We can now demonstrate that that someone's proof is wrong.&lt;br /&gt;&lt;br /&gt;We may have the assumption that the conditions &lt;del&gt;are computable&lt;/del&gt; can be computed in finite time, so we can iterate, and check over each of the integers, since ℤ is enumerable. In other words, either a counterexample to the conjecture exists, in which case it will eventually be found, or it doesn't.&lt;br /&gt;&lt;br /&gt;Now, suppose the conjecture is unprovable. We have that a counterexample exists, or doesn't. If it exists, by the above paragraph, we can find it. If we can find it, then the conjecture is false. However, since the conjecture is unprovable, it cannot also be false, since we would have just proven it false, thus rendering it not unprovable. Therefore, there is no counterexample. The lack of a counterexample directly implies the truth in the conjecture, thereby also showing that the conjecture is not unprovable. Hence, the original supposition is false, and the conjecture is provable.&lt;br /&gt;&lt;br /&gt;Of course, this doesn't quite apply to things like the axiom of choice, since it's definitely true that the definition of "set" cannot be completely defined.&lt;br /&gt;&lt;br /&gt;Well, then, is it possible to prove that it's impossible to prove whether a conjecture is provable or not? My brain can't handle this kind of nested statements very well, so I shall leave it as is.&lt;br /&gt;&lt;br /&gt;Update: Note that, in the first paragraph, I originally meant &lt;em&gt;finite&lt;/em&gt; set of integers, although it works either way. Just a clarification.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-562789855170285571?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/562789855170285571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=562789855170285571' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/562789855170285571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/562789855170285571'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/04/unprovability.html' title='Unprovability'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-4487162202848218524</id><published>2009-04-04T19:16:00.004+08:00</published><updated>2009-04-04T19:25:31.001+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='pi'/><category scheme='http://www.blogger.com/atom/ns#' term='dirichlet eta function'/><title type='text'>Sum of eta of even divided by even power of two</title><content type='html'>&lt;img src="http://3.bp.blogspot.com/_pA5P9BzH5uM/SddCgo1vSOI/AAAAAAAAAA0/YczJ9RuJ2OM/s400/7c73ccc0dc28d2585de43f43595ac696.png" alt="\frac\pi4=\sum_{n=0}^\infty\frac{\eta(2n)}{2^{2n}}" id="BLOGGER_PHOTO_ID_5320794613247592674" /&gt;&lt;br /&gt;&lt;br /&gt;And, so the analogous series was found. This one does not involve divergent series at all in the proof, but it does involve Leibniz's series. This one also converges at a linear 2 bits per term rate. Of course, you have to be insane to use this to calculate π.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-4487162202848218524?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/4487162202848218524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=4487162202848218524' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4487162202848218524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4487162202848218524'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/04/sum-of-eta-of-even-divided-by-even.html' title='Sum of eta of even divided by even power of two'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_pA5P9BzH5uM/SddCgo1vSOI/AAAAAAAAAA0/YczJ9RuJ2OM/s72-c/7c73ccc0dc28d2585de43f43595ac696.png' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-4006634760582697216</id><published>2009-04-04T10:07:00.003+08:00</published><updated>2009-04-04T10:25:04.203+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>Yet another meta post</title><content type='html'>Because of &lt;a href="https://bugs.webkit.org/show_bug.cgi?id=24919"&gt;WebKit bug 24919&lt;/a&gt; (filed by, guess who?), the blog title will not become inverted when hovered on WebKit, and by extension in Chrome or Safari. Obstinate people. So, I'd suppose, borders on inlines are a stupid idea as well, but you implemented it anyway? Typical double standards.&lt;br /&gt;&lt;br /&gt;Anyway, from yesterday's experience, it seems that scanning isn't as tough as it was before, since I managed to get these two scans in less than 10 minutes. Or maybe last time I didn't notice the glaringly obvious "Scan" button fast enough. So, if I've done some cool stuff on paper (during English class), I might scan them, because typing them would be a duplication of effort.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-4006634760582697216?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/4006634760582697216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=4006634760582697216' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4006634760582697216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4006634760582697216'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/04/yet-another-meta-post.html' title='Yet another meta post'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-6786788174400836780</id><published>2009-04-03T20:57:00.005+08:00</published><updated>2009-04-03T21:24:43.212+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='dirichlet eta function'/><title type='text'>Scanned notes</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_pA5P9BzH5uM/SdYIfXMWqKI/AAAAAAAAAAk/pCJivNRaP18/eta200904-p1.png"&gt;&lt;img src="http://4.bp.blogspot.com/_pA5P9BzH5uM/SdYIfXMWqKI/AAAAAAAAAAk/pCJivNRaP18/s200/eta200904-p1.png" alt="" id="BLOGGER_PHOTO_ID_5320449344679618722" /&gt;&lt;/a&gt; &lt;a href="http://3.bp.blogspot.com/_pA5P9BzH5uM/SdYIf-zrHLI/AAAAAAAAAAs/mcvLxPi-jl4/eta200904-p2.png"&gt;&lt;img src="http://3.bp.blogspot.com/_pA5P9BzH5uM/SdYIf-zrHLI/AAAAAAAAAAs/mcvLxPi-jl4/s200/eta200904-p2.png" alt="" id="BLOGGER_PHOTO_ID_5320449355313519794" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This is based on day-before-yesterday's elegant series about eta. Note that the error term, as mentioned in the first proper paragraph, is completely wrong. See the note in the margin. &lt;del&gt;Also, on page 2, I realise that (8) is not very clear. I'll update this post with a TeX version soon.&lt;/del&gt; Actually, it's clearer than expected. (That's not a lame excuse.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-6786788174400836780?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/6786788174400836780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=6786788174400836780' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6786788174400836780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6786788174400836780'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/04/scanned-notes.html' title='Scanned notes'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_pA5P9BzH5uM/SdYIfXMWqKI/AAAAAAAAAAk/pCJivNRaP18/s72-c/eta200904-p1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-2108970310377997519</id><published>2009-04-02T12:29:00.005+08:00</published><updated>2009-04-03T10:16:33.189+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='dirichlet eta function'/><title type='text'>Sum of eta of odd divided by odd power of two</title><content type='html'>&lt;img src="http://1.bp.blogspot.com/_pA5P9BzH5uM/SdRP_hzkT0I/AAAAAAAAAAc/KIf_8ZLZAhM/s400/65c694077ef2511f561330a564c23f39.png" alt=" \frac1 2=\sum_{n=0}^\infty\frac{\eta(2n+1)}{2^{2n+1}}" id="BLOGGER_PHOTO_ID_5319965012656410434" /&gt;&lt;br /&gt;&lt;br /&gt;It's elegant. I don't have a rigorous proof of this yet; the current one involves manipulating &lt;a href="http://en.wikipedia.org/wiki/Grandi%27s_series"&gt;Grandi's series&lt;/a&gt;, which clearly does not converge. I found this formula entirely by chance, so don't ask me to find one for even etas, not because I won't, but because I can't.&lt;br /&gt;&lt;br /&gt;Also, this formula converges at 2 bits per term. &lt;em&gt;In case&lt;/em&gt; you were wondering. &lt;!--Efficient way to calculate ½?--&gt;&lt;br /&gt;&lt;br /&gt;Update: this actually provides an inefficient and inaccurate way to calculate odd etas, by substituting in the values for the previous odd etas, and 1 for the subsequent etas. It works, but is slow, inaccurate, and bootstrapping. Wait. It's not bootstrapping. Attempting to bootstrap will give values of 1 for the etas. Yup. Also, it might be possible to find an analogous series involving the even etas.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-2108970310377997519?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/2108970310377997519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=2108970310377997519' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2108970310377997519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2108970310377997519'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/04/sum-of-eta-of-odd-divided-by-odd-power.html' title='Sum of eta of odd divided by odd power of two'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_pA5P9BzH5uM/SdRP_hzkT0I/AAAAAAAAAAc/KIf_8ZLZAhM/s72-c/65c694077ef2511f561330a564c23f39.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-7904891342107252781</id><published>2009-03-31T00:18:00.005+08:00</published><updated>2009-03-31T20:37:25.583+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='computation'/><category scheme='http://www.blogger.com/atom/ns#' term='riemann zeta function'/><title type='text'>Calculating ζ, η, λ</title><content type='html'>Er, no, that's not some half-baked attempt at l33t. You clearly haven't been reading this blog enough if you thought so. Links, to Wikipedia: &lt;a href="http://en.wikipedia.org/wiki/Riemann_zeta_function"&gt;ζ&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Dirichlet_eta_function"&gt;η&lt;/a&gt;, &lt;a href="http://mathworld.wolfram.com/DirichletLambdaFunction.html"&gt;λ&lt;/a&gt; (whoops no Wikipedia article on lambda).&lt;br /&gt;&lt;br /&gt;Basically, the easiest way is to just add, term-by-term. Easy, fast to implement, but slow in computing, unless Re(&lt;var&gt;s&lt;/var&gt;) is large, and you don't want a lot of accuracy. However, if you insist on doing so, note that calculating η then scaling to either the ζ or λ is the fastest. There is also the problem that you can only do this for Re(&lt;var&gt;s&lt;/var&gt;)&amp;gt;0.&lt;br /&gt;&lt;br /&gt;Well, there's another slightly less easy way. Use an Euler transform. No other constant splitting value will work better than the default ½, so leave it as that. Using the transform on either the ζ or λ is useless at best, so, as above, use η, and scale accordingly. This also has the advantage that, since the Euler transform is actually &lt;a href="http://en.wikipedia.org/wiki/Ces%C3%A0ro_summation"&gt;Cesàro summation&lt;/a&gt; in disguise (not quite actually), this method of computing η always converges. Another advantage is that the convergence is linear, at one bit a term. (Well, faster than term-by-term adding which is asymptotically 0 bits a term.) Yet another advantage is that the values at negative integers can be obtained exactly, since from some point on subsequent terms become zero. (Note: this is only the case if your arithmetic system supports arbitrary precision fractions.)&lt;br /&gt;&lt;br /&gt;But there's a snag! When Re(&lt;var&gt;s&lt;/var&gt;) is large, the first few terms in the normal expansion decrease quickly, so the Euler transform becomes far less effective at that range. The easiest fix is to first add enough terms so that the transform becomes effective, or failing so, defect to the first method mentioned above.&lt;br /&gt;&lt;br /&gt;Then there's yet another method, this time applying to the ζ. The Laurent series can be used when &lt;var&gt;s&lt;/var&gt; is close to 1, since it converges quickly, with the Stieltjes constants decreasing fast, and with a factorial reciprocal multiplier. However, this is of limited use when the desired accuracy is large, since the constants have to be known beforehand to a similar accuracy.&lt;br /&gt;&lt;br /&gt;Well, what about λ? I haven't got a clue how that might be summed directly and efficiently. Leave a comment if you have one.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-7904891342107252781?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/7904891342107252781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=7904891342107252781' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7904891342107252781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7904891342107252781'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/03/calculating.html' title='Calculating ζ, η, λ'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-6334777639976010041</id><published>2009-03-30T16:54:00.005+08:00</published><updated>2009-03-30T21:31:05.160+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='arctangent'/><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><title type='text'>Double factorials to the arctangent</title><content type='html'>&lt;img src="http://4.bp.blogspot.com/_pA5P9BzH5uM/SdCI79RK0NI/AAAAAAAAAAU/4-rV0r36IiA/s400/dd01eb2cb9c660b0d52a52384a7cc0df.png" alt="\arctan x=\frac1x\sum_{n=0}^\infty\frac{(2n)!!}{(2n+1)!!}\left(1-\frac1{1+x^2}\right)^{n+1}" id="BLOGGER_PHOTO_ID_5318901723564789970" /&gt;&lt;br /&gt;&lt;br /&gt;It's the same as the one on Wikipedia, just that this one uses double factorials and is hence more elegant. If you substitute &lt;var&gt;x&lt;/var&gt;=1/√&lt;span style="text-decoration: overline;"&gt;3&lt;/span&gt; you get the formula the second post before, and if you substitute &lt;var&gt;x&lt;/var&gt;=1 you get the factorial-over-odd-double-factorial series.&lt;br /&gt;&lt;br /&gt;You might have inferred that I have not fully digested Gosper's paper since the techniques used are so shallow. Let me tell you something. You're right. I'm still trying to understand it.&lt;br /&gt;&lt;br /&gt;Oh, and also note that since arctan is odd, the expression above evaluated at &lt;var&gt;x&lt;/var&gt;=0 is a removable singularity.&lt;br /&gt;&lt;br /&gt;PS: In case you didn't get it, this is just the binomial transform.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-6334777639976010041?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/6334777639976010041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=6334777639976010041' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6334777639976010041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6334777639976010041'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/03/double-factorials-to-arctangent.html' title='Double factorials to the arctangent'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_pA5P9BzH5uM/SdCI79RK0NI/AAAAAAAAAAU/4-rV0r36IiA/s72-c/dd01eb2cb9c660b0d52a52384a7cc0df.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-8431927132988609839</id><published>2009-03-29T23:50:00.002+08:00</published><updated>2009-03-30T00:01:05.430+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='computation'/><category scheme='http://www.blogger.com/atom/ns#' term='integers'/><title type='text'>Representing integers</title><content type='html'>&lt;a href="http://chltoopro.blogspot.com/2009/03/rr-145-representing-numbers.html"&gt;This information&lt;/a&gt; would be relevant here as well. And because I'm too lazy to copy and paste the entire text I typed hours ago, I provide a link. Also, for those who read this blog, but have absolutely no knowledge of the existence of the other, well, now you know. (Do such people even exist?)&lt;br /&gt;&lt;br /&gt;Also, as an afterthought. Perhaps the iteration of iteration of iteration could be continued indefinitely, to give and super-iteration of sorts, then that iterated over itself to give the super-iteration of super-iterations,  and then again, ad infinitum. A bit like the situation of ordinals, with ω, &lt;a href="http://en.wikipedia.org/wiki/%CE%95%E2%82%80"&gt;ε&lt;sub&gt;0&lt;/sub&gt;&lt;/a&gt;, as described in page 274 of The Book of Numbers (Conway and Guy 1996).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-8431927132988609839?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/8431927132988609839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=8431927132988609839' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8431927132988609839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8431927132988609839'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/03/representing-integers.html' title='Representing integers'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-4219536584520310499</id><published>2009-03-27T20:44:00.003+08:00</published><updated>2009-03-27T21:00:25.649+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='pi'/><title type='text'>From factorials to π (again)</title><content type='html'>&lt;img src="http://2.bp.blogspot.com/_pA5P9BzH5uM/SczLII7XZlI/AAAAAAAAAAM/-IBpPYnOijQ/s320/2bits.png" alt="\pi=\frac{3\sqrt3}{2}\sum_{n=0}^\infty\frac{n!}{(2n+1)!!\cdot2^n}" id="BLOGGER_PHOTO_ID_5317848600713586258" /&gt;&lt;br /&gt;&lt;br /&gt;A slight variation of the previous version, and also converges at twice the rate, at two bits per term. Similarly obtained from a series transformation, this time of the Taylor series of arctan(1/√&lt;span style="text-decoration: overline;"&gt;3&lt;/span&gt;). Note that this uses √&lt;span style="text-decoration: overline;"&gt;3&lt;/span&gt;, so it isn't so easy to use. (Note however that √&lt;span style="text-decoration: overline;"&gt;3&lt;/span&gt; can be obtained to high precision quickly with the Babylonian method.)&lt;br /&gt;&lt;br /&gt;I'm going to assume that this has already been discovered; it is, after all, a simple transformation. I'll upload the formula for the general arctan(&lt;var&gt;x&lt;/var&gt;) sometime soon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-4219536584520310499?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/4219536584520310499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=4219536584520310499' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4219536584520310499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4219536584520310499'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/03/from-factorials-to-again.html' title='From factorials to π (again)'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_pA5P9BzH5uM/SczLII7XZlI/AAAAAAAAAAM/-IBpPYnOijQ/s72-c/2bits.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-5001824665466001141</id><published>2009-03-24T16:41:00.006+08:00</published><updated>2009-03-30T00:39:11.489+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='pi'/><title type='text'>Sum of alternating reciprocals of odd cubes</title><content type='html'>&lt;img src="http://4.bp.blogspot.com/_Pl0QCBqQmf8/ScidXISd7uI/AAAAAAAAAK0/RMBPNW8t3-s/s400/termbyterm.png" alt="\left(\sum_{n=0}^\infty\frac1{(2n+1)^2}\right)\left(\sum_{n=0}^\infty\frac{(-1)^n}{2n+1}\right)=\sum_{n=0}^\infty\frac{(-1)^n}{(2n+1)^3}" id="BLOGGER_PHOTO_ID_5316672380798365410" /&gt;&lt;br /&gt;&lt;br /&gt;The first infinite sum is π&lt;sup&gt;2&lt;/sup&gt;/8, the second is π/4, and multiplying them pairing off the terms actually does give the correct answer π&lt;sup&gt;3&lt;/sup&gt;/32. Partial credits to Shaun Lee for providing inspiration, from attempts to prove that the resultant sum is π&lt;sup&gt;3&lt;/sup&gt;/32, which neither of us have proven yet. Note that Gosper's Acceleration of Series notes this in page 41. (Actually that's the 42nd page of the PDF file.)&lt;br /&gt;&lt;br /&gt;Update: I happened to find an exercise asking the reader to derive the value of β(3) (and yes, it's the Dirichlet beta function). Look at this &lt;a href="http://www.biblioteca.cbpf.br/Apub/EDITORA/Efiles/Arfken/pdf-0120598760/P059876-19.pdf"&gt;PDF file&lt;/a&gt;, page 902 (22nd page). Note that I have next to no understanding of how Fourier series work. (I didn't read the whole thing.) Also, that has similar exercises for deriving ζ(2), ζ(4), η(2), η(4), and some others. And, to top it off, no answers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-5001824665466001141?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/5001824665466001141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=5001824665466001141' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5001824665466001141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5001824665466001141'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/03/sum-of-alternating-reciprocals-of-odd.html' title='Sum of alternating reciprocals of odd cubes'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_Pl0QCBqQmf8/ScidXISd7uI/AAAAAAAAAK0/RMBPNW8t3-s/s72-c/termbyterm.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-4405907867760221067</id><published>2009-03-23T00:18:00.003+08:00</published><updated>2009-03-29T17:27:52.630+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>But this one is!</title><content type='html'>Post titles, when not on the individual post pages, now link to the individual post pages (finally), and the &lt;del&gt;post&lt;/del&gt; blog title becomes inverted when hovered. All with a little bit of magic.&lt;br /&gt;&lt;br /&gt;The first change will be sent upstream to my test blog (which you can access from the correct profile page) and the second, well, it's pretty specific to this one, so that won't be sent upstream.&lt;br /&gt;&lt;br /&gt;Er, yeah, that's about it. &lt;!--(But why am I, internally, treating this blog as a disposable or unimportant one?)--&gt;&lt;br /&gt;&lt;br /&gt;Update: brain damage influence corrected.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-4405907867760221067?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/4405907867760221067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=4405907867760221067' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4405907867760221067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/4405907867760221067'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/03/but-this-one-is.html' title='But this one is!'/><author><name>CHL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-7718865037624157604</id><published>2009-03-20T14:06:00.003+08:00</published><updated>2009-03-22T23:39:29.087+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='series transform'/><title type='text'>Not quite a meta post</title><content type='html'>Sometimes, it doesn't harm the littlest bit to do some research. Yet, it always harms me greatly that mathematicians earlier have already beaten me to it. &lt;a href="http://dspace.mit.edu/handle/1721.1/6088"&gt;This paper by Gosper&lt;/a&gt; provides quite useful and interesting information, apart from the fact that the font and quality is horrible, on the transformation of series to make them converge faster.&lt;br /&gt;&lt;br /&gt;Also, MIT AI Lab &lt;del&gt;is&lt;/del&gt; was cool.&lt;br /&gt;&lt;br /&gt;Update: I just realised that the AI lab got merged to form the CSAIL years ago. Whoops.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-7718865037624157604?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/7718865037624157604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=7718865037624157604' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7718865037624157604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7718865037624157604'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/03/not-quite-meta-post.html' title='Not quite a meta post'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-572663459657192723</id><published>2009-03-18T16:08:00.008+08:00</published><updated>2009-03-19T17:31:02.320+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='ln'/><title type='text'>Yet another series for the natural logarithm (again)</title><content type='html'>&lt;a href="http://1.bp.blogspot.com/_Pl0QCBqQmf8/ScCsEZtRrKI/AAAAAAAAAKs/UXAufS-LqMM/s1600-h/zln2.png"&gt;&lt;img src="http://1.bp.blogspot.com/_Pl0QCBqQmf8/ScCsEZtRrKI/AAAAAAAAAKs/UXAufS-LqMM/s400/zln2.png" alt="\ln n=\sum_{i=1}^\infty\left(\frac1i-\frac1{n\left\lceil\frac in\right\rceil}\right)" id="BLOGGER_PHOTO_ID_5314436751917427874" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This one is exactly the same as the previous one when &lt;var&gt;n&lt;/var&gt; is a positive integer. Now here's the question. Does this equality still hold if &lt;var&gt;n&lt;/var&gt; is allowed to be an arbitrary positive number?&lt;br /&gt;&lt;br /&gt;Update: If you look carefully, notice that each term is positive (when &lt;var&gt;n&lt;/var&gt; is irrational; if &lt;var&gt;n&lt;/var&gt; is rational then there are 0s as well). Now let &lt;var&gt;n&lt;/var&gt;=ℯ, and add 6 terms. It exceeds 1. So it doesn't hold for all non-negative real numbers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-572663459657192723?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/572663459657192723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=572663459657192723' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/572663459657192723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/572663459657192723'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/03/yet-another-series-for-natural_18.html' title='Yet another series for the natural logarithm (again)'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Pl0QCBqQmf8/ScCsEZtRrKI/AAAAAAAAAKs/UXAufS-LqMM/s72-c/zln2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-6617005502377931313</id><published>2009-03-17T21:47:00.005+08:00</published><updated>2009-03-18T16:23:48.672+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='ln'/><title type='text'>Yet another series for the natural logarithm</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/_Pl0QCBqQmf8/Sb-sjbyg7zI/AAAAAAAAAKk/ZZYFdS5-Ns8/s1600-h/zln.png"&gt;&lt;img src="http://3.bp.blogspot.com/_Pl0QCBqQmf8/Sb-sjbyg7zI/AAAAAAAAAKk/ZZYFdS5-Ns8/s400/zln.png" alt="\ln n=\sum_{i=1}^\infty{\left(\frac{1-n}{i\cdot n}+\sum_{j=1}^{n-1}\frac{1}{i\cdot n-j}\right)}" id="BLOGGER_PHOTO_ID_5314155810075504434" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Discovered by Shaun Lee some weeks ago, unearthed from my memory moments ago. &lt;del&gt;It's not trivial to prove.&lt;/del&gt;&lt;br /&gt;&lt;br /&gt;Update: doh! &lt;a href="http://beyondthefuzzyimage.blogspot.com/2009/03/once-in-while-i-get-unexplained-impulse.html"&gt;Ninja'd.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-6617005502377931313?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/6617005502377931313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=6617005502377931313' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6617005502377931313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6617005502377931313'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/03/yet-another-series-for-natural.html' title='Yet another series for the natural logarithm'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Pl0QCBqQmf8/Sb-sjbyg7zI/AAAAAAAAAKk/ZZYFdS5-Ns8/s72-c/zln.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-1789081714001294189</id><published>2009-03-16T11:24:00.007+08:00</published><updated>2009-03-17T14:00:38.414+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='continued fraction'/><title type='text'>Irrational multiples</title><content type='html'>Consider a irrational number &lt;var&gt;x&lt;/var&gt;&amp;gt;0 and a rational number &lt;var&gt;q&lt;/var&gt;&amp;gt;0. Is it true that the continued fraction convergents of &lt;var&gt;x&lt;/var&gt; and &lt;var&gt;q&lt;/var&gt;&lt;var&gt;x&lt;/var&gt; agree from some point on?&lt;br /&gt;&lt;br /&gt;For example, consider π and 2π. (The &lt;var&gt;x&lt;/var&gt; and &lt;var&gt;q&lt;/var&gt; here equal π and 2, respectively.) The third convergent for π is 333/106, and the fifth convergent for 2π is 333/53. These are considered to agree, since (333/53)/2 = 333/106. Similarly, the fourth convergent for π is 355/113, and the sixth for 2π is 710/113. The next pair of convergents agree as well, but the eighth convergent of 2π agrees not with the sixth, but the eighth of π.&lt;br /&gt;&lt;br /&gt;I'm guessing that the answer is no, but I'm not sure.&lt;br /&gt;&lt;br /&gt;Update: seems that &lt;var&gt;x&lt;/var&gt;=φ and &lt;var&gt;q&lt;/var&gt;=2/3 is a counterexample. The convergents of 2φ/3 ([1;&lt;span style="text-decoration: overline;"&gt;12,1,2,2,2,1&lt;/span&gt;]) skips some terms of that of φ, but is otherwise the same.&lt;br /&gt;&lt;br /&gt;Update update: Actually, they aren't "otherwise the same". Stopping just at the first of three twos lead to a fraction that has neither numerator nor denominator as Fibonacci numbers. I should have noticed this earlier.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-1789081714001294189?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/1789081714001294189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=1789081714001294189' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/1789081714001294189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/1789081714001294189'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/03/irrational-multiples.html' title='Irrational multiples'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-1095431062050166411</id><published>2009-03-13T00:37:00.003+08:00</published><updated>2009-03-13T00:56:39.762+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='random walk'/><title type='text'>Observation about 1d random walks</title><content type='html'>Let &lt;var&gt;d&lt;/var&gt;&lt;sub&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt; be the mean distance from the origin of a one-dimensional random walk with &lt;var&gt;n&lt;/var&gt; steps. Then it seems that &lt;var&gt;d&lt;/var&gt;&lt;sub&gt;2&lt;var&gt;n&lt;/var&gt;−1&lt;/sub&gt;=&lt;var&gt;d&lt;/var&gt;&lt;sub&gt;2&lt;var&gt;n&lt;/var&gt;&lt;/sub&gt;. Does not comprehend. (Note, as an example, that &lt;var&gt;d&lt;/var&gt;&lt;sub&gt;1&lt;/sub&gt;=&lt;var&gt;d&lt;/var&gt;&lt;sub&gt;2&lt;/sub&gt;=1.)&lt;br /&gt;&lt;br /&gt;Note that I ever posted a question involving 1d random walks in LChat, where it asked for the denominator of &lt;var&gt;d&lt;/var&gt;&lt;sub&gt;100&lt;/sub&gt; after simplification. The answer is 2&lt;sup&gt;95&lt;/sup&gt;, by the way.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-1095431062050166411?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/1095431062050166411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=1095431062050166411' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/1095431062050166411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/1095431062050166411'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/03/observation-about-1d-random-walks.html' title='Observation about 1d random walks'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-1840800097922748849</id><published>2009-03-10T19:10:00.003+08:00</published><updated>2009-03-10T20:08:24.326+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>But they do!</title><content type='html'>I've stopped using FireMath to display formulas. I gave up on MathML altogether. The formulas are now generated with TeX, or just plain text.&lt;br /&gt;&lt;br /&gt;I've changed the blog template. I've not yet decided to use the unfixable Layouts, so it'll remain like this for quite long. I'll be applying workarounds here (unlike my test blog), which will not break even if Gecko becomes compatible. There are few changes between the two templates, things like the favicon is most easily noted. That one uses a transparent PNG, this an expression that evaluates to negative one. There was too little space; I'd have added a "=−1" if favicons could be larger. In fact, the current e^iπ one is barely understandable.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-1840800097922748849?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/1840800097922748849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=1840800097922748849' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/1840800097922748849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/1840800097922748849'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/03/but-they-do.html' title='But they do!'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-2551964314905436200</id><published>2009-03-10T15:58:00.005+08:00</published><updated>2009-03-17T16:27:34.039+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='pi'/><title type='text'>From factorials to π</title><content type='html'>&lt;a href="http://2.bp.blogspot.com/_Pl0QCBqQmf8/SbYkXCGNvdI/AAAAAAAAAJ8/W8nhrF_EVIE/s1600-h/pi.png"&gt;&lt;img src="http://2.bp.blogspot.com/_Pl0QCBqQmf8/SbYkXCGNvdI/AAAAAAAAAJ8/W8nhrF_EVIE/s400/pi.png" id="BLOGGER_PHOTO_ID_5311472788648607186" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I got that from the &lt;a href="http://en.wikipedia.org/wiki/Leibniz_formula_for_pi"&gt;Leibniz formula for π&lt;/a&gt;, through some non-rigorous manipulation of the terms. It does give a correct result though, as does a similar manipulation of the alternating harmonic series. In these two cases the transformed series converge faster. Note that the transform when applied to the alternating harmonic series yields the linearly-converging BBP-type formula for ln 2.&lt;br /&gt;&lt;br /&gt;Got any other ways to derive this series? Or have I (and Shaun) been beaten to by another mathematician?&lt;br /&gt;&lt;br /&gt;Update: I just realised that Euler beat us to it: &lt;a href="http://en.wikipedia.org/wiki/Arctangent#Infinite_series"&gt;[1]&lt;/a&gt; &lt;a href="http://mathworld.wolfram.com/InverseTangent.html#eqn13"&gt;[2]&lt;/a&gt; Also see Shaun's comment.&lt;br /&gt;&lt;br /&gt;Update: &lt;a href="http://mathworld.wolfram.com/PiFormulas.html#eqn25"&gt;Ouch.&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Numerical_approximations_of_%CF%80#Other_classical_formulae"&gt;Screw this.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-2551964314905436200?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/2551964314905436200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=2551964314905436200' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2551964314905436200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/2551964314905436200'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/03/from-factorials-to.html' title='From factorials to π'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Pl0QCBqQmf8/SbYkXCGNvdI/AAAAAAAAAJ8/W8nhrF_EVIE/s72-c/pi.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-5392531106892619617</id><published>2009-03-04T08:43:00.006+08:00</published><updated>2009-03-05T19:45:09.557+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='continued fraction'/><category scheme='http://www.blogger.com/atom/ns#' term='complex'/><title type='text'>The imaginary continued fraction again</title><content type='html'>&lt;img alt="2-(5/4-)(5/4-)(5/4-)…" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKMAAABHBAMAAACZl%2BonAAAAAXNSR0IArs4c6QAAAB5QTFRFAAAAAP8AAJkAADMAAMwAAGYAM8wzM8wAM%2F8zM%2F8AJUBamQAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfZAwQAHhIW30RXAAABzElEQVRYw9WYv1PCMBTHH0kjuFEpx7nlosIKiDsWGdx6XVhxkHPE07OOnv0HvGPxzxWKC7aB%2FPiep69r%2BunLy%2Fd9k5TIMhqJGBM2auFpH4wMugmYSEdE%2FwBZVz00MiDxhk%2F0BI%2BMwLyY6BOM7OCznBO1wciUAnSPi5f44JjZ6xL8VS7pFt1gRAMJ9r8l1cD1Ph7DkesYzOHIOziRt%2BHIRrGZXG6i2KhCv2iuEdMi1ZtNxJgkWUJOu%2BhjKPU%2BQE5Sl9pE%2BLvquiH3nB7CsLTZPxkgVc%2BmXrxlMCihpo2VtIyG2ej5zADJm3AkSf5hoVSjWqY2y3PFW%2Biml3Ak%2BxYRL5wEihwVTiItvalSrLPsOTLdh69XyO450OjOyAtlOPAhmpv6SOB6YxGatPk4cL2ysFx3%2Bmm4ZilznWneu867n6M7VFBOvSzLJLkpvWp6qqNfhcDxmrra179uKx7ps2Sp5%2FFUVLw%2F8bxClpCj7QnIPVQJOSQ%2FhYlhCck8fyMIJtGiT8%2BnYrFY9MlT6TvTlEi5b9d3ApT73txTRIl%2FaH4CQO5o3lvuZc37yr1C8wzx1%2Bz3NO%2BnG6n1Jm%2FNK3gFKrzpD69TXW4eUH%2FDsyx70xdDAUBSp2D0wQAAAABJRU5ErkJggg%3D%3D" /&gt;&lt;br /&gt;&lt;br /&gt;Basically, that can be rewritten into a recurrence relation. &lt;i&gt;u&lt;/i&gt;&lt;sub&gt;0&lt;/sub&gt;=2, &lt;i&gt;u&lt;/i&gt;&lt;sub&gt;n+1&lt;/sub&gt;=2-5/(2+&lt;i&gt;u&lt;/i&gt;&lt;sub&gt;n&lt;/sub&gt;).&lt;br /&gt;&lt;br /&gt;So, does it eventually reach 2 again?&lt;br /&gt;&lt;br /&gt;It's provable that if it ever enters into a cycle it must include 2, since the recurrence is bijective excluding, of course, the values 2 and -2. The fraction seems to exhibit irregular behaviour. From my calculations, it seems that near the 60th term the value hits over 100. This actually seems to "correct" the values into remaining in that range.&lt;br /&gt;&lt;br /&gt;Hmm.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-5392531106892619617?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/5392531106892619617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=5392531106892619617' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5392531106892619617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5392531106892619617'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/03/imaginary-continued-fraction-again.html' title='The imaginary continued fraction again'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-5171933193772726545</id><published>2009-02-28T17:57:00.003+08:00</published><updated>2009-02-28T18:24:23.130+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>So they don't</title><content type='html'>Hmm. I shouldn't post meta topics so often, but yeah. When I'm done with the green-on-black style this blog will use it.&lt;br /&gt;&lt;br /&gt;Also, check out the MathML equation in the previous post! I'm currently using 2 workarounds for errors I don't know how to fix. First, is the font colour/background. I can't fix the MathML version itself to use white as the font colour, since if I do so then the independent display ("Show Only This Frame") is screwed, since most people use white as the background colour.&lt;br /&gt;&lt;br /&gt;Second, is the size. As you can tell (from viewing the source), the object element uses CSS width and height to control it, because if they're not included the dimensions of the object will use default values, which are not suitable. Unfortunately, my hard-coded values assume that either of the Vera or DejaVu fonts are being used, which isn't always true. Additionally, forcing a redraw can make the dimensions change.&lt;br /&gt;&lt;br /&gt;A big problem is that using &lt;a href="http://www.firemath.info/"&gt;FireMath&lt;/a&gt; to generate formulas and equations isn't the most friendly thing to do. (But it certainly is easier than using a text editor.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-5171933193772726545?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/5171933193772726545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=5171933193772726545' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5171933193772726545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5171933193772726545'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/02/so-they-dont.html' title='So they don&apos;t'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-366076276955868434</id><published>2009-02-27T19:32:00.012+08:00</published><updated>2009-03-10T19:10:41.299+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='continued fraction'/><category scheme='http://www.blogger.com/atom/ns#' term='complex'/><title type='text'>Imaginary continued fraction</title><content type='html'>(Originally introduced by the &lt;a href="http://beyondthefuzzyimage.blogspot.com/2008/05/blog-post.html"&gt;mathematishaun&lt;/a&gt;.)&lt;br /&gt;&lt;br /&gt;&lt;img src="http://4.bp.blogspot.com/_Pl0QCBqQmf8/SbZKUW0SI5I/AAAAAAAAAKE/iWn3I1je5_Y/imcf.png" alt="x=1-(2/2-)(2/2-)(2/2-)…" id="BLOGGER_PHOTO_ID_5311514524112790418" /&gt;&lt;br /&gt;&lt;br /&gt;Basically, if you try to work out that continued fraction, you'll notice that it cycles between three values, placing undefineds in between cycles. It never hits ±&lt;i&gt;i&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;Expanding on Shaun's ideas a bit, I generalised it to x&lt;sup&gt;2&lt;/sup&gt;−n&lt;sup&gt;2&lt;/sup&gt; from his x&lt;sup&gt;2&lt;/sup&gt;−1. Then the final continued fraction becomes n−[(n&lt;sup&gt;2&lt;/sup&gt;+1)/(2n−)][(n&lt;sup&gt;2&lt;/sup&gt;+1)/(2n−)]… (I apologise for not being able to use the proper notation here, but this should be good enough.)&lt;br /&gt;&lt;br /&gt;Substitute in n=2. See that it doesn't cycle between a small set of values anymore! I'm going to take a guess and claim that this continued fraction doesn't repeat its values. Does it mean that it now converges? Of course not! If you see the values, you can notice something. It starts out at 2, then goes lower until it hits below some threshold (which I haven't bothered to figure out), then changes sign and becomes positive again, then decreasing, and …&lt;br /&gt;&lt;br /&gt;I reckon the same happens with all other integer values of n&amp;gt;1.&lt;br /&gt;&lt;br /&gt;Speaking of which, there's a simple proof that if you solve a continued fraction with only real numbers and end up with a non-real number, it means that the continued fraction doesn't converge. The proof is self-explanatory.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-366076276955868434?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/366076276955868434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=366076276955868434' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/366076276955868434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/366076276955868434'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/02/imaginary-continued-fraction.html' title='Imaginary continued fraction'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_Pl0QCBqQmf8/SbZKUW0SI5I/AAAAAAAAAKE/iWn3I1je5_Y/s72-c/imcf.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-6947341306774298934</id><published>2009-02-26T22:00:00.006+08:00</published><updated>2009-02-28T16:59:44.963+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='factorial'/><title type='text'>Factorial of a square divided by the factorial of the square's square root to the power of the square's square root</title><content type='html'>Clearly, words are confusing. Single-line programming language-style expressions are also confusing ((n^2)!/(n!^(n+1))), but comprehensible if you have some kind of programming experience. Something better would be n&lt;sup&gt;2&lt;/sup&gt;! / n!&lt;sup&gt;n+1&lt;/sup&gt;, but it still isn't fully aesthetically pleasing. Heck, good enough.&lt;br /&gt;&lt;br /&gt;Basically, try to prove that that expression is an integer for all non-negative integer n. There's a trivial way, but that's not what we're looking for.&lt;br /&gt;&lt;br /&gt;The trivial way is (avert your eyes for non-spoiler) to consider the number of ways you can put n-squared items into n unordered lists of n unordered items each. (Unordered means that the order doesn't matter.)&lt;br /&gt;&lt;br /&gt;The cheating way is to realise that it's on OEIS, &lt;a href="http://www.research.att.com/%7Enjas/sequences/A057599"&gt;A057599&lt;/a&gt;, so it must consist of only integers.&lt;br /&gt;&lt;br /&gt;Well, if you found that too easy, try the generalisation (m×n)! / [m!&lt;sup&gt;n&lt;/sup&gt; n!], m and n are non-negative integers. The trivial solution is the same, in fact. But the in-depth, interesting solution… It could be the same as the special case m=n, it could be different.&lt;br /&gt;&lt;br /&gt;Note: it's trivial to prove that n&lt;sup&gt;2&lt;/sup&gt;! / n&lt;sup&gt;n+1&lt;/sup&gt; is integer for integer n, and is coprime to n iff n is prime, 0 or 1. I'm not sure whether this could aid the proof, but it's some food for thought. In fact, if n has at least two non-trival factors, then n&lt;sup&gt;2&lt;/sup&gt;! / n&lt;sup&gt;2n+3&lt;/sup&gt; is also integer. (But this is merely trivia, and of no real importance.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-6947341306774298934?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/6947341306774298934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=6947341306774298934' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6947341306774298934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/6947341306774298934'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/02/factorial-of-square-divided-by_26.html' title='Factorial of a square divided by the factorial of the square&apos;s square root to the power of the square&apos;s square root'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-5591830635889503983</id><published>2009-02-26T21:52:00.003+08:00</published><updated>2009-02-26T21:59:09.309+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>Buffalo do not buffalo buffalo</title><content type='html'>So, by request of Shaun Lee, I have made this a mathematics outlet, for free flow of mathematical thoughts. However, occasionally, there will be posts about the blog itself (like this one), and these will have a 'meta' label. (Amusingly enough, my two other "main" blogs don't use labels at all.) Additionally, these posts will have some kind of a weird and completely irrelevant post title. (No, it's not steganographic.)&lt;br /&gt;&lt;br /&gt;Well, the lack of some kind of mathematical expression display in Blogger is frustrating (look at earlier post, the half power is barely visible). No TeX (which I haven't learnt how to use yet), and no MathML (ditto). Seems like a vicious cycle. From what I heard Wordpress has support for TeX, but I'm not sure I want to switch, and I'm not even sure that's true.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-5591830635889503983?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/5591830635889503983/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=5591830635889503983' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5591830635889503983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/5591830635889503983'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/02/buffalo-do-not-buffalo-buffalo.html' title='Buffalo do not buffalo buffalo'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-8258710039568523536</id><published>2009-02-24T18:14:00.003+08:00</published><updated>2009-02-24T18:42:14.799+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='pi'/><category scheme='http://www.blogger.com/atom/ns#' term='approximation'/><title type='text'>π approximations</title><content type='html'>π can be approximated using many methods. This post doesn't cover quickly converging methods, just good approximations of interest.&lt;br /&gt;&lt;br /&gt;A nice one is (2143/22)&lt;sup&gt;1/4&lt;/sup&gt; = π − 1.007×10&lt;sup&gt;-9&lt;/sup&gt;, first reported by Ramanujan (perhaps; I could be wrong). It can be checked from the continued fraction of π&lt;sup&gt;4&lt;/sup&gt;, [97; 2, 2, 3, 1, 16539, … ]. (It stops at the 1, by the way.) The fourth root also helps to "mask out" errors slightly.&lt;br /&gt;&lt;br /&gt;Another one is &lt;i&gt;x&lt;/i&gt;+&lt;i&gt;x&lt;/i&gt;&lt;sup&gt;½&lt;/sup&gt; = π + 4.813×10&lt;sup&gt;-5&lt;/sup&gt;, where &lt;i&gt;x&lt;/i&gt;=9/5. This one can also be verified from the continued fraction for the solution of &lt;i&gt;x&lt;/i&gt;+&lt;i&gt;x&lt;/i&gt;&lt;sup&gt;½&lt;/sup&gt; = π in &lt;i&gt;x&lt;/i&gt;, [1; 1, 3, 1, 1139, … ].&lt;br /&gt;&lt;br /&gt;In fact, this idea applies to the convergent 355/113 of π itself, with the next term in the continued fraction being 292 (next fraction being 103993/33102). The spike isn't so drastic here, but it happens sufficiently late to be rather striking.&lt;br /&gt;&lt;br /&gt;Another similar case is the Babylonian 3.8(29)(44)&lt;sub&gt;60&lt;/sub&gt;, a truncation which serves as a good approximation since the next (sexagesimal) digit is 0. This trick wouldn't quite work in decimal until relatively late: position 44, with a doubled '9' (… 1693&lt;em&gt;99&lt;/em&gt;3751 …). (But when you come to the Feynman point the situation changes slightly.)&lt;br /&gt;&lt;br /&gt;I haven't personally found any nice approximations yet; these were taken from the Wikipedia article &lt;a href="http://en.wikipedia.org/wiki/Numerical_approximations_of_%CF%80"&gt;Numerical approximations of π&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-8258710039568523536?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/8258710039568523536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=8258710039568523536' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8258710039568523536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/8258710039568523536'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/02/approximations.html' title='π approximations'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-681032673939249139</id><published>2009-02-23T22:22:00.003+08:00</published><updated>2009-02-23T22:33:13.491+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maths'/><category scheme='http://www.blogger.com/atom/ns#' term='pi'/><title type='text'>π</title><content type='html'>Procedure:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Start with the number 2.&lt;/li&gt;&lt;li&gt;Find the first occurrence of the number's decimal representation in the decimal digits of π. For multi-digit sequences take the position number of the first digit of the multi-digit sequence. (The first one appears at position 1, ie, counting from one.)&lt;/li&gt;&lt;li&gt;Now repeat procedure with the position number.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;With 2 we have this chain: 2 → 6 → 7 → 13 → 110 → 174 → 155 → 314 → …&lt;br /&gt;&lt;br /&gt;Nice coincidence eh?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-681032673939249139?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/681032673939249139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=681032673939249139' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/681032673939249139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/681032673939249139'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/02/blog-post.html' title='π'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5940603985791838144.post-7425890494231081439</id><published>2009-02-19T20:51:00.001+08:00</published><updated>2009-02-26T21:51:49.053+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>This is, that is not</title><content type='html'>Well, depending on your font the letter 'q' may or may not look like an inverted 'b'. Well, it is the case for the DejaVu fonts (as well as the base Vera fonts), so the 'zznq' should look like 'buzz' rotated by pi.&lt;br /&gt;&lt;br /&gt;Currently on the madness that be around me. The insanity is crippling me. Not that it matters.&lt;br /&gt;&lt;br /&gt;Oh, and I was relatively surprised that zznq.blogspot.com wasn't already taken. That was pretty cool actually.&lt;br /&gt;&lt;br /&gt;Time to commence hacking.&lt;br /&gt;&lt;br /&gt;Now say, what kind of content should be here? Leave a comment, post your thoughts.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5940603985791838144-7425890494231081439?l=zznq.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://zznq.blogspot.com/feeds/7425890494231081439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5940603985791838144&amp;postID=7425890494231081439' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7425890494231081439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5940603985791838144/posts/default/7425890494231081439'/><link rel='alternate' type='text/html' href='http://zznq.blogspot.com/2009/02/this-is-that-is-not.html' title='This is, that is not'/><author><name>CHL</name><uri>http://www.blogger.com/profile/07544182416783481347</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
