Applications of the Chinese remainder theorem - MathOverflow most recent 30 from http://mathoverflow.net 2013-05-20T21:28:36Z http://mathoverflow.net/feeds/question/10014 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem Applications of the Chinese remainder theorem JoeCamel 2009-12-29T09:47:26Z 2013-05-16T17:07:39Z <p>As the title suggests I am interested in CRT applications. <a href="http://en.wikipedia.org/wiki/Chinese%5Fremainder%5Ftheorem" rel="nofollow">Wikipedia article on CRT</a> lists some of the well known applications (e.g. used in the RSA algorithm, used to construct an elegant Gödel numbering for sequences...)</p> <p>Do you know some other (maybe not so well known) applications? Or interesting problems (recreational? or from mathematical competitions like IMO?) which can be solved using CRT. Or any good references or examples in that direction.</p> <p>I hope that with this I will have better understanding of CRT and how to use it in general. </p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/10015#10015 Answer by Chandan Singh Dalawat for Applications of the Chinese remainder theorem Chandan Singh Dalawat 2009-12-29T10:18:05Z 2009-12-29T10:18:05Z <p>One application : to find the product of all elements in the multiplicative group $({\mathfrak o}/{\mathfrak a})^\times$, where $\mathfrak o$ is the ring of integers in a number field and ${\mathfrak a}\subset{\mathfrak o}$ is an ideal. The case ${\mathfrak o}={\mathbb Z}$ is Wilson's theorem. See for example arXiv:0711.3879v1 [math.NT].</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/10017#10017 Answer by Harry Gindi for Applications of the Chinese remainder theorem Harry Gindi 2009-12-29T10:38:46Z 2009-12-29T10:38:46Z <p>Lagrange interpolation is a special case of the Chinese remainder theorem.</p> <p>The Jordan normal form can be proven extremely quickly using the Chinese remainder theorem for modules over a commutative ring. This proceeds by first proving the Jordan-Chevalley decomposition, and then the rest is a simple exercise of showing what the Jordan blocks actually look like. </p> <p>The first one is very surprising to people, but if you state Lagrange interpolation correctly, it's easy to see that the idea is not only similar but identical.</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/10019#10019 Answer by darij grinberg for Applications of the Chinese remainder theorem darij grinberg 2009-12-29T11:31:40Z 2009-12-29T11:31:40Z <p>Many properties of $\mathbb{Z}/n$ can be broken down to properties of $\mathbb{Z}/p^i$ using the Chinese Remainder Theorem. Here is an example that I have no idea how to prove otherwise:</p> <p><a href="http://www.mathlinks.ro/viewtopic.php?p=1981#1981" rel="nofollow">IMO Shortlist 1997 problem 15</a> is equivalent to proving that if some given integer is a square residue modulo $n$ and a cubic residue modulo $n$ at the same time, then it is a $6$-th power residue modulo $n$ as well. More generally, if $n$, $u$, $v$ are three positive integers, and some given $a\in\mathbb{Z}/n$ is both a $u$-th power and a $v$-th power in $\mathbb{Z}/n$, then $a$ is a $\mathrm{lcm}\left(u,v\right)$-th power in $\mathbb{Z}/n$.</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/10020#10020 Answer by David Speyer for Applications of the Chinese remainder theorem David Speyer 2009-12-29T11:32:34Z 2009-12-29T11:32:34Z <p>Secret sharing. Suppose we have $N$ people. We want any $k+1$ of them to be able to launch a missile attack, but no $k$ of them to have this power. </p> <p>Solution: Choose some large prime $p$ and a random polynomial $f(t)$ of degree $k$ with coefficients in $\mathbb{Z}/p$. Tell person $1$ the value of $f(1)$, person $2$ the value of $f(2)$ and so forth. (Also, everyone knows what $p$ is.) Set up the missiles to only launch when $f(0)$ is input. Any $k+1$ people can use the Chinese remainder theorem to compute $f$, and hence $f(0)$; any $k$ people do not have enough data to constrain $f(0)$ in any way.</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/10021#10021 Answer by David Speyer for Applications of the Chinese remainder theorem David Speyer 2009-12-29T11:43:20Z 2009-12-29T11:43:20Z <p>You already bring this idea up when you mention RSA but I want to make the point more generally: There are very good methods for solving polynomial equations modulo primes and prime powers. The only good way to solve an equation modulo $N$ is to factor $N$; solve modulo each prime power dividing $N$, and use Chinese remainder to put a solution back together. This is true even for computing square roots.</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/10022#10022 Answer by David Speyer for Applications of the Chinese remainder theorem David Speyer 2009-12-29T11:47:40Z 2009-12-29T11:47:40Z <p>Parallel computation: Suppose you have a huge computation to do that involves adding, multiplying and subtracting integers. Possibly also dividing but, if so, only division by numbers in a finite set S which you already know.</p> <p>Choose primes $p_1$, $p_2$, ..., $p_r$ which do not divide any element of $S$, and such that $p_1 p_2 \cdots p_r$ is surely larger than your answer. Split your computation over $r$ processors, the $i$th of which computes the answer modulo $p_i$. Use CRT to put your answer back together in the end.</p> <p>This was the method used in the <a href="http://www.aimath.org/E8/" rel="nofollow">recent computation</a> of the Kazhdan-Lustig-Vogan polynomials of E8.</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/10035#10035 Answer by Abhishek Parab for Applications of the Chinese remainder theorem Abhishek Parab 2009-12-29T13:24:45Z 2009-12-29T13:24:45Z <blockquote> <p>Quadratic Reciprocity</p> </blockquote> <p>Perhaps the best application of the CRT is in a proof of the Gauss' Quadratic Reciprocity, a proof due to Rousseau (my version found on my blog <a href="http://abhishekparab.wordpress.com/2009/10/31/yet-another-proof-of-the-reciprocity/" rel="nofollow">here</a>) that uses just the CRT. It is very rare that proofs of the QR drop out without a lot of effort :)</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/10051#10051 Answer by Richard Stanley for Applications of the Chinese remainder theorem Richard Stanley 2009-12-29T17:27:07Z 2012-11-30T02:02:57Z <p>There are some cute exercises based on the Chinese remainder theorem, e.g., (1) there exist an arbitrarily large number of consecutive integers, none of which is squarefree (1955 Putnam Competition), (2) there exist an arbitrarily large number of consecutive integers, none of which is powerful ($n$ is <em>powerful</em> if for every prime $p$ dividing $n$, we have $p^2|n$), (3) there exist an arbitrarily large number of consecutive positive integers, none of which is a sum of two squares, (4) the number of integers $1\cdot 2, 2\cdot 3, \dots, n\cdot (n+1)$ divisible by $n$ is $2^{\omega(n)}$, where $\omega(n)$ is the number of distinct prime divisors of $n$. </p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/10070#10070 Answer by Douglas S. Stones for Applications of the Chinese remainder theorem Douglas S. Stones 2009-12-29T22:10:07Z 2009-12-29T22:10:07Z <p>I often deal with combinatorial numbers $x$ are difficult to compute exactly, but it's possible to find congruences satisfied by them. You can combine the congruences using the Chinese Remainder Theorem into one concise congruence. If one day someone does compute the number $x$ by a lengthy computation, they can check that $x$ satisfies the congruence.</p> <p>For instance, the number of reduced Latin squares $R_{12}$ of order $12$ is unknown, but it satisfies $R_{12} \equiv 50400 \pmod {55440}$.</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/10072#10072 Answer by Douglas S. Stones for Applications of the Chinese remainder theorem Douglas S. Stones 2009-12-29T22:15:59Z 2009-12-29T22:15:59Z <p>One application that I heard about (but haven't actually used myself) is in computing combinatorial numbers $x$ that have very many digits. Sometimes, instead of dealing with arbitrary precision arithmetic, it is easier to compute $x \pmod \mu$ for many small moduli $\mu$ (which can be substantially faster than dealing with $x$ itself) then afterwards combine the congruences using the Chinese Remainder Theorem to find $x$ itself. Although this requires that you have an upper bound on $x$ or some idea of how large it should be.</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/10080#10080 Answer by Qiaochu Yuan for Applications of the Chinese remainder theorem Qiaochu Yuan 2009-12-29T23:30:08Z 2009-12-29T23:30:08Z <p>CRT combined with Dirichlet's theorem allows you to prove the existence of infinitely many primes satisfying any system of congruences that has a solution; I sketched a proof that this implies that the square roots of integers have no nontrivial linear dependences <a href="http://qchu.wordpress.com/2009/07/02/square-roots-have-no-unexpected-linear-relationships/" rel="nofollow">here</a>. </p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/10095#10095 Answer by Ryan Williams for Applications of the Chinese remainder theorem Ryan Williams 2009-12-30T03:45:01Z 2009-12-30T03:45:01Z <p>Here is a neat example that predates David Speyer's example of fast parallel arithmetic, but uses the same trick.</p> <blockquote> <p>Richard J. Lipton, Yechezkel Zalcstein: Word Problems Solvable in Logspace. J. ACM 24(3): 522-526 (1977)</p> </blockquote> <p>In this paper, the Chinese remainder theorem is used to prove that the word problem on several types of groups are solvable in logspace. (The Chinese remainder theorem is not explicitly invoked, but one can use it to justify the algorithms.) For instance, the paper states:</p> <p><strong>Corollary 6.</strong> <em>The word problem for finitely generated free groups is solvable in logspace.</em></p> <p>The <em>word problem</em> for a finite group is to determine if a given product of group elements equals the identity. The results are proved by embedding a group into a group of matrices over the integers, then computing the matrix product modulo all small primes.</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/10154#10154 Answer by Richard Dore for Applications of the Chinese remainder theorem Richard Dore 2009-12-30T16:53:48Z 2009-12-30T16:53:48Z <p>In the proof of <a href="http://en.wikipedia.org/wiki/G%F6del%27s%20incompleteness%20theorems%23First%20incompleteness%20theorem" rel="nofollow">Gödel's First Incompleteness Theorem</a>, you need to choose a way to encode formulas and proofs as numbers. The easy way to do this is to take 2<sup>i<sub>0</sub></sup>3<sup>i<sub>1</sub></sup>5<sup>i<sub>3</sub></sup>...p<sub>j</sub><sup>i<sub>j</sub></sup>. However you can instead use the Chinese Remainder Theorem to pick a number congruent to i<sub>0</sub> mod p<sub>0</sub>, congruent to i<sub>1</sub> mod p<sub>1</sub>, etc. (Of course, you need to pick big enough primes then.) The advantage of doing this is you no longer need exponentiation in your theory, just multiplication and adition.</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/10159#10159 Answer by Thomas Riepe for Applications of the Chinese remainder theorem Thomas Riepe 2009-12-30T17:10:38Z 2009-12-30T17:10:38Z <p>Ulrich Oberst wrote an article on that in Expositiones no. 3, 1985 "Anwendungen des chinesischen Restsatzes". </p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/11901#11901 Answer by Martin Brandenburg for Applications of the Chinese remainder theorem Martin Brandenburg 2010-01-15T19:12:26Z 2010-01-15T19:12:26Z <p>The chinese remainder theorem can be generalized as follows: Let $G$ be a group with normal subgroups $H,K$ of $G$. Then the canonical map $G/(H \cap K) \to G/H \times_{G/(HK)} G/K$ is an isomorphism. The proof is trivial! With the same argument: Let $R$ be a ring with ideals $I,J$, then the canonical map $R/(I \cap J) \to R/I \times_{R/(I+J)} R/J$ is an isomorphism. Now this reveals a geometric meaning of the cinese remainder theorem:</p> <p>Let $X$ be a scheme and $A,B$ two closed subschemes of $X$. Then $A \cup B$ is a closed subscheme of $X$ (intersect the ideal sheaves) and we have $A \cup B = A \coprod_{A \cap B} B$.</p> <p>Thus the union of two closed subschemes is the pushout of $A$ and $B$ along $A \cap B$, which is <i>very</i> intuitive.</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/12007#12007 Answer by KConrad for Applications of the Chinese remainder theorem KConrad 2010-01-16T19:35:48Z 2012-07-12T02:50:41Z <p>Here are some applications I don't see listed among the other answers.</p> <ol> <li><p>Everyone knows $5^2$ ends in 5 and $6^2$ ends in 6. Your task: find multi-digit numbers whose squares end in themselves (e.g., $25^2$ ends in 25, $76^2$ ends in 76, ...). This problem can be given to students -- even children -- who know no particular mathematics and they discover experimentally for $n$ = 2, 3, 4, ... that there are usually two $n$-digit solutions (sometimes fewer than 2 solutions, but never more than 2). As for whether this pattern persists for all $n$, both that there usually are solutions and that there are at most two solutions among $n$-digit numbers, turn the problem into a congruence condition and then think about CRT. </p></li> <li><p>If $f(x)$ is in ${\mathbf Z}[x]$ and all of its values $f(a)$ for $a$ in ${\mathbf Z}$ are multiples of either 2 or 3, then CRT implies all of its values are multiples of 2 or all of its values are multiples of 3. On the surface, this seems kind of miraculous, doesn't it? (Same result works by CRT replacing {2,3} with any finite set of prime numbers. While the analogous result for divisibility by a finite set of squared primes is probably true, it is still an open problem as far as I know. That is, if $p_1,...,p_r$ are primes and for every $a$ the integer $f(a)$ is divisible by one of $p_1^2,\dots,p_r^2$, can you show for one of the primes $p_i$ that every $f(a)$ is divisible by $p_i^2$?)</p></li> <li><p>The Solovay-Strassen probabilistic primality test. Verifying that this test admits a witness for odd composite moduli uses CRT. When I teach undergraduate number theory, the SS test has always been the last topic in the course and it's a neat application of CRT.</p></li> <li><p>If $a$ is not a square in $\mathbf Z$ then there are infinitely many primes $p$ such that $a \bmod p$ is not a square. This is an application of the Chinese remainder theorem and quadratic reciprocity. (This can be superseded in a quantitative sense if you use Dirichlet's theorem on primes in arithmetic progression.) </p></li> <li><p>If $m|n$ then the reduction map ${\mathbf Z}/n{\mathbf Z} \rightarrow {\mathbf Z}/m{\mathbf Z}$ is easily surjective. Please try to prove by elementary methods that the reduction map on units, $({\mathbf Z}/n{\mathbf Z})^\times \rightarrow ({\mathbf Z}/m{\mathbf Z})^\times$, is surjective <em>without</em> using CRT. Using CRT it is quite easy. (You can yank in Dirichlet's theorem on primes for a fast proof, but that's a rather deep result compared to CRT, so it wouldn't count as an elementary proof avoiding CRT.)</p></li> </ol> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/13339#13339 Answer by A. Johnston for Applications of the Chinese remainder theorem A. Johnston 2010-01-29T05:06:09Z 2010-01-29T05:06:09Z <p>Pohlig–Hellman discrete logarithm computation is based on the CRT.</p> <p>A degree n discrete Fourier Transform is identical to polynomial evaluation at primitive $n$-th roots of unity. The inverse transform is interpolation or the CRT (as mentioned in earlier posts).</p> <p>Montgomery reduction uses the CRT to reduce an integer modulo $x\bmod{N}$ without division by $N$ by creating an integer equivalent to $x\bmod{N}$ and $0\bmod{2^r}$, then dividing by $2^r$. </p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/13341#13341 Answer by Ben Weiss for Applications of the Chinese remainder theorem Ben Weiss 2010-01-29T05:31:26Z 2010-01-29T05:31:26Z <p>One answer I don't see here: Lagrange interpolation. If one takes, for example, the ring $\mathbb{Q}[x]$, and realizes CRT as a statement about rings and direct sums of $R/P$ over a set of co-prime $P,$ then one can construct polynomials which have cycles of arbitrary length in the rationals (or any number of cycles of arbitrary length). <a href="http://mathworld.wolfram.com/LagrangeInterpolatingPolynomial.html" rel="nofollow">Lagrange interpolation</a> has other applications, but the proof is CRT.</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/18864#18864 Answer by AVS for Applications of the Chinese remainder theorem AVS 2010-03-20T18:18:54Z 2010-03-20T18:18:54Z <p>A variant of the CRT that has many practical applications is the "explicit CRT" (see <a href="http://cr.yp.to/antiforgery/meecrt-20060914-ams.pdf" rel="nofollow">http://cr.yp.to/antiforgery/meecrt-20060914-ams.pdf</a>, for a good introduction).</p> <p>One scenario where the explicit CRT (mod m) can be used, is the following. Suppose we know the value of an integer x modulo primes p_1, ..., p_n, whose product exceeds, say, 4|x|. Now we could use a standard CRT computation to determine x, but suppose we actually wish to know x mod m, where m is some integer not among the p_i. The explicit CRT lets us compute x mod m using arithmetic operations that involve operands that are all about the same size as m (rather than x). This is useful when x >> m; if x is a 100 digit number but the p_i's and m are all 3 or 4 digits numbers, you could compute x mod m on a pocket calculator with an 8 digit display, given the values x mod p_1, ..., x mod p_n.</p> <p>This technique is especially useful when one needs to compute many large integers x modulo the same m (the integers x might be the coefficients of a polynomial and m might be the characteristic of a finite field, for example). This approach is used in <a href="http://arxiv.org/abs/0903.2785" rel="nofollow">http://arxiv.org/abs/0903.2785</a> to compute Hilbert class polynomials, and in <a href="http://arxiv.org/abs/1001.0402" rel="nofollow">http://arxiv.org/abs/1001.0402</a> to compute modular polynomials, both of which are notoriously large but can be efficiently computed with the explicit CRT.</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/33823#33823 Answer by Pietro Majer for Applications of the Chinese remainder theorem Pietro Majer 2010-07-29T18:33:12Z 2010-07-29T18:33:12Z <p>Actually, not only the Lagrange interpolation, but more generally the Hermite interpolation problem (i.e. with prescribed jets at some nodes) may be treated as an application of the CRT. I happened to wirte some lines on it in the wiki article: <a href="http://en.wikipedia.org/wiki/Chinese_remainder_theorem#Applications" rel="nofollow">http://en.wikipedia.org/wiki/Chinese_remainder_theorem#Applications</a> (where others applications and references are also given).</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/33829#33829 Answer by Myke for Applications of the Chinese remainder theorem Myke 2010-07-29T19:05:17Z 2010-07-29T19:05:17Z <p>The Chinese remainder theorem is used to resolve multiple range ambiguities in many radar systems.</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/33900#33900 Answer by Pierre-Yves Gaillard for Applications of the Chinese remainder theorem Pierre-Yves Gaillard 2010-07-30T08:39:10Z 2010-07-30T08:39:10Z <p>The Chinese Remainder Theorem gives a way to compute matrix exponentials. </p> <p>Indeed, let $A$ be a complex square matrix, put $B:=\mathbb C[A]$. This is a Banach algebra, and also a $\mathbb C[X]$-algebra ($X$ being an indeterminate). Let $S$ be the set of eigenvalues of $A$, $$\mu=\prod_{s\in S}\ (X-s)^{m(s)}$$ the minimal polynomial of $A$, and identify $B$ to $\mathbb C[X]/(\mu)$. </p> <p>The Chinese Remainder Theorem says that the canonical $\mathbb C[X]$-algebra morphism $$\Phi:B\to C:=\prod_{s\in S}\ \mathbb C[X]/(X-s)^{m(s)}$$ is bijective. </p> <p>Computing exponentials in $C$ is trivial, so the only missing piece in our puzzle is the explicit inversion of $\Phi$. </p> <p>Fix $s$ in $S$ and let $e_s$ be the element of $C$ which has a one at the $s$ place and zeros elsewhere. It suffices to compute $\Phi^{-1}(e_s)$. This element will be of the form $$f=\frac{\mu}{(X-s)^{m(s)}}\ g\ \mbox{ mod }\mu$$ with $f,g\in\mathbb C[X]$, the only requirement being $$g\equiv\frac{(X-s)^{m(s)}}{\mu}\mbox{ mod }(X-s)^{m(s)}$$ (the congruence taking place in the ring of rational fractions defined at $s$). So $g$ is given by Taylor's Formula. </p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/39256#39256 Answer by Igor Carron for Applications of the Chinese remainder theorem Igor Carron 2010-09-18T22:25:23Z 2010-09-18T22:25:23Z <p>Mark Iwen uses the CRT to construct a Sparse Fourier Transform, see:</p> <p><a href="http://arxiv.org/abs/0708.1211" rel="nofollow">A Deterministic Sub-linear Time Sparse Fourier Algorithm via Non-adaptive Compressed Sensing Methods</a>, M. A. Iwen, <a href="http://arxiv.org/abs/0708.1211" rel="nofollow">http://arxiv.org/abs/0708.1211</a></p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/39357#39357 Answer by Alexey Ustinov for Applications of the Chinese remainder theorem Alexey Ustinov 2010-09-20T02:43:24Z 2010-09-20T02:43:24Z <p>Also there are some examples with visible and nonvisible lattice points: <a href="http://www.jstor.org/pss/2317753" rel="nofollow">http://www.jstor.org/pss/2317753</a> http://www.jstor.org/pss/2686720 try to google more examples</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/60592#60592 Answer by Burton Newman for Applications of the Chinese remainder theorem Burton Newman 2011-04-04T18:52:03Z 2011-04-04T18:52:03Z <p>Here is an adorable application of the CRT in combinatorial number theory: In an exact covering system of congruences the two largest moduli must be identical. In other words, if you partition the integers into arithmetic series, then two of the series must have the same 'step size'. This is often given as an application of (basic) complex analysis but all you really need is the CRT!</p> <p><a href="http://www.emis.de/journals/EJC/Volume_8/PDF/v8i2a1.pdf" rel="nofollow">http://www.emis.de/journals/EJC/Volume_8/PDF/v8i2a1.pdf</a></p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/91065#91065 Answer by robert44444uk for Applications of the Chinese remainder theorem robert44444uk 2012-03-13T09:53:25Z 2012-03-13T09:53:25Z <p>CRT is used to generate Payam Numbers. A Payam number k can generate very prime sequences of the form k*M(x)*2^n+/-1, with n variable, M(x) a multiple of certain primes. The pursuit of very prime series using Payam numbers is a mathematical recreation currently located at </p> <p><a href="http://www.mersenneforum.org/showthread.php?t=9755" rel="nofollow">http://www.mersenneforum.org/showthread.php?t=9755</a> </p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/114956#114956 Answer by Anonymous for Applications of the Chinese remainder theorem Anonymous 2012-11-30T05:02:53Z 2012-11-30T05:02:53Z <p>Here’s a nice problem that was among some IMO practice problems. I don’t know the source.</p> <blockquote> <p><strong>Problem</strong>: Prove that for each natural number $n$, there is some natural number $r$ for which the $n$ integers $r+1^2,r+2^2,\ldots r+n^2$ are all squarefree.</p> </blockquote> <p><strong>Solution</strong> (sketch): For a large prime $p$, the probability that none of these $n$ integers is divisible by $p^2$ is $1-\frac{n}{p^2}$. Assuming independence for the $p_i$s we get $(1-\frac{n}{2^2})(1-\frac{n}{3^2})(1-\frac{n}{5^2})\ldots$, which converges to a positive number, so there must exist solutions.</p> <p>To make this into a rigorous argument one needs CRT.</p> http://mathoverflow.net/questions/10014/applications-of-the-chinese-remainder-theorem/130852#130852 Answer by Bryan Clair for Applications of the Chinese remainder theorem Bryan Clair 2013-05-16T17:07:39Z 2013-05-16T17:07:39Z <p>The Mayan calendar system uses a number of different periodic processes, and provides a simple but very important example of a practical use of the CRT.</p> <p>The Tzolkin, or Day Count, has twenty weekdays (Ik, Akbal,... Auau) and thirteen numbers, 1-13. Each day, the day name advances, and so does the number. For example, 7 Ik is followed by 8 Akbal. These name/number pairs repeat in a 260 day cycle, which has been in continuous uniterrupted use since at least 600BC.</p> <p>The Haab, or Vague Year, is a 365 day year consisting of 19 months (Pop, Uo, ..., Cumku, Uayeb). The first 18 months have 20 days and Uayeb has five days. The Haab runs 0 Pop, 1 Pop, ..., 19 Pop, 0 Uo, 1 Uo,..., 4 Uayeb and then repeats to 0 Pop.</p> <p>Together, the Tzolkin and Haab form the calendar round, with dates given by Tzolkin then Haab, for example, 7 Ik 0 Cumku. This cycle repeats every 18980 days, about 52 years, which means that a calendar round date is good for most practical purposes (such as birth dates).</p> <p>The earlier Mayan period, from around the 1st century BC to the 13th century AD, also featured a system known as the long count, recently made somewhat famous by the fact that it finished a 5126 year cycle on December 21, 2012. Long count dates have Kin (days) which run 0-19. 20 Kin make one Uinal, 18 Uinal make one Tun, 20 Tun make one Katun, and 20 Katun make one Baktun. Dates are written with Baktun first, as, for example, 9.7.17.12.14. After 13 Baktun, the date goes back to zero, so that 12.19.19.17.19 was followed by 0.0.0.0.0.</p> <p>One major problem with studying the Mayan calendar is that the long count dates fell out of use hundreds of years before the Spanish arrived, and it is nontrivial to decide which Mayan long count dates correspond to which dates in the modern western calendar system - the 'correlation problem'.</p> <p>The key document, the Chronicle of Oxcutzcab, says that a tun ended 13 Ahua 8 Xul in AD 1539, thus tying together the long count (tun ending), the calendar round, and the Julian calendar. From ancient records, the long count is known to have begun on 4 Ahua, 8 Cumku. So, given 0.0.0.0.0 = 4 Ahua 8 Cumku, one needs to solve $x$.0.0 = 13 Ahua 8 Xul. The day number gives the equation $360 x \equiv 9 \pmod{13}$. Since 8 Xul is 125 days after 8 Cumku, the Haab gives the second equation $360 x \equiv 125 \pmod{365}$.</p> <p>So, there's a simple little use of CRT: Solve for $x$, and find $x \equiv 924 \pmod{949}$.</p> <p>To finish the story, the year AD 1539 contains the long count tun 924 = 2.6.4.0.0 plus some multiple of 949 tun = 2.7.9.0.0. There is enough historical evidence to guess the date to within 949 tun (about 935 years), and so one learns that 11.16.0.0.0 is in AD 1539. Finally, the calendar round is still in use and so one can determine that 11.16.0.0.0 is November 12, 1539. I'll leave it as an exercise to determine that December 21, 2012 really was 0.0.0.0.0. </p>