<?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-6803079253342371630</id><updated>2012-02-08T19:08:24.571-08:00</updated><category term='gas stations'/><category term='integer inequality'/><category term='system of equations'/><category term='lagrange identity'/><category term='boarding'/><category term='power mean'/><category term='shuffling'/><category term='parallelogram'/><category term='indefinite'/><category term='permutation'/><category term='floor'/><category term='iterative'/><category term='subset'/><category term='proposal'/><category term='Geometry'/><category term='fermat'/><category term='commutative'/><category term='binary digit'/><category term='combinatorial sum binomial identity sum'/><category term='rat'/><category term='polynomial'/><category term='array'/><category term='ravi&apos;s substitution'/><category term='marbles'/><category term='power sum'/><category term='prime'/><category term='tangent line'/><category term='sudoku'/><category term='passenger'/><category term='factorial'/><category term='painted sphere'/><category term='stones'/><category term='abc'/><category term='loci'/><category term='Add new tag'/><category term='mean'/><category term='Solution'/><category term='line'/><category term='dot product'/><category term='probability'/><category term='invariance'/><category term='2008'/><category term='turn'/><category term='convex'/><category term='tiling'/><category term='center of mass'/><category term='covariance'/><category term='paint'/><category term='table'/><category term='XOR'/><category term='supersum'/><category term='bipartite'/><category term='strict inequality'/><category term='pigeon hole'/><category term='span'/><category term='roll'/><category term='transformation'/><category term='tournament'/><category term='intersect'/><category term='triangular numbers'/><category term='differential equation'/><category term='cubic number'/><category term='solid geometry'/><category term='coin toss'/><category term='maximum'/><category term='tuymaada'/><category term='OSN 2009'/><category term='Riddles / Puzzles'/><category term='consecutive'/><category term='piecewise'/><category term='contradiction'/><category term='cross section'/><category term='factorization'/><category term='Solved'/><category term='graph theory'/><category term='optimization'/><category term='circle'/><category term='hypercube'/><category term='guess'/><category term='statistics'/><category term='reversible'/><category term='step'/><category term='correlation'/><category term='Combinatorics'/><category term='enumerative'/><category term='inverse modulo'/><category term='mixing'/><category term='Inequality'/><category term='tennis'/><category term='Random'/><category term='convergent'/><category term='reflection'/><category term='symmetric'/><category term='airplane'/><category term='deduction'/><category term='tetrahedron'/><category term='modular equation'/><category term='crystal ball'/><category term='gcd'/><category term='infimum'/><category term='wine'/><category term='Number Theory'/><category term='inner product'/><category term='normalization'/><category term='inradius'/><category term='coloring'/><category term='cosine theorem'/><category term='backward induction'/><category term='grid'/><category term='absolute value'/><category term='spy'/><category term='chess board'/><category term='functional equation'/><category term='year'/><category term='diophantine'/><category term='prisoner'/><category term='infinite prime'/><category term='girl'/><category term='AM-GM'/><category term='trigonometry'/><category term='acquaintance'/><category term='summation'/><category term='spiked math'/><category term='osculating circle'/><category term='ceiling'/><category term='discriminant'/><category term='square'/><category term='focus'/><category term='prime set'/><category term='radio'/><category term='2 variable recursion'/><category term='operation'/><category term='drawing'/><category term='scale'/><category term='cycle'/><category term='jug'/><category term='invariant'/><category term='circular'/><category term='counting'/><category term='homogeneous'/><category term='sums of squares'/><category term='ellipse'/><category term='eisenstein&apos;s criterion'/><category term='calculus'/><category term='cube'/><category term='bijection'/><category term='cone'/><category term='lattice'/><category term='cosine'/><category term='degree'/><category term='expressible'/><category term='schur'/><category term='random walk'/><category term='incenter'/><category term='tuple'/><category term='extremal principle'/><category term='majorization'/><category term='binomial theorem'/><category term='dandelin sphere'/><category term='digit'/><category term='optically congruent'/><category term='replacement'/><category term='parity'/><category term='flea'/><category term='path'/><category term='light'/><category term='power of two'/><category term='comic'/><category term='infinite series'/><category term='average'/><category term='generating function'/><category term='definite positive'/><category term='Algebra'/><category term='triangle'/><category term='product'/><category term='comparing sets'/><category term='binary'/><category term='sum'/><category term='3 variable'/><category term='geometric mean'/><category term='binomial'/><category term='muirhead'/><category term='minimum'/><category term='equilateral'/><category term='ramsey'/><category term='KBB'/><category term='catalan'/><category term='divisibility'/><category term='function'/><category term='propose'/><category term='ternary'/><category term='natural numbers'/><category term='holder'/><category term='equilateral lattice'/><category term='group'/><category term='uniform'/><category term='strings'/><category term='limit'/><category term='sum of squares'/><category term='integral'/><category term='positive integers'/><category term='injective'/><category term='liar'/><category term='infinite chess'/><category term='mafia'/><category term='counterfeit'/><category term='eye color'/><category term='repetition'/><category term='sequence'/><category term='coin'/><category term='school'/><category term='algorithm'/><category term='gravity'/><category term='poison'/><category term='game'/><category term='fibonacci'/><category term='infinite sum'/><category term='oracle'/><category term='banach tarski paradox'/><category term='building'/><category term='movie'/><category term='construction'/><category term='foci'/><category term='fake'/><category term='segment'/><category term='color'/><category term='stone'/><category term='KBB2'/><category term='expected value'/><category term='triangulation'/><category term='topology'/><category term='residue system'/><category term='rank'/><category term='balls'/><category term='seat'/><category term='subgroup'/><category term='recursion'/><category term='minkowski'/><category term='cyclic quadrilateral'/><category term='eucledian'/><category term='random variables'/><category term='quaternary'/><category term='complex'/><category term='elementary'/><category term='Fibonacci Series'/><category term='johan gunardi'/><category term='fermat point'/><category term='yakut'/><category term='change'/><category term='black cells'/><category term='tesselation'/><category term='colored'/><category term='graph'/><category term='KBB3'/><category term='match'/><category term='switch'/><category term='string'/><category term='turkevici'/><category term='boy'/><category term='integration by parts'/><category term='flip'/><category term='weighings'/><category term='taylor series'/><category term='imo'/><category term='boxes'/><category term='induction'/><category term='perimeter'/><category term='cauchy'/><category term='technology review'/><category term='harmonic'/><category term='integers'/><category term='telescoping'/><category term='monotonic function'/><category term='vector'/><category term='car'/><category term='pair'/><category term='lemma'/><category term='hat'/><category term='surjective'/><category term='translation'/><category term='steps'/><category term='inverse'/><category term='reset'/><category term='fundamental theorem of algebra'/><category term='multivariable recursion'/><category term='card'/><category term='enumeration'/><category term='eddyhermanto'/><category term='break'/><category term='precision'/><category term='positive definite'/><category term='mapping'/><category term='arbitrarily'/><category term='route'/><category term='interpretation'/><category term='constraint'/><category term='OSN'/><category term='student'/><category term='jump'/><category term='arithmetic'/><category term='ordering'/><category term='3D'/><category term='pyramidal numbers'/><category term='matrix'/><category term='modulo'/><category term='completable'/><category term='composition'/><category term='tangent circles'/><category term='series'/><category term='distribution'/><category term='locker'/><title type='text'>Dharmath Vader</title><subtitle type='html'>Math is evil...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default?start-index=101&amp;max-results=100'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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>132</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6803079253342371630.post-932869569987207078</id><published>2012-02-08T13:07:00.000-08:00</published><updated>2012-02-08T19:08:24.597-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='invariance'/><category scheme='http://www.blogger.com/atom/ns#' term='tesselation'/><category scheme='http://www.blogger.com/atom/ns#' term='triangulation'/><category scheme='http://www.blogger.com/atom/ns#' term='route'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='Geometry'/><category scheme='http://www.blogger.com/atom/ns#' term='coloring'/><category scheme='http://www.blogger.com/atom/ns#' term='topology'/><title type='text'>A Divided Kingdom</title><content type='html'>A kingdom has the shape of a convex $n$-sided polygon $A_1 \dots A_n$. The King owns a castle at point $O$ in the interior of the kingdom, and he has $n$ princes, $P_1, \dots P_n$. They are each given a castle at the vertices of the polygon, so that prince $P_i$ has a castle precisely at $A_i$. The area $OA_iA_{i+1}$ is called the province $i$.&lt;br /&gt;&lt;br /&gt;One day, a strife breaks out in the kingdom and each prince declares independence from the King. As a result, each province is divided into one or more vassals, each of which is shaped like a triangle. (Note that each province is a triangle to begin with, so some of the more stable province do not necessarily break apart into multiple vassals). At the vertices of these triangles, a citadel (a smaller castle) was erected. &lt;br /&gt;&lt;br /&gt;Each castle and fort then declares an allegiance to King or one of the princes while following these rules:&lt;br /&gt;1. Each castle declares allegiance to its original owner. That is, castle at $O$ keeps its allegiance to the King and castle at $A_i$ keeps its allegiance to prince $P_i$.&lt;br /&gt;&lt;br /&gt;2. Each citadel that lies in the province border declares allegiance to either one of the owner of the castles at the endpoints of the province border. For example, a citadel that lies in the line $A_1 A_2$ may declare allegiance to prince $P_1$ or $P_2$, and a citadel that lies in the line $OA_3$ may declare allegiance to either the King or prince $P_3$. &lt;br /&gt;&lt;br /&gt;3. Each citadel that lies in the interior of a province declares an allegiance to either one of the owner of the castles at the vertices of the province. For example, a citadel that lies in the province 1 may declare allegiance to either the King, prince $P_1$, or prince $P_2$ (because province 1 is the triangle $OA_1A_2$).&lt;br /&gt;&lt;br /&gt;Now, with all citadels and forts having declared allegiance, each vassal's ownership is resolved as follows. Note that each vassal is shaped like a triangle, so it has precisely three citadels or castles on the vertices. If two or more of those citadels or castles declare allegiance to an entity, then the vassal is owned by that entity. For example, if a vassal has vertices declaring allegiance to $P_1, P_2, P_1$, then that vassal is owned by prince $P_1$.&lt;br /&gt;&lt;br /&gt;A vassal whose vertices declare allegiance to three different entities is then left in a constant state of war. Prove that the number of such vassals is $n+2k$ where $k$is a non-negative integer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-932869569987207078?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/932869569987207078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2012/02/divided-kingdom.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/932869569987207078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/932869569987207078'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2012/02/divided-kingdom.html' title='A Divided Kingdom'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-3070422922514422133</id><published>2012-01-30T10:36:00.000-08:00</published><updated>2012-01-30T10:40:44.024-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='reflection'/><category scheme='http://www.blogger.com/atom/ns#' term='iterative'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='Geometry'/><category scheme='http://www.blogger.com/atom/ns#' term='transformation'/><title type='text'>Successive reflection</title><content type='html'>Given 2012 points on the plane: $A_1, \dots, A_{2012}$, and a point $P$. Suppose $B_1, \dots, B_{2012}$ is a permutation of the $A_i$s, we determine the &lt;span style="font-style:italic;"&gt;shadow&lt;/span&gt; of $P$ as follows:&lt;br /&gt;&lt;br /&gt;Reflect $P$ with respect to $B_1$ to obtain $P_1$. Reflect $P_1$ with respect to $B_2$ to obtain $P_2$, and so on, to arrive with $P_{2012}$. We call this last point the shadow of $P$.&lt;br /&gt;&lt;br /&gt;Obviously, depending on the permutation of $B_i$s, one may arrive at different shadows of $P$. Find the maximal numbers of shadows of $P$ over all possible permutations.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-3070422922514422133?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/3070422922514422133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2012/01/successive-reflection.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3070422922514422133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3070422922514422133'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2012/01/successive-reflection.html' title='Successive reflection'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-639760738066277402</id><published>2012-01-28T22:18:00.000-08:00</published><updated>2012-01-28T22:21:12.949-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='graph theory'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='group'/><category scheme='http://www.blogger.com/atom/ns#' term='graph'/><category scheme='http://www.blogger.com/atom/ns#' term='coloring'/><category scheme='http://www.blogger.com/atom/ns#' term='subgroup'/><title type='text'>Graph with degree 3</title><content type='html'>A graph where each vertex has degree 3 has all of its edges colored with red, green, or blue. How many colorings are there such that every 3 edges that meet in a vertex are either of the same color or have 3 different colors?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-639760738066277402?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/639760738066277402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2012/01/graph-with-degree-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/639760738066277402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/639760738066277402'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2012/01/graph-with-degree-3.html' title='Graph with degree 3'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-3934020923547166528</id><published>2012-01-28T22:09:00.000-08:00</published><updated>2012-01-28T22:15:07.670-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='invariant'/><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='turn'/><title type='text'>Replacing number on the board</title><content type='html'>In a blackboard, the number 2012 is initially written. On each turn, the student can choose on of the three numbers: 6, 1006, 1509, and multiply it with the existing number on the board. The existing number is then erased and replaced with the new product.&lt;br /&gt;&lt;br /&gt;The teacher has a specific integer $k &gt; 1$ in mind, and the goal for the student is to get the number of the board to have form $n^k$ where $n$ is an integer.&lt;br /&gt;&lt;br /&gt;Determine all values of $k$ such that, after a finite number of turns, the number of the board will have the desired form.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-3934020923547166528?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/3934020923547166528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2012/01/replacing-number-on-board.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3934020923547166528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3934020923547166528'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2012/01/replacing-number-on-board.html' title='Replacing number on the board'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-2950473057899454572</id><published>2011-12-19T10:03:00.000-08:00</published><updated>2011-12-19T10:07:30.982-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='calculus'/><category scheme='http://www.blogger.com/atom/ns#' term='cauchy'/><category scheme='http://www.blogger.com/atom/ns#' term='infinite series'/><category scheme='http://www.blogger.com/atom/ns#' term='sequence'/><category scheme='http://www.blogger.com/atom/ns#' term='integral'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><category scheme='http://www.blogger.com/atom/ns#' term='infinite sum'/><category scheme='http://www.blogger.com/atom/ns#' term='harmonic'/><title type='text'>Having fun with infinite series</title><content type='html'>1. Warm-up problem: show that &lt;br /&gt;$$1 + \frac{1}{2} + \frac{1}{3} + \cdots = \infty$$&lt;br /&gt;&lt;br /&gt;2. Suppose $a_1, a_2, \cdots$ is a sequence of positive numbers such that &lt;br /&gt;$$a_1 + a_2 + \cdots + a_n \leq n^2$$&lt;br /&gt;for all $n$, show that &lt;br /&gt;$$\frac{1}{a_1} + \frac{1}{a_2} + \cdots = \infty$$&lt;br /&gt;&lt;br /&gt;3. Suppose $a_1, a_2, \cdots$ is a sequence of positive numbers such that &lt;br /&gt;$$a_1 + a_2 + \cdots + a_n \leq n^2 \log n$$&lt;br /&gt;for all $n$, show that &lt;br /&gt;$$\frac{1}{a_1} + \frac{1}{a_2} + \cdots = \infty$$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-2950473057899454572?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/2950473057899454572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/12/having-fun-with-infinite-series.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2950473057899454572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2950473057899454572'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/12/having-fun-with-infinite-series.html' title='Having fun with infinite series'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-5049750857505923002</id><published>2011-10-10T12:18:00.000-07:00</published><updated>2011-10-10T12:37:11.471-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Fibonacci Series'/><title type='text'>Fibonacci Series: Introduction</title><content type='html'>Based on popular requests, I'm going to start a new series of posts called the Fibonacci Series (HA!)&lt;br /&gt;&lt;br /&gt;It will explore a number of combinatorial interpretations of the Fibonacci series, and the elegance with which we could prove some Fibonacci-related theorems, using purely combinatorial arguments and minimal algebra. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Definition&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A sequence $F_n$ is defined by $F_0 = 1, F_1 = 1$ and $F_{n+2} = F_{n+1} + F_n$. This sequence is called the Fibonacci sequence. The first few terms of the sequence is (starting with $F_0$): 1,1,2,3,5,8,13,21,...&lt;br /&gt;&lt;br /&gt;Suppose there is a stair with $n$ steps, and one can climb it using "steps" or using "hops" where each step ascends the person by 1 step of stair, and each hop ascends the person by 2 steps. &lt;br /&gt;&lt;br /&gt;For a stair with 2 steps, there are 2 ways one can climb it. By using 2 steps, or a hop. For a stair with 3 steps, there are 3 ways: step-hop, hop-step, or step-step-step. For 4 steps, there are 5 ways: 4 steps, step-step-hop, step-hop-step, hop-step-step, hop-hop. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Theorem&lt;/span&gt;: In general, for a stair with $n$ steps, there are exactly $F_n$ ways to climb it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Proof&lt;/span&gt;:&lt;br /&gt;Proof by induction. &lt;br /&gt;&lt;br /&gt;The first action that one can take could be a step or a hop. If the first action is a step, then the climber must ascend the remaining $n-1$ steps with combinations of steps and hops. There are $F_{n-1}$ such ways.&lt;br /&gt;&lt;br /&gt;If the first action is a hop, then the climber must ascend the remaining $n-2$ steps, and there are $F_{n-2}$ ways to do so.&lt;br /&gt;&lt;br /&gt;These two cases are mutually exclusive, so in total there are $F_{n-1} + F_{n-2}$ ways to climb. This is exactly the recursive equation for the Fibonacci series, and since the first few terms agree, we conclude that in general the number of ways to climb an $n$-step stair is $F_n$.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Exercise&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;There are many more possible combinatorial interpretations of the Fibonacci sequence. For the rest of the series, we are going to use the stair-climbing interpretation, but the following interpretations are just as useful.&lt;br /&gt;&lt;br /&gt;1. Prove that $F_{n+1}$ is the number of binary numbers with $n$ digit such that there are no two consecutive zeroes.&lt;br /&gt;&lt;br /&gt;2. Prove that $F_{n+1}$ is the number of subset from the set $\{ 1, 2, \dots, n \}$ without two consecutive numbers.&lt;br /&gt;&lt;br /&gt;3. Prove that $F_{n-2}$ is the number of ways to tile a $1 \times n$ board with tiles of length 2 or longer.&lt;br /&gt;&lt;br /&gt;4. Prove that $F_{n-1}$ is the number of ways to tile a $1 \times n$ board with tiles that have odd length.&lt;br /&gt;&lt;br /&gt;5. Prove that $F_n$ is the number of permutation $(a_1, \dots, a_n)$ of $\{ 1, \dots, n \}$ such that for each $i$, $|a_i - i| \leq 1$.&lt;br /&gt;&lt;br /&gt;6. Prove that $F_{2n+1}$ is the number of ternary numbers with $n$ digits where a 0 is never followed by a 2.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-5049750857505923002?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/5049750857505923002/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/10/fibonacci-series-introduction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5049750857505923002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5049750857505923002'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/10/fibonacci-series-introduction.html' title='Fibonacci Series: Introduction'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-5905835769981597706</id><published>2011-08-17T14:41:00.001-07:00</published><updated>2011-08-17T14:43:32.923-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='elementary'/><category scheme='http://www.blogger.com/atom/ns#' term='diophantine'/><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='integers'/><title type='text'>Are you smarter than a 6th grader?</title><content type='html'>This problem was proposed to a math olympiad for 6th graders. The solution doesn't require any algebra nor any more advanced tools, other than simply logic.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Problem&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Each apple costs $1 and each orange costs $1.01. Johnny has $101. How many ways are there for him to buy fruits, including possibly not buying anything? Sarah has $99. How many ways are there for her to buy fruits, including possibly not buying anything?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First we make an observation that 100 and 101 are relatively prime. So suppose Johnny buys X apples and Y oranges and spends exactly Z amount of money. If he wants to spend EXACTLY Z amount of money with a different combination of fruits, he would have to decrease X by 101 and increase Y by 100, or increase X by 101 and decrease Y by 100.&lt;br /&gt;&lt;br /&gt;For Johnny, &lt;br /&gt;&lt;br /&gt;Consider case 1: If Johnny spends exactly $101. Clearly he can buy 101 apples or 100 oranges, but these are the only two cases. &lt;br /&gt;&lt;br /&gt;Case 2: If Johnny spends less than $101. Now, pretend that the store only has 101 apples and 100 oranges (since Johnny can’t buy more apples or more oranges than these). &lt;br /&gt;&lt;br /&gt;Consider all the combinations of apples and oranges that Johnny can buy, and consider what’s left at the store. The total amount of goods in the store are $1 x 101 + $1.01 x 100 = $202. So if Johnny spends less than $101, the total amount goods left in the store is greater than $101. We can’t reverse this situation, that is, Johnny can never spend more than $101 so that the total amount left in the store is less than $101.&lt;br /&gt;&lt;br /&gt;This means, in all the possible combinations of x apples (x is from 0 to 101 inclusive) and y oranges (from 0 to 100 inclusive), for each combination that Johnny can buy, there is precisely one combination that Johnny couldn’t buy. The combinations that Johnny couldn’t buy represent the amount that would be left in the store if Johnny had bought the “complement” combination instead.&lt;br /&gt;&lt;br /&gt;The total number of combinations is 102 x 101 = 10302, (because we go from 0 apples to 101 inclusive, 0 oranges to 100 inclusive) but we have to subtract two combinations from case 1, so we have 10 300, split evenly between what Johnny could buy and couldn’t buy. So Johnny could buy 5150 combinations.&lt;br /&gt;&lt;br /&gt;Together from Case 1 and Case 2, Johnny could buy fruits in 5152 ways.&lt;br /&gt;&lt;br /&gt;For Sarah,&lt;br /&gt;&lt;br /&gt;Case 1: She spends exactly $99. She can buy 99 apples. She couldn’t buy any oranges because if she wants to buy any oranges she’d have to increase it in increments of 100 and decrease the apples in increments of 101, again because 101 and 100 are relatively prime.&lt;br /&gt;&lt;br /&gt;Now, consider the story of Johnny. Out of 5150 ways he could buy fruits, categorize them according to his spending:&lt;br /&gt;Category 1: He spends $0 to $98.99&lt;br /&gt;Category 2: He spends $99 exactly&lt;br /&gt;Category 3: He spends $99.01 to $100.99&lt;br /&gt;Category 4: He spends $101&lt;br /&gt;&lt;br /&gt;Suppose he buys a certain number of apples and oranges. In order to keep the spending amount intact and changes the number of apples or oranges, as we’ve noted above, he would have to change the number of apples and oranges in increments of 101 and 100 respectively. The total amount of goods being changes (from apples to oranges or vice versa) is already $101. This is why in category 4 he has two ways of buying good. But this means, in category 1, 2, and 3, for each spending amount, there’s at most one (possibly zero) way to buy fruits with that spending amount.&lt;br /&gt;&lt;br /&gt;Now, we show that $98.99 spending amount is unattainable. Johnny could achieve that amount by buying 100 apples and –1 oranges, or –1 apples and 99 oranges. Neither one are reasonable.&lt;br /&gt;&lt;br /&gt;Next, for each amount in category 1, we pair them up. We pair up X with $98.99 – X. For example, $0 and $98.99 is paired up. $0.01 and $98.98 is paired up, etc.&lt;br /&gt;&lt;br /&gt;We claim that within each pair, at most one value is attainable, possibly zero. If both values are attainable, say if Johnny could buy A apples and B oranges with X dollars and C apples and D oranges with $98.99 – X dollars, then he could buy (A+C) apples and (B+D) oranges with $98.99 dollars, a contradiction since we’ve shown that $98.99 is unattainable. So since there are 9900 values, and thus 4950 pairs of values, so there are at most 4950 ways to buy fruits in category 1. &lt;br /&gt;&lt;br /&gt;But then there is 1 way in category 2, and total of 5150 ways in category 1,2,3 altogether. So there are at least (5150 – 1 – 4950) = 199 ways to buy in category 3. But notice that there are exactly 199 values (amounts) in category 3, each of which can correspond to at most one way to buy fruits. Thus we must have that each value in category 3 is attainable by exactly one way of buying, and each pair of values in category 1 is attainable by exactly one way of buying.&lt;br /&gt;&lt;br /&gt;So in total, when Sarah spends her money, she can spend it from category 1 or 2, and there are 4950 + 1 = 4951 ways of buying.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-5905835769981597706?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/5905835769981597706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/08/are-you-smarter-than-6th-grader.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5905835769981597706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5905835769981597706'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/08/are-you-smarter-than-6th-grader.html' title='Are you smarter than a 6th grader?'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-2251250726578719897</id><published>2011-08-14T21:34:00.001-07:00</published><updated>2011-08-14T21:36:15.695-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='recursion'/><category scheme='http://www.blogger.com/atom/ns#' term='sequence'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><title type='text'>General Recursion</title><content type='html'>Given a recursive formula with $a_{n+1} = 2a_n -1$ and $a_1 = a$, find a general formula for $a_n$.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-2251250726578719897?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/2251250726578719897/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/08/general-recursion.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2251250726578719897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2251250726578719897'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/08/general-recursion.html' title='General Recursion'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-3568723240157649711</id><published>2011-07-23T03:41:00.000-07:00</published><updated>2011-07-23T03:42:44.414-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='prime'/><category scheme='http://www.blogger.com/atom/ns#' term='cubic number'/><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='divisibility'/><title type='text'>a,b,c fraction integer</title><content type='html'>Given positive integers $a,b,c$ such that &lt;br /&gt;$$\frac{a}{b} + \frac{b}{c} + \frac{c}{a}$$&lt;br /&gt;is also an integer, show that&lt;br /&gt;$$\frac{a^2b^2}{c},\frac{b^2c^2}{a}, \frac{c^2a^2}{b}$$&lt;br /&gt;are all cubic numbers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-3568723240157649711?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/3568723240157649711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/07/abc-fraction-integer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3568723240157649711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3568723240157649711'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/07/abc-fraction-integer.html' title='a,b,c fraction integer'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-8773590824620825126</id><published>2011-07-21T07:23:00.000-07:00</published><updated>2011-07-21T09:36:09.517-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='modulo'/><category scheme='http://www.blogger.com/atom/ns#' term='inverse modulo'/><category scheme='http://www.blogger.com/atom/ns#' term='induction'/><category scheme='http://www.blogger.com/atom/ns#' term='sequence'/><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><title type='text'>Sequence modulo 2011</title><content type='html'>A sequence of integers $a_1, \dots, a_{2010}$ satisfy the following properties:&lt;br /&gt;&lt;br /&gt;$a_1 - 1$ is divisible by 2011&lt;br /&gt;$a_k a_{k-1} - k$ is divisible by 2011 for $k = 2, 3, \dots, 2010$&lt;br /&gt;&lt;br /&gt;Show that $a_{2010} + 1$ is divisible by 2011.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First we prove the following assertion:&lt;br /&gt;&lt;br /&gt;For $k$ odd, then $a_k.2.4.6. \cdots.(k-1) - 1.3.5.\cdots.k$ is divisible by 2011.&lt;br /&gt;For $k$ even, then $a_k.1.3.5. \cdots .(k-1) - 2.4.6.\cdots.k$ is divisible by 2011.&lt;br /&gt;&lt;br /&gt;Proof by induction. It can easily be seen for $k=1$ it's true. For $k=2$, we have $2011 | a_2a_1 - 2 = a_2(a_1-1) + (a_2-2)$ So $2011 | a_2 - 2$&lt;br /&gt;&lt;br /&gt;Suppose it's true for $k-1$ odd, then for $k$ even:&lt;br /&gt;$2011 | a_k a_{k-1} - k$ which means &lt;br /&gt;$$2011 | 2.4.\cdots.(k-2) (a_k a_{k-1} - k) = 2.4.\cdots.(k-2)a_k a_{k-1} - 2.4.\cdots.(k-2).k$$&lt;br /&gt;$$2011 | a_k (2.\cdots.(k-2)a_{k-1} - 1.3.\cdots.(k-1)) + (a_k.1.3.\cdots.(k-1) - 2.\cdots.(k-2).k)$$&lt;br /&gt;And since 2011 divides the first term by induction hypothesis, then it also divides the second term, which completes the induction step. The proof for $k-1$ even and $k$ odd is similar.&lt;br /&gt;&lt;br /&gt;Now, that means for $k=2010$, let $X = a_{2010}$ we have:&lt;br /&gt;$$2011 | X.1.3. \cdots .2009 - 2.4.\cdots.2010$$&lt;br /&gt;&lt;br /&gt;We now prove the following assertion for $i = 1,2,\dots,1005$&lt;br /&gt;$$2011 | X.1.3. \cdots. (2011-2i) + (-1)^i (2i) (2i+2)\cdots.2010$$&lt;br /&gt;&lt;br /&gt;For $i = 1$ it is true by definition. Now suppose it's true for $i-1$, then for $i &gt; 1$:&lt;br /&gt;$$2011 | X.1.3. \cdots. (2011 - 2i).(2011-2i+2) +(-1)^{i-1} (2i-2) (2i)\cdots.2010$$&lt;br /&gt;if $2011 | a(2011+b) + c$ then $2011 | ab+c$&lt;br /&gt;$$2011 | X.1.3. \cdots. (2011 - 2i).(-2i+2) + (-1)^{i-1} (2i-2) (2i)\cdots.2010$$&lt;br /&gt;if $2011 | a$ then $2011 | -a$.&lt;br /&gt;$$2011 | X.1.3. \cdots. (2011 - 2i).(2i-2) + (-1)^{i} (2i-2) (2i)\cdots.2010$$&lt;br /&gt;$$2011 | 2(i-1)(X.1.3. \cdots. (2011 - 2i).+ (-1)^{i} (2i)\cdots.2010)$$&lt;br /&gt;if $2011 | 2(i-1)a$ then $2011 | a$ since 2011 is prime and $i &gt; 1$.&lt;br /&gt;&lt;br /&gt;So the assertion holds for $i = 1,\dots, 1005$. Particularly, for $i = 1005$ we have:&lt;br /&gt;$$2011 | X - 2010$$&lt;br /&gt;$$2011 | X + 1 - 2011$$&lt;br /&gt;$$2011 | X + 1$$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-8773590824620825126?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/8773590824620825126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/07/sequence-modulo-2011.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8773590824620825126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8773590824620825126'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/07/sequence-modulo-2011.html' title='Sequence modulo 2011'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-2123112820556871332</id><published>2011-07-13T14:25:00.000-07:00</published><updated>2011-07-13T14:55:21.464-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='color'/><category scheme='http://www.blogger.com/atom/ns#' term='colored'/><category scheme='http://www.blogger.com/atom/ns#' term='coloring'/><title type='text'>Colored chessboard</title><content type='html'>An $n \times n$ chessboard is put on the table such that its sides are facing the North, East, South, and West. Each cell is then colored either with red, green, blue, or yellow paint such that:&lt;br /&gt;1. The North-most cells are colored only with red or green&lt;br /&gt;2. The East-most cells are colored only with green or blue&lt;br /&gt;3. The South-most cells are colored only with blue or yellow&lt;br /&gt;4. The West-most cells are colored only with yellow or red&lt;br /&gt;&lt;br /&gt; Prove that there is a point that serves as a vertex to at least three  squares of different colors.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For each cell that has color red, green, blue, and yellow, give it a &lt;span style="font-style:italic;"&gt;rank&lt;/span&gt; of 1,2,3, and 4 respectively.&lt;br /&gt;&lt;br /&gt;Then for each "side" (a segment of line between two cells), mark it if:&lt;br /&gt;1. It delineates two cells. That is, sides that coincides with the sides of the large chess board cannot be marked.&lt;br /&gt;2. Those two cells have a &lt;span style="font-style:italic;"&gt;rank&lt;/span&gt; differing by exactly 1. &lt;br /&gt;&lt;br /&gt;Now, for each vertex, give it a &lt;span style="font-style:italic;"&gt;score&lt;/span&gt; as follows: &lt;br /&gt;1. The score of each vertex is the number of marked sides that border it. Thus, each cell might have a score of 0, 1, 2, 3, or 4.&lt;br /&gt;2. Vertices that lie on the sides of the large chess board also get their own score. These vertices cannot have a score of 4 of course, but give it a score regardless. Call these vertices the "border vertices" as opposed to "inner vertices"&lt;br /&gt;&lt;br /&gt;We assert the following: if an inner vertex has an odd score, then it serves as a vertex to at least three  squares of different colors. In other words, an inner vertex with an odd score is the vertex whose existence we seek to prove.&lt;br /&gt;&lt;br /&gt;Indeed, it is impossible to form an inner vertex with a score of 1 or 3 with merely one or two colors. For example, if the four squares surrounding the vertex has colors R,G,G,R, then the squares would have ranks of 1,2,2,1, and there are two marked sides. The other combinations are left to the reader as an exercise.&lt;br /&gt;&lt;br /&gt;Now, let $A$ be the sum of scores among the inner vertices, and $B$ be the total number of scores among the border vertices. $A+B$ must be even since each marked side contributes two points of score to that total.&lt;br /&gt;&lt;br /&gt;We will show that $B$ is odd. The Northwest (NW) corner must be colored red, and the NE corner must be colored green, and the North side must be colored only red or green. Thus, the North side changes color an odd number of times, and each change of color is between a red and a green, producing an odd number of marked sides in the process. These marked sides contribute 1 point each to $B$.&lt;br /&gt;&lt;br /&gt;The same argument can be made to the East side and the South side, but not the West side. In fact, none of the color changes on the West side contribute to $B$ at all since they're between a cell of rank 1 and rank 4. So in total, $B$ is a sum of three odd numbers, which means $B$ is odd.&lt;br /&gt;&lt;br /&gt;Since $A+B$ is even, then $A$ is odd. That means there must be at least one inner vertex that has an odd score, showing the existence of our desired vertex.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-2123112820556871332?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/2123112820556871332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/07/colored-chessboard.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2123112820556871332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2123112820556871332'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/07/colored-chessboard.html' title='Colored chessboard'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-3193406662202180952</id><published>2011-06-26T00:04:00.000-07:00</published><updated>2011-06-26T00:07:53.007-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='liar'/><category scheme='http://www.blogger.com/atom/ns#' term='binary'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='bipartite'/><title type='text'>liars and honest villagers</title><content type='html'>In a village, there are $n$ people who each has an ID number from 1 to $n$. Each person is either completely honest or a total liar. One day, a detective came to visit and interviewed them. This is what they told him:&lt;br /&gt;&lt;br /&gt;If a person had an ID number $x$ where $x$ is even, he said:&lt;br /&gt;"The person whose ID number is $x/2$ is honest"&lt;br /&gt;&lt;br /&gt;If a person had an ID number $x$ where $x$ is odd and greater than one, he said:&lt;br /&gt;"The person whose ID number is $(x-1)/2$ is a liar"&lt;br /&gt;&lt;br /&gt;Person with ID number of 1 did not say anything.&lt;br /&gt;&lt;br /&gt;If $L$ is the number of liars and $H$ is the number of honest villagers, find all possible values of $L-H$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-3193406662202180952?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/3193406662202180952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/06/liars-and-honest-villagers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3193406662202180952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3193406662202180952'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/06/liars-and-honest-villagers.html' title='liars and honest villagers'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-6344573497749162660</id><published>2011-06-21T10:18:00.000-07:00</published><updated>2011-06-24T07:59:29.174-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='convex'/><category scheme='http://www.blogger.com/atom/ns#' term='induction'/><category scheme='http://www.blogger.com/atom/ns#' term='majorization'/><category scheme='http://www.blogger.com/atom/ns#' term='Inequality'/><title type='text'>Inequality</title><content type='html'>If $x_1,\dots,x_n$ are real numbers such that $0 \leq x_i \leq 1 \forall i$, and satisfies $x_1 + \dots + x_n = m+r$ where $m$ is an integer and $0 \leq r &lt; 1$, show that:&lt;br /&gt;&lt;br /&gt;$$(1+x_1)(1+x_2)\dots(1+x_n) \geq (1+r)2^m$$&lt;br /&gt;&lt;br /&gt;Determine the conditions under which equality is achieved.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For each $i$ such that $x_i = 0$ or $x_i = 1$, we can safely eliminate them from the problem without changing neither the condition nor the inequality. So without loss of generality, we can assume that $0 &lt; x_i &lt; 1$ for all $i$.&lt;br /&gt;&lt;br /&gt;Now, we prove by induction on $n$. It is trivial for $n=1$. For $n=2$, we have two cases:&lt;br /&gt;1. The &lt;span style="font-style:italic;"&gt;simple&lt;/span&gt; case, $x_1 + x_2 = r &lt; 1$ then the inequality also holds trivially&lt;br /&gt;2. The &lt;span style="font-style:italic;"&gt;overflowing&lt;/span&gt; case, where $1 &lt; x_1 + x_2 = 1 + r$, then:&lt;br /&gt;$$(1-x_1)(1-x_2) \geq 0$$&lt;br /&gt;$$\iff 1+x_1x_2 \geq x_1+x_2 = 1+r$$&lt;br /&gt;$$\iff 1+x_1+x_2+x_1x_2 \geq 2+2r$$&lt;br /&gt;$$\iff (1+x_1)(1+x_2) \geq 2(1+r)$$&lt;br /&gt;&lt;br /&gt;Now, for a larger value of $n$, suppose that the inequality is established for $n-1$, and suppose that $x_1 + \dots + x_{n-1} = m + r$. Again we have two cases, &lt;br /&gt;&lt;br /&gt;1. The simple case, if $x_n + r &lt; 1$ then $x_1 + \dots + x_n = m+ (r+x_n) &lt; m+1$&lt;br /&gt;$$(1+x_1)\dots(1+x_{n-1})(1+x_n) \geq (1+x_n)(1+r)2^m \geq (1+r+x_n)2^m$$ &lt;br /&gt;which follows from the simple case for $n=2$ above.&lt;br /&gt;&lt;br /&gt;2. The overflowing case, if $1 &lt; x_n + r = 1 + r_2$ then $x_1 + \dots + x_n = (m+1) + r_2$&lt;br /&gt;&lt;br /&gt;$$(1+x_1) \dots (1+x_{n-1})(1+x_n) \geq (1+x_n)(1+r)2^m$$&lt;br /&gt;$$ \geq (1+r_2)2^{m+1}$$&lt;br /&gt;which is similar to the overflowing case from $n=2$ above.&lt;br /&gt;&lt;br /&gt;The equality cases can be determined as follows:&lt;br /&gt;If all $x_i$s are zeros or ones, then the equality follows trivially. We assert then at most one of the $x_i$s are strictly between zero and one. Because if there are two of them, then both the simple case and the overflowing case in $n=2$ will never reach equality. The inductive step in the proof also depends on these two cases.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-6344573497749162660?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/6344573497749162660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/06/inequality.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6344573497749162660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6344573497749162660'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/06/inequality.html' title='Inequality'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-1295277786017160796</id><published>2011-06-12T13:21:00.000-07:00</published><updated>2011-06-13T07:32:46.189-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='modulo'/><category scheme='http://www.blogger.com/atom/ns#' term='supersum'/><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='digit'/><category scheme='http://www.blogger.com/atom/ns#' term='subset'/><title type='text'>Supersum</title><content type='html'>For a natural number $n$, the supersum of $n$ is defined as the sum of possible combinations that we can obtain by deleting digits of $n$, calculated as modulo 9. For example, the supersum of 1234 is:&lt;br /&gt;&lt;br /&gt;No deletions:  1234 + &lt;br /&gt;Deleting 1 digit:  123 +  134 +  234 +  124&lt;br /&gt;Deleting 2 digits:  12 +  13 +  14 +  23 +  24 +  34 + &lt;br /&gt;Deleting 3 digits:  1 +  2 +  3 +  4&lt;br /&gt;&lt;br /&gt;$ = 8 \mod 9$&lt;br /&gt;&lt;br /&gt;If $n$ is a 2011-digit number, and $s$ is its supersum, show that $s-n$ is divisible by 9.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-1295277786017160796?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/1295277786017160796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/06/supersum.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1295277786017160796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1295277786017160796'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/06/supersum.html' title='Supersum'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-3829772311246108081</id><published>2011-05-18T17:58:00.000-07:00</published><updated>2011-05-18T19:01:27.553-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='circular'/><category scheme='http://www.blogger.com/atom/ns#' term='prime'/><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='locker'/><category scheme='http://www.blogger.com/atom/ns#' term='factorization'/><title type='text'>Circular Locker Problem</title><content type='html'>From a friend's brother:&lt;br /&gt;&lt;br /&gt;There are 1000 lockers and 1000 students. The lockers are arranged in a circle, all closed. The 1st student opens all the lockers. The 2nd student closes every other locker. The 3rd student goes to every 3rd locker. If it’s open he closes it, if it’s closed, he opens it. When he gets to locker #999, he continues to locker #2 and continues until he reaches a locker that he has already touched. The 4th student goes to every 4th locker: again, if it’s closed, he opens it, if it’s open, he closes it. Every student after that does the same, until student #1000, who will obviously just open or close locker #1000. After they are all finished, which lockers will be open?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First, let's think about what happens when student $n$ does his turn.&lt;br /&gt;&lt;br /&gt;If $n$ is relatively prime to 1000, that is, $n$ does not contain any factor of 2 or 5, then $n$ will touch all the lockers exactly once. For example, student #3 will go touching lockers 3,6,...,999,2,5,...,998,1,4,7,...,997,1000. In this case student $n$ behaves exactly like student #1. &lt;br /&gt;&lt;br /&gt;If $n$ is a multiple of $2$ or $5$, then let $d = \gcd(1000,n)$ Student $n$ touches locker $m$ if and only if $d$ divides $m$. For example, if $n=16$, then $d = 8$. Student #16 will go touching lockers 16,32,...,992,8,24,...,1000, which are exactly all multiples of 8. In this case, student $n$ behaves exactly like student #8.&lt;br /&gt;&lt;br /&gt;Now, how many students have numbers that are NOT relatively prime to 1000? Such students must have numbers in the form of $n = 2^a 5^b$ We can enumerate the possibilities:&lt;br /&gt;&lt;br /&gt;If $b=0$, then the student numbers are: 2,4,8,16,32,64,128,256,512, for a total of 9 students. Remember that students #16,32,...,512 behave exactly like student #8,and there are 6 of them, so it's equivalent to student #8 going 6 extra times. Their effects cancel out pairwise. So we only need to consider the effects of students #2,4,8.&lt;br /&gt;&lt;br /&gt;If $b=1$, then the student numbers are: 5,10,20,40,80,160,320,640, for a total of 8 students. Remember that students #80,...,640 behave exactly like student #40,and there are 4 of them, so their effects cancel out pairwise. So we only need to consider the effects of students #5,10,20,40.&lt;br /&gt;&lt;br /&gt;If $b=2$, then the student numbers are: 25,50,100,200,400,800, for a total of 6 students. Remember that students #400,8000 behave exactly like student #200, so their effects cancel out. So we only need to consider the effects of students #25,50,100,200.&lt;br /&gt;&lt;br /&gt;If $b=3$, then the student numbers are: 125,250,500,1000.&lt;br /&gt;&lt;br /&gt;If $b=4$, then the student number is: 625, which behaves like student #125, and thus cancels the effect of student #125.&lt;br /&gt;&lt;br /&gt;So in total, there are 9+8+6+4+1 = 28 numbers that are not relatively prime to 1000, so there are an even numbers of students that are relatively prime. Each of these students touches all lockers exactly once, so their effects again cancel out pairwise. Thus, the student numbers that we need to consider are: (grouped by their largest factor of 2):&lt;br /&gt;5,25&lt;br /&gt;2,10,50,250&lt;br /&gt;4,20,100,500&lt;br /&gt;8,40,200,1000&lt;br /&gt;&lt;br /&gt;In order to determine if locker $n$ is closed or open, find all numbers above that divides $n$. If there are even such numbers, then the locker is close, otherwise it's open. &lt;br /&gt;&lt;br /&gt;For example, 120 = 3 x 5 x 8, so 120 is divisible by 2,4,8, 5,10,20,40. That means locker #120 is open.&lt;br /&gt;&lt;br /&gt;For a more explicit list of open lockers, the following are the open lockers:&lt;br /&gt;1. Lockers with numbers (not divisible by 5 or divisible by 25), and (divisible by 2 but not by 4, or divisible by 8).&lt;br /&gt;2. Lockers with numbers divisible by 5 but not 25, and (divisible by 4 but not by 8).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-3829772311246108081?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/3829772311246108081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/05/circular-locker-problem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3829772311246108081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3829772311246108081'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/05/circular-locker-problem.html' title='Circular Locker Problem'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-903581708058873274</id><published>2011-05-16T15:12:00.000-07:00</published><updated>2011-05-16T15:43:03.010-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='imo'/><category scheme='http://www.blogger.com/atom/ns#' term='card'/><title type='text'>Magician and cards</title><content type='html'>From IMO 2000, problem 4:&lt;br /&gt;&lt;br /&gt;A magician has one hundred cards numbered 1 to 100. He puts them into three boxes, a red one, a white one and a blue one, so that each box contains at least one card. A member of the audience draws two cards from two different boxes and announces the sum of numbers on those cards. Given this information, the magician locates the box from which no card has been drawn.&lt;br /&gt;&lt;br /&gt;How many ways are there to put the cards in the three boxes so that the trick works?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There are 12 possible ways to divide the card:&lt;br /&gt;1. RWWW...WWWB (Card 1 goes to red box, card 2 to 99 go to white box, and card 100 goes to blue box) and all of its permutations, for a total of 6 ways.&lt;br /&gt;2. RWBRWBRWB...  and all of its permutations, for a total of 6 ways.&lt;br /&gt;&lt;br /&gt;We now show that there are no other ways to put the cards. Consider the placement string (RWB string as in the example above). We will divide into two major cases: those with repeating characters, and those without repeating characters.&lt;br /&gt;&lt;br /&gt;First, note that if there is a substring "RW" anywhere in the string, we don't allow substring "RB," for otherwise we can have an ambiguous sum of W+R versus R+B. Likewise, if there is a substring "RW" then we don't allow "BW."&lt;br /&gt;&lt;br /&gt;Now, suppose there is a repeating substring "WW." Then we can't have a "RB" or "BR" anywhere in the string because there would be an ambiguous sum of R+W versus B+W.&lt;br /&gt;&lt;br /&gt;Note that if we already have a "WW" then we can't have a "BB" because "BB" would mean that no "RW" or "WR" can exist, but we already established that no "RB" or "BR" can exist. So combination of "WW" and "BB" altogether would make it impossible for any "R" to exist in the string, a contradiction.&lt;br /&gt;&lt;br /&gt;Consider the last B in the string, and call this B'. There are 4 possibilities of strings that come after B':&lt;br /&gt;1. B'B: contradiction because B' is the last B in the string&lt;br /&gt;2. B'R: contradiction because no BR is allowed&lt;br /&gt;3. B'W&lt;br /&gt;4. B' is the last letter in the whole string. &lt;br /&gt;&lt;br /&gt;Consider also the last R in the string, call it R'. As in B', we only have 2 possibilities of strings that come after R':&lt;br /&gt;5. R'W&lt;br /&gt;6. R' is the last letter in the whole string.&lt;br /&gt;&lt;br /&gt;Now obviously 4 and 6 cannot both be true, so one of them (possibly both) must be false. WLOG, we can assume that 6 is false, then 5 has to be true. If there's RW, we cannot have BW, so 3 is false, which means 4 is true. &lt;br /&gt;&lt;br /&gt;So the last R in the string is followed by a W, and B is the last letter in the whole string. Since there already is an RW, we can't have a BW in the entire string. Also, we can't have BB, or BR, so there's no other place for another B. That means B' is the last and only B in the string.&lt;br /&gt;&lt;br /&gt;Now, R' can't be preceded by another R (because no RR is allowed), nor by a B (because no BR is allowed), nor by a W, because a WR and a WB' can't both exist. So R' is the earliest R in the string. Since it's also the last, then R' is the only R in the string.&lt;br /&gt;&lt;br /&gt;So we have RWW...WWB (and all of its permutations) as the only solution that allows repetition between characters.&lt;br /&gt;&lt;br /&gt;Now, suppose there's no repeated characters. We assert that we cannot have a pattern like "RWR" anywhere in the string. Because the character that comes after "RWR" cannot be B, because "RWRB" gives an ambiguous sum of R+B and W+R. We also cannot have RWRR for there's no repeating characters. So we must have either "RWRW" or the fact that RWR is the ending of the entire string. If it is the ending, then we apply the same argument forward, and conclude that the ending must be WRWR. Either way, an RWR can be extended to RWRW or WRWR. But since there is at least one B in the string, and this B cannot be adjacent to another B, and we can't have BW, WB, BR, or RB either, a contradiction. So there must not be any RWR or its permutations anywhere in the string.&lt;br /&gt;&lt;br /&gt;Suppose card 1 goes to R, and card 2 goes to W. Card 3 can go to:&lt;br /&gt;1. R, forming RWR, contradiction&lt;br /&gt;2. W, forming a WW, contradiction&lt;br /&gt;3. B.&lt;br /&gt;&lt;br /&gt;So we have RWB as the beginning of the string. Now card 4 can go to:&lt;br /&gt;1. R&lt;br /&gt;2. W, forming a WBW, contradiction&lt;br /&gt;3. B, forming a WBB, contradiction.&lt;br /&gt;So card 4 must go to R. &lt;br /&gt;&lt;br /&gt;We can continue this argument inductively to arrive that the entire string must have the form: RWBRWBRWB....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-903581708058873274?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/903581708058873274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/05/magician-and-cards.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/903581708058873274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/903581708058873274'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/05/magician-and-cards.html' title='Magician and cards'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-7352227273197102449</id><published>2011-05-05T11:42:00.000-07:00</published><updated>2011-05-05T11:43:47.822-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='functional equation'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><title type='text'>Function from N to N</title><content type='html'>Find all functions $ f:\mathbb{N}^{*}\rightarrow\mathbb{N}^{*} $&lt;br /&gt; such that&lt;br /&gt;&lt;br /&gt;$f(n)+f(n+1)+f(f(n))=3n+1  (\forall)n\in\mathbb{N}^{*} $&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-7352227273197102449?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/7352227273197102449/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/05/function-from-n-to-n.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/7352227273197102449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/7352227273197102449'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/05/function-from-n-to-n.html' title='Function from N to N'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-5118721719960837922</id><published>2011-04-27T22:22:00.001-07:00</published><updated>2011-04-27T22:26:06.333-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ceiling'/><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><category scheme='http://www.blogger.com/atom/ns#' term='floor'/><title type='text'>Floor And Ceiling</title><content type='html'>Show that there are positive integers $a,b,c,d$ with $b,d &lt; 100$ such that:&lt;br /&gt;&lt;br /&gt;$$\lfloor \frac{a}{b} k \rfloor = \lfloor \frac{73}{100} k \rfloor$$&lt;br /&gt;&lt;br /&gt;and&lt;br /&gt;&lt;br /&gt;$$\lceil \frac{c}{d} k \rceil = \lceil \frac{73}{100} k \rceil$$&lt;br /&gt;&lt;br /&gt;For all $k = 1,2,\dots,99$&lt;br /&gt;&lt;br /&gt;Note: $\lfloor x \rfloor$ denotes the floor function and $\lceil x \rceil$ denotes the ceiling function&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-5118721719960837922?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/5118721719960837922/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/04/floor-and-ceiling.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5118721719960837922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5118721719960837922'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/04/floor-and-ceiling.html' title='Floor And Ceiling'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-6428347670624687567</id><published>2011-04-21T12:16:00.000-07:00</published><updated>2011-04-27T22:21:10.725-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='shuffling'/><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='permutation'/><category scheme='http://www.blogger.com/atom/ns#' term='card'/><title type='text'>Shuffling Card</title><content type='html'>A deck of 31 cards is being shuffled, where at each point, the shuffler may perform the following operation:&lt;br /&gt;&lt;br /&gt;1. Cut the deck in half and interleave each half to perform a new deck. The cards at position 1,2,3,...,15 now occupy position 2,4,6,...,30, and the cards at position 16,..., 31 now occupy position 1,3,...,31.&lt;br /&gt;&lt;br /&gt;2. Similar to operation one, but with different "cut." The cards at position 1,2,3,...,16 now occupy position 1,3,5,...,31, and the cards at position 17,...,31 now occupy position 2,4,6,...,30.&lt;br /&gt;&lt;br /&gt;3. Take $m$ cards from the top and move them to the bottom of the deck (a standard cut). &lt;br /&gt;&lt;br /&gt;Starting from the original configuration, how many different configurations can be achieved by repeating the three operations above?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;There are $5.31 = 155$ different configurations.&lt;br /&gt;First, it's clear that the deck can be "rotated" in any amount along one direction, so we only consider rotational configurations.&lt;br /&gt;Step 1 moves cards from position $m$ to $2m \mod 31$&lt;br /&gt;Step 2 moves cards from position $m$ to $2m-1 \mod 31$&lt;br /&gt;Step 3 moves cards from position $m$ to $m+k \mod 31$ for some $k$.&lt;br /&gt;&lt;br /&gt;Now, step 3 does not change the rotational configurations. Step 1 and 2 both can be consolidated into the move from $m$ to $2m \mod 31$ and followed by a suitable number of step 3.&lt;br /&gt;&lt;br /&gt;Thus, the number of different rotational configurations are the smallest number $n$ such that $2^n \equiv 1 \mod 31$, and that means $n=5$.&lt;br /&gt;&lt;br /&gt;So there are 5 rotational configurations and 31 configurations within each rotational configuration, for a total of 155.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-6428347670624687567?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/6428347670624687567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/04/shuffling-card.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6428347670624687567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6428347670624687567'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/04/shuffling-card.html' title='Shuffling Card'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-7206176296871400775</id><published>2011-04-08T08:52:00.000-07:00</published><updated>2011-04-08T08:53:43.253-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='functional equation'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><title type='text'>Functional Equation</title><content type='html'>Find all functions $f:N \to N$ such that:&lt;br /&gt;&lt;br /&gt;$$f(f(m+n)) = f(m) + f(n) \forall m,n \in N$$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-7206176296871400775?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/7206176296871400775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/04/functional-equation.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/7206176296871400775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/7206176296871400775'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/04/functional-equation.html' title='Functional Equation'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-1669145654646131113</id><published>2011-04-06T05:18:00.001-07:00</published><updated>2011-04-06T05:42:34.019-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='function'/><category scheme='http://www.blogger.com/atom/ns#' term='composition'/><category scheme='http://www.blogger.com/atom/ns#' term='functional equation'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><title type='text'>Function Composition</title><content type='html'>Are there real-valued continuous functions $f,g$ defined on real numbers such that&lt;br /&gt;$$f(g(x)) = x^{2011}$$&lt;br /&gt;and&lt;br /&gt;$$g(f(x)) = 2011x$$&lt;br /&gt;&lt;br /&gt;for all $x$?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Applying $g$ to both sides, we have:&lt;br /&gt;$$g(f(g(x))) = g(x^{2011})$$&lt;br /&gt;$$2011g(x) = g(x^{2011})$$&lt;br /&gt;&lt;br /&gt;Let $x = 1$, we have $g(1) = 0$&lt;br /&gt;&lt;br /&gt;Let $P(y) = g(e^y)$ defined on all $y$ real numbers.&lt;br /&gt;So $P(2011y) = g(e^{2011y}) = g((e^y)^{2011}) = 2011g(e^y) = 2011P(y)$&lt;br /&gt;We conjecture that $P(y) = ay$ for some $a$. Setting $x = e^y$, we have:&lt;br /&gt;$$g(x) = g(e^y) = P(y) = ay = a \log x$$&lt;br /&gt;&lt;br /&gt;Now plugging back in, our second equation becomes:&lt;br /&gt;$$a \log f(x) = 2011 x$$&lt;br /&gt;$$f(x) = e^{2011x / a}$$&lt;br /&gt;&lt;br /&gt;Testing for compatibility with first equation:&lt;br /&gt;&lt;br /&gt;$$f(g(x)) = e^{2011 a \log x / a} = e^{2011 \log x} = x^{2011}$$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-1669145654646131113?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/1669145654646131113/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/04/function-composition.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1669145654646131113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1669145654646131113'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/04/function-composition.html' title='Function Composition'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-6925490073285619432</id><published>2011-04-05T15:33:00.000-07:00</published><updated>2011-04-06T05:14:17.828-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='function'/><category scheme='http://www.blogger.com/atom/ns#' term='geometric mean'/><category scheme='http://www.blogger.com/atom/ns#' term='symmetric'/><category scheme='http://www.blogger.com/atom/ns#' term='homogeneous'/><category scheme='http://www.blogger.com/atom/ns#' term='functional equation'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><title type='text'>Symmetric Function in 3 Variables</title><content type='html'>A function $f$ is defined from a triplet of positive reals to a positive real number $f:R_+^3 \to R_+$ and satisfies the following:&lt;br /&gt;&lt;br /&gt;1. $f$ is symmetric in all 3 variables. That is $f(a,b,c) = f(b,a,c) = f(a,c,b) = ...$&lt;br /&gt;2. For any positive real $t$, $f(ta,tb,tc) = tf(a,b,c)$&lt;br /&gt;3. $f(1/a, 1/b, 1/c) = 2011^2/f(a,b,c)$&lt;br /&gt;4. $f(a,b,c) = f(\sqrt{ab}, \sqrt{ab}, c)$&lt;br /&gt;&lt;br /&gt;Determine how many triplet of positive integers $(x,y,z)$ are there such that $f(1/x,1/y,1/z) = 1$&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;From rule 3, we have $f(1,1,1) = 2011^2/f(1,1,1)$, so $f(1,1,1) = 2011$. &lt;br /&gt;&lt;br /&gt;Now, for any $u,v &gt; 0$,&lt;br /&gt;$f(u,v,1/(uv)) = f(\sqrt{uv}, \sqrt{uv}, 1/(uv))$ using rule 4&lt;br /&gt;and&lt;br /&gt;$f(uv,1,1/(uv)) = f(\sqrt{uv}, \sqrt{uv}, 1/(uv))$ using rule 4&lt;br /&gt;So&lt;br /&gt;$f(u,v,1/(uv)) = f(uv,1,1/(uv)) = f(uv, 1/(uv), 1) = f(1,1,1) = 2011$&lt;br /&gt;&lt;br /&gt;Now, for any $t,u,v$, let $k = \sqrt[3]{tuv}$, then $t = k^3/uv$&lt;br /&gt;$f(t,u,v) = f(k^3/uv, u, v) = kf(k^2/uv, u/k, v/k) = kf(u/k, v/k, 1/((u/k)(v/k))) = 2011k =  2011\sqrt[3]{tuv}$&lt;br /&gt;&lt;br /&gt;Thus $f(t,u,v) =  2011\sqrt[3]{tuv}$ for all $t,u,v$.&lt;br /&gt;&lt;br /&gt;Now we need to determine the number of positive integer triples $(x,y,z)$ such that&lt;br /&gt;$$f(1/x,1/y,1/z) = \frac{2011}{\sqrt[3]{xyz}} = 1$$&lt;br /&gt; $$xyz = 2011^3$$ &lt;br /&gt;Since 2011 is a prime, there are only the following possibilities:&lt;br /&gt;1. $(1,1,2011^3)$ and all its permutations, there are three triplets.&lt;br /&gt;2. $(1,2011, 2011^2)$ and all its permutations, there are six triplets.&lt;br /&gt;3. $(2011,2011,2011)$, there is one triplet.&lt;br /&gt;&lt;br /&gt;So in total, there are ten triplets that satisfy the condition.&lt;br /&gt;&lt;br /&gt;The above conditions could be tailored to fit any symmetric functions. For example, for $f = a^2 + b^2 + c^2 + k$ one can have the following conditions:&lt;br /&gt;&lt;br /&gt;1. $f$ is symmetric&lt;br /&gt;2. $f(\sqrt{a^2+t},b,c) = f(a,b,c) + t$&lt;br /&gt;3. Any condition that would determine $f(0,0,0)$&lt;br /&gt;4. $f(a,b,c) = f(\sqrt{(a^2+b^2)/2},\sqrt{(a^2+b^2)/2},c)$&lt;br /&gt;&lt;br /&gt;Likewise, for $f = ab+bc+ca$ one can have the following conditions (really hard):&lt;br /&gt;1. $f$ is symmetric&lt;br /&gt;2. $f(a+t,b,c) = f(a,b,c) + t(b+c)$&lt;br /&gt;3. Any condition that would determine $f(0,0,0)$&lt;br /&gt;4. $f(a,b,c) = f(k,k,c)$ where $k = \sqrt{(a+c)(b+c)}-c$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-6925490073285619432?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/6925490073285619432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/04/symmetric-function-in-3-variables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6925490073285619432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6925490073285619432'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/04/symmetric-function-in-3-variables.html' title='Symmetric Function in 3 Variables'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-7159565304181446677</id><published>2011-03-23T05:46:00.001-07:00</published><updated>2011-03-25T22:11:22.760-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='recursion'/><category scheme='http://www.blogger.com/atom/ns#' term='iterative'/><category scheme='http://www.blogger.com/atom/ns#' term='sequence'/><category scheme='http://www.blogger.com/atom/ns#' term='natural numbers'/><category scheme='http://www.blogger.com/atom/ns#' term='positive integers'/><category scheme='http://www.blogger.com/atom/ns#' term='integers'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><title type='text'>Sequence of natural numbers</title><content type='html'>Suppose $a_1,a_2,\dots, a_n,\dots$ is a sequence of natural numbers that satisfy:&lt;br /&gt;&lt;br /&gt;$$a_{a_n} = 6n - a_n$$&lt;br /&gt;&lt;br /&gt;for all $n$. Find $a_{2011}$.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For a fixed $n$, let $x_0 = n$&lt;br /&gt;$$x_1 = a_n$$&lt;br /&gt;$$x_2 = a_{x_1}$$&lt;br /&gt;$$x_3 = a_{x_2}$$&lt;br /&gt;$$\cdots$$&lt;br /&gt;$$x_n = a_{x_{n-1}}$$&lt;br /&gt;&lt;br /&gt;Then:&lt;br /&gt;$$x_2 = a_{x_1} = a_{a_n} = 6n - a_n = 6x_0 - x_1$$&lt;br /&gt;$$x_3 = a_{x_2} = a_{a_{x_1}} = 6x_1 - a_{x_1} = 6x_1 - x_2$$&lt;br /&gt;In general:&lt;br /&gt;$$x_{n+2} = a_{x_{n+1}} = a_{a_{x_n}} = 6x_n - a_{x_n} = 6x_n - x_{n+1}$$&lt;br /&gt;$$x_{n+2} + x_{n+1} - 6x_n = 0$$&lt;br /&gt;&lt;br /&gt;This is a second order recursion with characteristic equation $t^2 + t - 6 = 0$ with solutions $t = -3, t = 2$.&lt;br /&gt;&lt;br /&gt;So the general term for $x_n$ is:&lt;br /&gt;$$x_n = P.2^n + Q.(-3)^n$$.&lt;br /&gt;However, for $x_n$ to be positive for all $n$, then $Q$ must be zero, otherwise with large enough $n$, $x_n$ could eventually be negative. Thus $x_n = P.2^n$ for some $P$.&lt;br /&gt;&lt;br /&gt;$a_n = x_1 = 2P = 2.P = 2x_0 = 2n$&lt;br /&gt;&lt;br /&gt;After substituting back, we find that $a_n = 2n$ satisfies all the constraints, so we have $a_n = 2n$ for all $n$.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-7159565304181446677?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/7159565304181446677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/03/sequence-of-natural-numbers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/7159565304181446677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/7159565304181446677'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/03/sequence-of-natural-numbers.html' title='Sequence of natural numbers'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-4618112179730264284</id><published>2011-03-08T06:34:00.000-08:00</published><updated>2011-03-08T13:48:14.379-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='circle'/><category scheme='http://www.blogger.com/atom/ns#' term='tangent circles'/><category scheme='http://www.blogger.com/atom/ns#' term='Geometry'/><title type='text'>Technology Review March/April 2011 Problem 3</title><content type='html'>&lt;a href="http://3.bp.blogspot.com/-HVj4ek48UvQ/TXZFUNIqIWI/AAAAAAAAA38/8t0b5PiZSY4/s1600/tech%2Breview%2Bma%2B2011.png"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 317px;" src="http://3.bp.blogspot.com/-HVj4ek48UvQ/TXZFUNIqIWI/AAAAAAAAA38/8t0b5PiZSY4/s320/tech%2Breview%2Bma%2B2011.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5581725001597985122" /&gt;&lt;/a&gt;&lt;br /&gt;The figure contains three semicircles and one circle. The semicircles all have horizontal diameters, and their centers are shown. Their radii are $R, r_1, r_2$ with $r_1 + r_2 = R$. The circle is constructed tangent to the three semicircles. Find $p$ the radius of the circle, and show that the distance from its center to the baseline is $2p$.&lt;br /&gt;&lt;br /&gt;(Note: I couldn't draw them as semicircles and I was too lazy to crop the image. But you get the idea).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Suppose the circle centered in $A$ has radius $r_1$, and the circle centered in $B$ has radius $r_2$. We can readily see that $BC = r_1$ and $AC = r_2$. Also because the third circle is tangent to all circles:&lt;br /&gt;$OA = p+r_1$&lt;br /&gt;$OB = p+r_2$&lt;br /&gt;$OC = r_1 + r_2 -p$&lt;br /&gt;&lt;br /&gt;From Stewart's Theorem:&lt;br /&gt;&lt;br /&gt;$$OC^2 AB = OA^2 BC + OB^2 AC - AB.BC.AC$$&lt;br /&gt;$$(r_1 + r_2 - p)^2 (r_1+r_2) = r_1(p+r_1)^2 +r_2(p+r_2)^2 - r_1 r_2 (r_1 + r_2)$$&lt;br /&gt;&lt;br /&gt;The coefficient of $p^2$ on both sides of that equation is $r_1 + r_2$, thus this is not a quadratic equation, but merely a linear equation in $p$. Expanding and canceling both sides gives us:&lt;br /&gt;&lt;br /&gt;$$ p = \frac{r_1r_2(r_1+r_2)}{(r_1+r_2)^2-r_1r_2} = \frac{r_1r_2R}{R^2-r_1r_2}$$&lt;br /&gt;&lt;br /&gt;To compute the distance $h$ from $O$ to $AB$, first we calculate the area of triangle $OAB$. Since $OA = p+r_1, OB = p+r_2, AB = r_1+r_2$, we can use Heron's formula:&lt;br /&gt;&lt;br /&gt;$$S_{OAB} = \sqrt{(p+r_1+r_2)pr_1r_2} = \frac{1}{2} h AB = \frac{1}{2} h R$$&lt;br /&gt;$$4(p+r_1+r_2)pr_1r_2 = h^2 R^2$$&lt;br /&gt;$$h^2 = \frac{4(p+r_1+r_2)pr_1r_2}{R^2}$$&lt;br /&gt;&lt;br /&gt;Now note that $p+r_1+r_2 = p+R = \frac{r_1r_2R}{R^2-r_1r_2} + R = \frac{R^3}{R^2-r_1r_2}$&lt;br /&gt;&lt;br /&gt;Plug this into the equation above:&lt;br /&gt;&lt;br /&gt;$$h^2 = \frac{4(p+R)pr_1r_2}{R^2} = \frac{4}{R^2} \frac{R^3}{R^2-r_1r_2} \frac{r_1r_2R}{R^2-r_1r_2} r_1r_2 = 4 \frac{(r_1r_2R)^2}{(R^2-r_1r_2)^2}$$&lt;br /&gt;$$h = 2p$$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-4618112179730264284?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/4618112179730264284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/03/technology-review-marchapril-2011_2294.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4618112179730264284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4618112179730264284'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/03/technology-review-marchapril-2011_2294.html' title='Technology Review March/April 2011 Problem 3'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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/-HVj4ek48UvQ/TXZFUNIqIWI/AAAAAAAAA38/8t0b5PiZSY4/s72-c/tech%2Breview%2Bma%2B2011.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6803079253342371630.post-9101962028554923949</id><published>2011-03-08T06:31:00.000-08:00</published><updated>2011-03-08T13:14:31.029-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='repetition'/><category scheme='http://www.blogger.com/atom/ns#' term='infinite chess'/><category scheme='http://www.blogger.com/atom/ns#' term='chess board'/><category scheme='http://www.blogger.com/atom/ns#' term='lattice'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><title type='text'>Technology Review March/April 2011 Problem 2</title><content type='html'>On an infinite chessboard an Obamaknight can move six spaces in any direction, then turn left and move one space. For example, from (5,-3) he can move to N-W to (4,3) followed by two moves E-N ending at (16,5). Place a finite number of Obamaknight on the board so that (allowing an arbitrary number of moves):&lt;br /&gt;i. no one of them can reach any other one of them&lt;br /&gt;ii. any position on the board can be reached by one of them&lt;br /&gt;&lt;br /&gt;Extension: a modern Obamaknight moves six spaces in any direction, then turns left or right and moves one space. Place a finite number of modern Obamaknights with the above properties.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution to original problem:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We begin by noticing that the moves are commutative. When two moves are swapped, the ending position is still the same. There are only four possible moves: N-W, E-N, S-E, and W-S. Furthermore, each pair of N-W and W-S "cancel out", and so do E-N and W-S. So each sequence of moves is equivalent to $a$ moves of N-W followed by $b$ moves of $E-N$ for some integers $a,b$.&lt;br /&gt;&lt;br /&gt;If we start at $(0,0)$, and make $a$ moves of $N-W$ + $b$ moves of $E-N$, we will end up at $(-a+6b ,6a+b)$. If we vary $a,b$ over all possible integers, we will get a grid of parallelograms, where one parallelogram has vertices at cells $(0,0), (-1,6), (6,1), (5,7)$. Any cell in this grid (that is, any cell that serves as a vertex of a parallelogram in this grid) can be reachable from $(0,0)$ with proper choice of $a$ and $b$. Conversely, the knight can only reach those cells that are part of the grid.&lt;br /&gt;&lt;br /&gt;If we start at $(1,0)$ and repeat the process above, we get a similar grid, except everything is shifted one cell to the east. &lt;br /&gt;&lt;br /&gt;Thus, the answer to the original problem is simply how many cells are in the one parallelogram described above. If we put the knights to fill up that parallelogram, they will all reach different cells, and collectively able to reach any cell.&lt;br /&gt;&lt;br /&gt;I can't draw the grid and the cells here, but there are 30 such cells. You can convince yourself by drawing the grid, but the cells in the rectangle with vertices $(0,1),(5,1),(0,5),(5,5)$ cover them all. Each cell in that rectangle is not reachable from any other cell in that rectangle, and collectively those cells cover the entire board, since the rectangle can be "copied and stamped" around.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution to the extension problem:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;One crucial fact about the original problem is that the number of elementary moves are the same as the dimensionality of the board. The board is in 2-D, while there are 2 elementary moves. In the extension problem, we now have four elementary moves (N-W, N-E, E-N, E-S). So the same analysis won't work.&lt;br /&gt;&lt;br /&gt;Instead, we attempt to reconstruct a move of "one to the right" by using a finite number of those four moves. Indeed, we could.&lt;br /&gt;&lt;br /&gt;$$3 \times (6,1) -3 \times(6,-1) - (-1,6) = (1,0)$$&lt;br /&gt;&lt;br /&gt;Thus, 3 moves of E-N followed by 3 moves of W-N followed by S-E results in one move to the right. Using similar technique, one can construct a move of one to the top/left/bottom, and then reach any position on the board. Therefore, one Obamaknight is enough.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-9101962028554923949?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/9101962028554923949/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/03/technology-review-marchapril-2011_08.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/9101962028554923949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/9101962028554923949'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/03/technology-review-marchapril-2011_08.html' title='Technology Review March/April 2011 Problem 2'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-2209002069184252234</id><published>2011-03-08T06:30:00.000-08:00</published><updated>2011-03-08T14:03:36.255-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='sudoku'/><category scheme='http://www.blogger.com/atom/ns#' term='grid'/><title type='text'>Technology Review March/April 2011 Problem 1</title><content type='html'>Consider the solution of any ordinary sudoku puzzle. What is the largest number of times that any fixed integer can appear on either of the two major diagonals? Show that this number can actually occur.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Five. The major diagonal passes through five 3x3 squares, and each of those squares can only contain any fixed integer once. Thus the theoretical maximum is 5. The figure below shows that the number 9 can appear five times along the major diagonals.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-pyF0bGUBzC8/TXang6HGc0I/AAAAAAAAA4U/glWfsTSnues/s1600/snap2.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 261px; height: 174px;" src="http://2.bp.blogspot.com/-pyF0bGUBzC8/TXang6HGc0I/AAAAAAAAA4U/glWfsTSnues/s320/snap2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5581832971969000258" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-2209002069184252234?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/2209002069184252234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/03/technology-review-marchapril-2011.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2209002069184252234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2209002069184252234'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/03/technology-review-marchapril-2011.html' title='Technology Review March/April 2011 Problem 1'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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/-pyF0bGUBzC8/TXang6HGc0I/AAAAAAAAA4U/glWfsTSnues/s72-c/snap2.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6803079253342371630.post-5422312325514746253</id><published>2011-03-01T23:02:00.000-08:00</published><updated>2011-03-01T23:06:16.330-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='invariance'/><category scheme='http://www.blogger.com/atom/ns#' term='coin'/><category scheme='http://www.blogger.com/atom/ns#' term='lattice'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='steps'/><category scheme='http://www.blogger.com/atom/ns#' term='flip'/><category scheme='http://www.blogger.com/atom/ns#' term='equilateral lattice'/><title type='text'>Coins in equilateral lattice</title><content type='html'>$n(n+1)/2$ coins are placed on an equilateral lattice with side $n$, such that all but one coin are showing heads. &lt;br /&gt;&lt;br /&gt;At each step, one is allowed to choose two adjacent coins $A$ and $B$, and then flip all coins on the line $AB$ (and its extension).&lt;br /&gt;&lt;br /&gt;Characterize all starting configuration such that it's always possible to get all tails.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-5422312325514746253?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/5422312325514746253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/03/coins-in-equilateral-lattice.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5422312325514746253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5422312325514746253'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/03/coins-in-equilateral-lattice.html' title='Coins in equilateral lattice'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-4704297011547199272</id><published>2011-02-03T09:06:00.001-08:00</published><updated>2011-02-03T09:07:50.683-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><category scheme='http://www.blogger.com/atom/ns#' term='trigonometry'/><category scheme='http://www.blogger.com/atom/ns#' term='system of equations'/><title type='text'>Find angle C</title><content type='html'>From AMC12 1999:&lt;br /&gt;&lt;br /&gt;In triangle $ABC$, &lt;br /&gt;$3 \sin A + 4 \cos B = 6$ &lt;br /&gt;$4 \sin B + 3 \cos A = 1$&lt;br /&gt;&lt;br /&gt;Find $\angle C$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-4704297011547199272?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/4704297011547199272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2011/02/find-angle-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4704297011547199272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4704297011547199272'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2011/02/find-angle-c.html' title='Find angle C'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-6256441128902734274</id><published>2010-12-07T12:56:00.001-08:00</published><updated>2010-12-10T21:44:51.347-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='polynomial'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><category scheme='http://www.blogger.com/atom/ns#' term='power sum'/><title type='text'>a,b,c,d odd powers</title><content type='html'>If $a,b,c,d$ are integers such that $a+b+c+d = 0$ then show that for any odd number $n$,&lt;br /&gt;&lt;br /&gt;$$X_n = a^n + b^n + c^n + d^n$$&lt;br /&gt;&lt;br /&gt;is divisible by $Y = \sqrt{-(a+b)(a+c)(a+d)(b+c)(b+d)(c+d)}$&lt;br /&gt;&lt;br /&gt;And that if $n$ is prime, then $X_n$ is divisible by $n$ as well&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;First Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First, it is straightforward to show that $Y$ is indeed an integer.&lt;br /&gt;$a+b = -(c+d)$&lt;br /&gt;$a+c = -(b+d)$&lt;br /&gt;$a+d = -(b+c)$&lt;br /&gt;Multiplying all three, we have that $Y = |(a+b)(b+c)(c+a)|$&lt;br /&gt;If $Y=0$, then $X_n = 0$ as well. So now we're going to assume that $Y &gt; 0$. For proving divisibility purposes, we can also assume that $Y = (a+b)(b+c)(c+a)$.&lt;br /&gt;&lt;br /&gt;Let $f(t) = (t-a)(t-b)(t-c) = t^3 - Pt^2 + Qt - R$ be a polynomial with roots $a,b,c$&lt;br /&gt;&lt;br /&gt;We have that $Y=(a+b)(b+c)(c+a) = (P-a)(P-b)(P-c) = f(P) = PQ-R$. &lt;br /&gt;&lt;br /&gt;Let's also define $S_n = a^n + b^n + c^n$. All we have to show is that $S_n - P^n$ is divisible by $Y$ for $n$ odd.&lt;br /&gt;&lt;br /&gt;Now we assert the following, and prove by induction:&lt;br /&gt;If $n$ is odd, then $S_n - P^n$ is divisible by $Y$&lt;br /&gt;If $n=2m$ is even, then $S_n - P^n - 2(-Q)^m$ is divisible by $Y$.&lt;br /&gt;&lt;br /&gt;We readily obtain that $S_1 = P$ and $S_2 = P^2 - 2Q$, so the assertions above are true for $n=1,2$.&lt;br /&gt;&lt;br /&gt;Now for higher values of $n$, we have the following:&lt;br /&gt;$a^{n-3}f(a) = a^n - Pa^{n-1} + Qa^{n-2} - Ra^{n-3} = 0$&lt;br /&gt;similarly we can do the same for $b,c$ and add them, so that we have:&lt;br /&gt;$S_n = PS_{n-1} - QS_{n-2} + RS_{n-3}$&lt;br /&gt;&lt;br /&gt;If $n=2m$ is even, then $n-1$ is odd, $n-2 = 2(m-1)$ is even, and $n-3$ is odd. So from induction hypothesis, we can write:&lt;br /&gt;$S_{n-1} = P^{n-1} + YZ_1$&lt;br /&gt;$S_{n-2} = P^{n-2} + 2(-Q)^{m-1} + YZ_2$&lt;br /&gt;$S_{n-3} = P^{n-3} + YZ_3$&lt;br /&gt;&lt;br /&gt;where $Z_1, Z_2, Z_3$ are integers&lt;br /&gt;So:&lt;br /&gt;$$S_n = P^n + PYZ_1 - P^{n-2}Q + 2(-Q)^m -QYZ_2 + RP^{n-3} + RYZ_3$$&lt;br /&gt;$$= P^n + 2(-Q)^m + P^{n-3}(PQ-R) + Y(PZ_1 - QZ_2 + RZ_3)$$&lt;br /&gt;$$= P^n + 2(-Q)^m + Y(P^{n-3} + PZ_1 - QZ_2 + RZ_3)$$&lt;br /&gt;&lt;br /&gt;which proves our induction assertion that $S_n - P^n - 2(-Q)^m$ is divisible by $Y$. For $n$ odd, we can do the same.&lt;br /&gt;&lt;br /&gt;So $S_n - P^n = X_n$ is divisible by $Y$ for $n$ odd.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Second Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We have $d = -(a+b+c)$, then &lt;br /&gt;$$X_n = a^n + b^n + c^n - (a+b+c)^n$$ if $n$ is odd.&lt;br /&gt;&lt;br /&gt;For fixed values of $b,c$, let $f(a) = a^n + b^n + c^n - (a+b+c)^n$ by a polynomial of degree $n-1$ in $a$.&lt;br /&gt;Note that $f(-b) = 0$ and $f(-c) = 0$. That means $X_n = f(a)$ is divisible by $(a+b)(a+c)$.&lt;br /&gt;&lt;br /&gt;Write $f(a) = (a+b)(a+c)P(a)$ for $P$ some integer polynomial.&lt;br /&gt;Now note that $f(a) = a^n - (a+b+c)^n + (b^n + c^n)$&lt;br /&gt;$a^n - (a+b+c)^n$ is divisible by $(b+c)$ in a polynomic manner (not just integer divisibility), and so is $b^n + c^n$ (since $n$ is odd).&lt;br /&gt;&lt;br /&gt;So $f(a)$ is divisible by $(b+c)$ in a polynomic manner, which means $P(a)$ is divisible by $(b+c)$.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-6256441128902734274?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/6256441128902734274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/12/abcd-odd-powers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6256441128902734274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6256441128902734274'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/12/abcd-odd-powers.html' title='a,b,c,d odd powers'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-1863908017812203860</id><published>2010-11-18T08:11:00.001-08:00</published><updated>2010-12-10T23:06:25.804-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='graph theory'/><category scheme='http://www.blogger.com/atom/ns#' term='triangle'/><category scheme='http://www.blogger.com/atom/ns#' term='parity'/><category scheme='http://www.blogger.com/atom/ns#' term='lattice'/><category scheme='http://www.blogger.com/atom/ns#' term='tetrahedron'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='coloring'/><title type='text'>Triangular (and tetrahedral) lattice</title><content type='html'>An equilateral triangle $ABC$ with side $n$ a positive integer is divided into triangular lattice consisting of unit triangles. &lt;br /&gt;&lt;br /&gt;Each point on the lattice is colored red, white, or blue such that:&lt;br /&gt;1. No point on $AB$ is colored red&lt;br /&gt;2. No point on $BC$ is colored blue&lt;br /&gt;3. No point on $AC$ is colored white&lt;br /&gt;&lt;br /&gt;Prove that there exists a unit triangle whose vertices are colored with 3 different colors.&lt;br /&gt;&lt;br /&gt;Challenge problem: Same problem but for tetrahedron and four colors.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We first state the one-dimensional version of this problem:&lt;br /&gt;&lt;br /&gt;Given a sequence of points on a line colored red or blue, and the first point must be colored red, and the last point must be colored blue, then we have an ODD number of segments that has two differently-colored end points.&lt;br /&gt;&lt;br /&gt;This one-dimensional version is trivial to prove.&lt;br /&gt;&lt;br /&gt;Now we turn to the 2-dimensional version as stated in the problem.&lt;br /&gt;For each side that has both red and blue endpoints, we "mark" that side.&lt;br /&gt;Then for each unit triangle, we give it a score based on how many marked sides it has. Now, if we consider the "outside" area as another "surrogate unit triangle", then we can also give it a score based on how many marked sides are facing the outside.&lt;br /&gt;&lt;br /&gt;First, note that the total score of all areas must be even, since any marked side contribute one score to two areas. &lt;br /&gt;&lt;br /&gt;Now, applying the 1-dimensional version of the problem, we know that side AC has an odd number of marked sides. Side AB and BC does not have any marked sides. So the outside area has an odd score. Thus, there is an odd number of unit triangles that has an odd score. In order for a unit triangle to have an odd score, it must have three differently-colored vertices.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-1863908017812203860?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/1863908017812203860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/11/triangular-and-tetrahedral-lattice.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1863908017812203860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1863908017812203860'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/11/triangular-and-tetrahedral-lattice.html' title='Triangular (and tetrahedral) lattice'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-5534717117312595981</id><published>2010-10-25T03:51:00.000-07:00</published><updated>2010-10-25T03:54:11.935-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='chess board'/><category scheme='http://www.blogger.com/atom/ns#' term='parity'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='paint'/><category scheme='http://www.blogger.com/atom/ns#' term='black cells'/><title type='text'>Number of black cells</title><content type='html'>Each cell on an $n \times n$ checkerboard is to be painted black or white. &lt;br /&gt;&lt;br /&gt;How many ways are there to paint the board such that each column and each row contains an even number of black cells? &lt;br /&gt;&lt;br /&gt;How many ways are there to paint it such that each column and row contains an odd number of black cells?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-5534717117312595981?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/5534717117312595981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/10/number-of-black-cells.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5534717117312595981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5534717117312595981'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/10/number-of-black-cells.html' title='Number of black cells'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-350177040917122394</id><published>2010-09-25T08:20:00.000-07:00</published><updated>2010-09-25T08:25:05.357-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='chess board'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='completable'/><category scheme='http://www.blogger.com/atom/ns#' term='steps'/><title type='text'>Completable Paintings</title><content type='html'>An $n \times n$ checker board is painted all white except $m$ cells that are painted black. At each step, one is allowed to choose a rectangle that has three black corners, and paint the fourth corner black. A configuration is called &lt;span style="font-style:italic;"&gt;completable&lt;/span&gt; if one can paint the entire board black using a sequence of steps described above.&lt;br /&gt;&lt;br /&gt;First Question:&lt;br /&gt;Find the smallest $m$ such that any configuration with $m$ black cells are always completable.&lt;br /&gt;&lt;br /&gt;Second Question:&lt;br /&gt;Find the smallest $m$ such that there is a completable configuration with $m$ black cells.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-350177040917122394?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/350177040917122394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/09/completable-paintings.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/350177040917122394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/350177040917122394'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/09/completable-paintings.html' title='Completable Paintings'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-3466991999789496121</id><published>2010-09-16T13:57:00.000-07:00</published><updated>2010-09-21T08:03:35.291-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='polynomial'/><category scheme='http://www.blogger.com/atom/ns#' term='arbitrarily'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><category scheme='http://www.blogger.com/atom/ns#' term='ternary'/><title type='text'>Ternary Polynomial</title><content type='html'>A polynomial with integer coefficients is called "ternary" if its coefficients are all 1, -1, or zero. &lt;br /&gt;&lt;br /&gt;First Question:&lt;br /&gt;Find two polynomials $P(x)$ and $Q(x)$ with integer coefficients where at least one coefficient is larger than 2010, such that $P(x)Q(x)$ is ternary.&lt;br /&gt;&lt;br /&gt;Second Question:&lt;br /&gt;Does there exist a ternary multiple of $F(x) = x^2 - 3x + 1$ ?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;First Question&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note that the polynomial $(x-1)(x^2-1)(x^4-1)(x^8-1) ... (x^{2^n}-1)$ is ternary. Indeed, because the coefficient of $x^k$ can only be formed in exactly one way. For digits in the binary representation of $k$ that is one, we take the $x^{2^i}$ term, and for the other digits, we take the $-1$ term.&lt;br /&gt;&lt;br /&gt;Now, that polynomial can be factored. For example:&lt;br /&gt;$$(x-1)(x^2-1)(x^4-1)(x^8-1)$$&lt;br /&gt;$$=(x-1)^{4} (x+1) (x^3+x^2+x+1) (x^7+...+1)$$&lt;br /&gt;$$=(x-1)^{4) (x+1) (x+1)(x^2+1) (x+1)(x^2+1)(x^4+1)$$&lt;br /&gt;$$=(x-1)^4 (x+1)^3 (x^2+1)^2 (x^4+1)$$&lt;br /&gt;&lt;br /&gt;So similarly,&lt;br /&gt;$$(x-1)(x^2-1)(x^4-1)(x^8-1) ... (x^{2^n}-1)$$&lt;br /&gt;$$ = (x-1)^{n+1} (x+1)^n (x^2+1)^{n-1} ... (x^{2^{n-1}}+1) $$&lt;br /&gt;&lt;br /&gt;If we let $P(x) = (x-1)^{n+1}$ and $Q(x)$ to be the rest, we claim that we can make the largest coefficient in $P$ and $Q$ to be arbitrarily large by setting $n$ large enough. For $P$, it is clear due to binomial expansion. For $Q$, the factor $(x+1)^n$ will have a large enough coefficient, while the rest of the factors all consist of positive signs (no negative signs).&lt;br /&gt;&lt;br /&gt;So by setting $n$ large enough, we could find $P$ and $Q$ that satisfy the desired conditions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Second Question&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We start by proving a lemma: if $s &gt; 2$ then $s^n &gt; s^{n-1} + ...+ s + 1$. This lemma can be proved by induction:&lt;br /&gt;$s^{n+1} &gt; 2s^n = s^n + s^n &gt; s^n + ... + s + 1$&lt;br /&gt;&lt;br /&gt;Now, we note that the larger root of $F$ is greater than 2, so let $r$ be this larger root. ( $r = (3 + \sqrt{13})/2 &gt; 2$ ).&lt;br /&gt;&lt;br /&gt;Suppose $P$ is a ternary polynomial such that $P(x) = F(x) G(x)$ for some integer polynomial $G$, then $P(r) = 0$.&lt;br /&gt;&lt;br /&gt;But that is impossible if $r &gt; 2$, due to the lemma above, since the largest term in $P$ cannot be offset by the rest of the terms. A contradiction.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-3466991999789496121?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/3466991999789496121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/09/ternary-polynomial.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3466991999789496121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3466991999789496121'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/09/ternary-polynomial.html' title='Ternary Polynomial'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-1574912298631260678</id><published>2010-09-01T06:35:00.000-07:00</published><updated>2010-09-09T08:28:02.875-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='calculus'/><category scheme='http://www.blogger.com/atom/ns#' term='integration by parts'/><category scheme='http://www.blogger.com/atom/ns#' term='integral'/><category scheme='http://www.blogger.com/atom/ns#' term='Inequality'/><title type='text'>Integral Inequality</title><content type='html'>Prove that:&lt;br /&gt;&lt;br /&gt;$$\left( \int_\pi^\infty\frac{\cos x}{x}\ dx\right)^{2} &lt; \frac{1}{{\pi}^{2}} $$&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Integrate by parts:&lt;br /&gt;&lt;br /&gt;$$\int \frac{\cos x}{x} dx = \frac{\sin x}{x} + \int \frac{\sin x}{x^2} dx$$&lt;br /&gt;&lt;br /&gt;So&lt;br /&gt;$$\int_\pi^\infty\frac{\cos x}{x}\ dx = \int_\pi^\infty \frac{\sin x}{x^2} dx$$&lt;br /&gt;&lt;br /&gt;And&lt;br /&gt;$$| \int_\pi^\infty\frac{\cos x}{x}\ dx| = |\int_\pi^\infty \frac{\sin x}{x^2} dx|$$&lt;br /&gt;$$\leq \int_\pi^\infty \frac{| \sin x |}{x^2} dx$$&lt;br /&gt;$$\leq \int_\pi^\infty \frac{1}{x^2} dx $$&lt;br /&gt;$$= \frac{1}{\pi}$$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-1574912298631260678?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/1574912298631260678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/09/integral-inequality.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1574912298631260678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1574912298631260678'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/09/integral-inequality.html' title='Integral Inequality'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-5711002936477852147</id><published>2010-08-09T13:08:00.000-07:00</published><updated>2010-08-11T12:30:09.166-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='modular equation'/><category scheme='http://www.blogger.com/atom/ns#' term='fermat'/><category scheme='http://www.blogger.com/atom/ns#' term='Solution'/><category scheme='http://www.blogger.com/atom/ns#' term='modulo'/><category scheme='http://www.blogger.com/atom/ns#' term='prime'/><category scheme='http://www.blogger.com/atom/ns#' term='inverse modulo'/><category scheme='http://www.blogger.com/atom/ns#' term='residue system'/><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><category scheme='http://www.blogger.com/atom/ns#' term='infinite prime'/><category scheme='http://www.blogger.com/atom/ns#' term='divisibility'/><title type='text'>Number of solutions to modular equation</title><content type='html'>Prove that there are infinitely many prime numbers $p$ such that there are exactly $p^2$ integer triples $(x,y,z)$ such that $0 \leq x,y,z &lt; p$ and $x^2+y^2 - 2010z^3$ is divisible by $p$.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We will first show that any prime that has form $p = 6k-1$ and does not divide 2010 satisfies the given condition.&lt;br /&gt;&lt;br /&gt;First, let $p$ be such prime. Suppose there are $a,b \in \{ 1, \dots, p-1 \}$ such that $a^3 \equiv b^3 \mod p$.&lt;br /&gt;&lt;br /&gt;Since $b^{p-1} \equiv 1 \mod p$ then let $c \equiv ab^{p-2} \mod p$, so that we have $bc \equiv a \mod p$. &lt;br /&gt;&lt;br /&gt;Then $b^3c^3 \equiv a^3 \equiv b^3 \mod p$ which means $b^3c^3 \equiv b^3 \mod p$ which then means $c^3 \equiv 1 \mod p$ (since $(b,p) = 1$).&lt;br /&gt;&lt;br /&gt;Because $c^{p-1} = c^{6k-2} \equiv 1 \mod p$ and $c^{6k-3} = c^{3(2k-1)} \equiv 1 \mod p$, then we must have $c \equiv 1 \mod p$, which means $a \equiv b \mod p$.&lt;br /&gt;&lt;br /&gt;In summary, we've shown that $a^3 \equiv b^3 \Rightarrow a \equiv b \mod p$. This means that the set $\{1^3, \dots, p^3 \} \mod p$ is the same as set $\{ 1, \dots, p \} \mod p$. So given any arbitrary $x$ and $y$, we can find exactly one $z$ such that $z^3 \equiv 2010^{-1} (x^2+y^2) \mod p$. Since there are $p^2$ possible pairs for $(x,y)$, then there are also $p^2$ possible triples for $(x,y,z)$.&lt;br /&gt;&lt;br /&gt;Now we show that there are infinitely many primes of the form $6k-1$ which would mean that there must be infinitely many primes of the form $6k-1$ that do not divide 2010.&lt;br /&gt;&lt;br /&gt;Note that any prime above 3 must have form $6k+1$ or $6k-1$. If there are only finite number of primes of the form $6k-1$, say $p_1, p_2, \dots, p_n$, consider the number $N = 6p_1p_2 \dots p_n - 1$. &lt;br /&gt;For each $i$, $p_i$ does not divide $N$ because otherwise $p_i$ would also have to divide 1, a contradiction. So $N$ is not divisible by any of the $p_i$s, which means all prime factors of $N$ must be of the form $6k+1$. That means, $N \equiv 1 \mod 6$, a contradiction.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-5711002936477852147?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/5711002936477852147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/08/number-of-solutions-to-modular-equation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5711002936477852147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5711002936477852147'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/08/number-of-solutions-to-modular-equation.html' title='Number of solutions to modular equation'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-4389675478793415063</id><published>2010-07-23T14:26:00.001-07:00</published><updated>2010-08-01T20:20:08.431-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solution'/><category scheme='http://www.blogger.com/atom/ns#' term='prime'/><category scheme='http://www.blogger.com/atom/ns#' term='cubic number'/><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='homogeneous'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><category scheme='http://www.blogger.com/atom/ns#' term='gcd'/><category scheme='http://www.blogger.com/atom/ns#' term='factorization'/><title type='text'>a,b,c integers and cubic number</title><content type='html'>Suppose $a,b,c$ are positive integers such that $\frac{a}{b} + \frac{b}{c} + \frac{c}{a}$ is an integer. Prove that $abc$ is a cubic number.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We have $ab^2 + bc^2 + ca^2 = kabc$ for some k.&lt;br /&gt;&lt;br /&gt;Let $d = \gcd(a,b,c)$. We can replace $a,b,c$ by $a/d, b/d, c/d$ respectively and the problem does not change. Thus, without loss of generality, we may assume that $d = 1$.&lt;br /&gt;&lt;br /&gt;Let $p$ be a prime that divides $abc$, which means $p$ divides at least one of $a,b,c$. We also know that $p$ cannot divide all three, since $d = 1$.&lt;br /&gt;&lt;br /&gt;If $p$ divides exactly one of $a,b,c$, for example $a$, then $ab^2, ca^2, kabc$ are all divisible by $p$, but not $bc^2$. Impossible. Thus, $p$ must divide exactly two of $a,b,c$.&lt;br /&gt;&lt;br /&gt;Suppose $p$ divides $a$ and $b$. Furthermore, let $x$ be the largest integer such that $p^x$ divides $a$. Likewise, let $y$ be the largest integer such that $p^y$ divides $b$.&lt;br /&gt;&lt;br /&gt;Since $ab^2, bc^2, kabc$ are all divisible by $b$, then so is $ca^2$. Thus $y \leq 2x$. &lt;br /&gt;&lt;br /&gt;Since $ab^2, ca^2, kabc$ are all divisible by $a$, then so is $bc^2$, Thus $y \geq x$, which means $x \leq y \leq 2x$.&lt;br /&gt;&lt;br /&gt;Now, since $ab^2, ca^2, kabc$ are all divisible by $p^{2x}$, then so is $bc^2$, which means $y \geq 2x$. &lt;br /&gt;&lt;br /&gt;Therefore, $y = 2x$, which means that the degree of $p$ in the factorization of $abc$ is $x+y = 3x$. &lt;br /&gt;&lt;br /&gt;For each prime $p$ that divides $abc$, it must occur as a cubic number in its prime factorization. Thus $abc$ is a cubic number.&lt;br /&gt;&lt;br /&gt;A non-trivial example is $a=1,b=2,c=4$.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-4389675478793415063?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/4389675478793415063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/07/abc-integers-and-cubic-number.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4389675478793415063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4389675478793415063'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/07/abc-integers-and-cubic-number.html' title='a,b,c integers and cubic number'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-8216085926530269877</id><published>2010-06-28T16:03:00.000-07:00</published><updated>2010-06-28T16:05:34.059-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maximum'/><category scheme='http://www.blogger.com/atom/ns#' term='Geometry'/><category scheme='http://www.blogger.com/atom/ns#' term='optimization'/><title type='text'>Minimum Reciprocal Length</title><content type='html'>Given a triangle $ABC$, and point $P$ in its interior. Find points $X,Y$ on $AB$ and $AC$ (or their extensions) such that $XY$ passes through $P$ and &lt;br /&gt;$$\frac{1}{PX} + \frac{1}{PY}$$ is maximized.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-8216085926530269877?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/8216085926530269877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/06/minimum-reciprocal-length.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8216085926530269877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8216085926530269877'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/06/minimum-reciprocal-length.html' title='Minimum Reciprocal Length'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-8601454789738072192</id><published>2010-06-28T12:55:00.000-07:00</published><updated>2010-06-28T12:58:00.184-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='triangle'/><category scheme='http://www.blogger.com/atom/ns#' term='circle'/><category scheme='http://www.blogger.com/atom/ns#' term='Geometry'/><category scheme='http://www.blogger.com/atom/ns#' term='tangent line'/><title type='text'>Circumcircle and Incircle Tangency</title><content type='html'>Given a triangle $ABC$, its circumcircle $C_O$ and incircle $C_I$. Suppose $X,Y,Z$ are points on $C_O$ such that $XY$ and $XZ$ are tangent to $C_I$, prove that $YZ$ is also tangent to $C_I$.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-8601454789738072192?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/8601454789738072192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/06/circumcircle-and-incircle-tangency.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8601454789738072192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8601454789738072192'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/06/circumcircle-and-incircle-tangency.html' title='Circumcircle and Incircle Tangency'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-7103093113920402429</id><published>2010-06-24T08:32:00.001-07:00</published><updated>2010-06-24T08:33:17.218-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='statistics'/><category scheme='http://www.blogger.com/atom/ns#' term='covariance'/><category scheme='http://www.blogger.com/atom/ns#' term='random variables'/><category scheme='http://www.blogger.com/atom/ns#' term='correlation'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='probability'/><category scheme='http://www.blogger.com/atom/ns#' term='distribution'/><category scheme='http://www.blogger.com/atom/ns#' term='Random'/><title type='text'>Three independent random variables</title><content type='html'>3 independent random variables $A,B,C$ are drawn from the same distribution. Determine the correlation between $A-B$ and $B-C$.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-7103093113920402429?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/7103093113920402429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/06/three-independent-random-variables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/7103093113920402429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/7103093113920402429'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/06/three-independent-random-variables.html' title='Three independent random variables'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-5483905172664710649</id><published>2010-06-15T05:58:00.000-07:00</published><updated>2010-06-15T06:33:29.546-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='polynomial'/><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><category scheme='http://www.blogger.com/atom/ns#' term='divisibility'/><title type='text'>Polynomial and divisibility</title><content type='html'>A sequence of polynomials $P_i(x)$ are defined as follows:&lt;br /&gt;$P_1(x) = 1$&lt;br /&gt;$P_2(x) = 1$&lt;br /&gt;$P_{n+2}(x) = (x+2)P_{n+1}(x) - P_n(x), n=1,2,\dots$&lt;br /&gt;&lt;br /&gt;Prove that for all $n &gt; 1$, $P_n(x)^2 + x$ is divisible by $P_{n-1}(x)$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-5483905172664710649?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/5483905172664710649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/06/polynomial-and-divisibility.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5483905172664710649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5483905172664710649'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/06/polynomial-and-divisibility.html' title='Polynomial and divisibility'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-5075000479403258802</id><published>2010-05-31T21:29:00.000-07:00</published><updated>2010-06-03T10:46:40.119-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='triangle'/><category scheme='http://www.blogger.com/atom/ns#' term='vector'/><category scheme='http://www.blogger.com/atom/ns#' term='Inequality'/><category scheme='http://www.blogger.com/atom/ns#' term='Geometry'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><title type='text'>Triangle Inequality</title><content type='html'>Given a triangle $ABC$ and a point $M$ inside the triangle. &lt;br /&gt;&lt;br /&gt;Let $\alpha = \angle BMC, \beta = \angle AMC, \gamma = \angle AMB$&lt;br /&gt;&lt;br /&gt;Prove that:&lt;br /&gt;$$\frac{AM}{BM.CM} + \frac{BM}{CM.AM} + \frac{CM}{AM.BM} \geq -2 \left( \frac{\cos \alpha}{AM} +  \frac{\cos \beta}{BM} + \frac{\cos \gamma}{CM} \right)$$&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution In Progress&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Let &lt;br /&gt;$a = \frac{AM}{\sin \alpha}, b = \frac{BM}{\sin \beta}, c = \frac{CM}{\sin \gamma}$&lt;br /&gt;&lt;br /&gt;Because $M$ is in the interior of the triangle, then $0 &lt; \alpha, \beta, \gamma &lt; \pi$ and thus $0 &lt; \sin \alpha, \sin \beta, \sin \gamma \leq 1$. Thus $a,b,c &gt; 0$. Without loss of generality, we may assume that $a \geq b \geq c$.&lt;br /&gt;&lt;br /&gt;So we have:&lt;br /&gt;$AM = a \sin \alpha, BM = b \sin \beta, CM = c \sin \gamma$&lt;br /&gt;&lt;br /&gt;Substitute it to our inequality, and use the following shorthand: &lt;br /&gt;&lt;br /&gt;$C_\alpha = \cos \alpha \sin \beta \sin \gamma$&lt;br /&gt;$C_\beta = \sin \alpha \cos \beta \sin \gamma$&lt;br /&gt;$C_\gamma = \sin \alpha \sin \beta \cos \gamma$&lt;br /&gt;&lt;br /&gt;So our inequality becomes&lt;br /&gt;$$ \iff a^2\sin^2 \alpha + b^2 \sin^2 \beta + c^2 \sin^2 \gamma +2 ( bc C_\alpha + ac C_\beta + ab C_\gamma ) \geq 0$$&lt;br /&gt;&lt;br /&gt;Note the following identities:&lt;br /&gt;$$C_\beta + C_\gamma = \sin \alpha \cos \beta \sin \gamma + \sin \alpha \sin \beta \cos \gamma = \sin \alpha \sin (\beta + \gamma) = \sin \alpha \sin (2 \pi - (\beta + \gamma)) = - \sin^2 \alpha$$&lt;br /&gt;&lt;br /&gt;Similarly,&lt;br /&gt;$$C_\alpha + C_\gamma = - \sin^2 \beta$$&lt;br /&gt;$$C_\alpha + C_\beta = - \sin^2 \gamma$$&lt;br /&gt;&lt;br /&gt;So that&lt;br /&gt;$$C_\alpha = (\sin^2 \alpha - \sin^2 \beta - \sin^2 \gamma)/2$$&lt;br /&gt;$$C_\beta = (\sin^2 \beta - \sin^2 \alpha - \sin^2 \gamma)/2$$&lt;br /&gt;$$C_\gamma = (\sin^2 \gamma - \sin^2 \beta - \sin^2 \alpha)/2$$&lt;br /&gt;&lt;br /&gt;Substituting back to our inequalities, we have:&lt;br /&gt;$$\iff (a-b)(a-c)\sin^2 \alpha + (b-a)(b-c) \sin^2 \beta + (c-a)(c-b) \sin^2 \gamma \geq 0$$&lt;br /&gt;&lt;br /&gt;It's also equivalent to:&lt;br /&gt;$$\iff (a-b)^2 C_\gamma + (a-c)^2 C_\beta + (b-c)^2 C_\alpha \leq 0$$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-5075000479403258802?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/5075000479403258802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/05/triangle-inequality_31.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5075000479403258802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5075000479403258802'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/05/triangle-inequality_31.html' title='Triangle Inequality'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-2462650289266878735</id><published>2010-05-20T11:51:00.000-07:00</published><updated>2010-05-20T17:07:48.887-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vector'/><category scheme='http://www.blogger.com/atom/ns#' term='dot product'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><category scheme='http://www.blogger.com/atom/ns#' term='Geometry'/><category scheme='http://www.blogger.com/atom/ns#' term='matrix'/><title type='text'>Cannot be all negative</title><content type='html'>Suppose $a_1,a_2,a_3,a_4$ and $b_1,b_2,b_3,b_4$ are eight real numbers. Prove that there is $i,j$ distinct indices such that $a_ia_j + b_ib_j \geq 0$.&lt;br /&gt;&lt;br /&gt;Advanced version:&lt;br /&gt;Suppose $a_i,b_i,c_i, 1 \leq i \leq 5$ are fifteen real numbers. Prove that there is $i,j$ distinct indices such that $a_ia_j + b_ib_j + c_ic_j \geq 0$.&lt;br /&gt;&lt;br /&gt;General version:&lt;br /&gt;Suppose $A_{i,j}, 1 \leq i \leq n, 1 \leq j \leq n+2$ is a matrix of $n \times (n+2)$ real numbers, prove that there are two columns $p,q$ such that their dot product is non-negative. That is:&lt;br /&gt;$$\sum_{i=1}^{n} A_{i,p} A_{i,q} \geq 0$$&lt;br /&gt;&lt;br /&gt;Also find an example of a $n \times (n+1)$ matrix where this property does not hold&lt;br /&gt;&lt;br /&gt;A geometric interpretation of this problem is that, given $n+2$ vectors in $n$-dimensional space, two of them must form an angle of 90 degrees or less.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-2462650289266878735?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/2462650289266878735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/05/cannot-be-all-negative.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2462650289266878735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2462650289266878735'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/05/cannot-be-all-negative.html' title='Cannot be all negative'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-3844712635610964123</id><published>2010-05-18T22:31:00.000-07:00</published><updated>2010-05-18T22:36:19.703-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='telescoping'/><category scheme='http://www.blogger.com/atom/ns#' term='prime'/><category scheme='http://www.blogger.com/atom/ns#' term='sequence'/><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><category scheme='http://www.blogger.com/atom/ns#' term='divisibility'/><title type='text'>Sequence with prime number</title><content type='html'>Suppose $p$ is a prime number greater than 2, and $m$ is a natural number. Let $a_n$ be sequences defined by:&lt;br /&gt;$a_1 = 1$&lt;br /&gt;$a_2 = m$&lt;br /&gt;$a_{n+2} = \frac{a_{n+1}^2 +p}{a_n}, n = 1,2,...$&lt;br /&gt;&lt;br /&gt;Determine all values of $m$ such that $a_n$ is an integer for all $n$.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-3844712635610964123?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/3844712635610964123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/05/sequence-with-prime-number.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3844712635610964123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3844712635610964123'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/05/sequence-with-prime-number.html' title='Sequence with prime number'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-7773935054900529167</id><published>2010-05-13T14:33:00.000-07:00</published><updated>2010-05-14T13:59:50.630-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='minimum'/><category scheme='http://www.blogger.com/atom/ns#' term='function'/><category scheme='http://www.blogger.com/atom/ns#' term='convex'/><category scheme='http://www.blogger.com/atom/ns#' term='maximum'/><category scheme='http://www.blogger.com/atom/ns#' term='AM-GM'/><category scheme='http://www.blogger.com/atom/ns#' term='absolute value'/><category scheme='http://www.blogger.com/atom/ns#' term='hypercube'/><category scheme='http://www.blogger.com/atom/ns#' term='arbitrarily'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><title type='text'>Largest k for arbitrary function</title><content type='html'>Find the largest number $k$ that satisfies the following property:&lt;br /&gt;&lt;br /&gt;For every real-valued function $f$ defined over $[0,1]$, there exist $a,b,c \in [0,1]$ such that:&lt;br /&gt;$$|f(ab) + f(bc) + f(ca) - abc | \geq k$$&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First we show that $k = 1/6$ satisfies the condition of the problem.&lt;br /&gt;&lt;br /&gt;For $k=1/6$, suppose to the contrary that for all $a,b,c$ chosen in the interval $[0,1]$ we have:&lt;br /&gt;$$|f(ab) + f(bc) + f(ca) - abc | &lt; \frac{1}{6}$$&lt;br /&gt;&lt;br /&gt;Let $y = f(0),y=f(1)$.&lt;br /&gt;Plugging in $a=b=c=0$ we have $|3x| &lt; 1/6 \iff |x| &lt; 1/18$&lt;br /&gt;Plugging in $a=b=c=1$ we have $|3y-1| &lt; 1/6$&lt;br /&gt;Plugging in $a=b=1, c=0$ we have $2x+y| &lt; 1/6$&lt;br /&gt;&lt;br /&gt;That means $y = (2x+y) - 2x &lt; 1/6 + 2/18 = 5/18$&lt;br /&gt;But also $3y-1 &gt; -1/6 \iff y  &gt; 5/18$, a contradiction.&lt;br /&gt;&lt;br /&gt;Thus $k= \frac{1}{6}$ satisfies the condition of the problem.&lt;br /&gt;&lt;br /&gt;Now we show that it is the largest such constant. We choose a function $f(x) = \frac{6x^\frac{3}{2} - 1}{18}$ and prove that &lt;br /&gt;$$ -\frac{1}{6} \leq f(ab)+f(bc)+f(ca) - abc \leq \frac{1}{6}$$ &lt;br /&gt;for all $a,b,c \in [0,1]$&lt;br /&gt;&lt;br /&gt;Indeed, the first inequality is equivalent to &lt;br /&gt;$$(ab)^\frac{3}{2} + (bc)^\frac{3}{2} + (ca)^\frac{3}{2} \geq 3abc$$ which is true by AM-GM.&lt;br /&gt;&lt;br /&gt;The second inequality is equivalent to&lt;br /&gt;$$(ab)^\frac{3}{2} + (bc)^\frac{3}{2} + (ca)^\frac{3}{2} - 3abc \leq 1$$&lt;br /&gt;&lt;br /&gt;Now consider the LHS, and try to find its maximum value over $a,b,c \in [0,1]$&lt;br /&gt;First, we try a substitution $x = \sqrt{ab}, y = \sqrt{ac}, z = \sqrt{bc}, x,y,z \in [0,1]$ and WLOG, we may assume that $x \geq y \geq z$ (which corresponds to $a \geq b \geq c$)&lt;br /&gt;So now our objective function becomes $x^3 + y^3 + z^3 - 3xyz$.&lt;br /&gt;&lt;br /&gt;Let $g(x) = x^3 + y^3 + z^3 - 3xyz$, and fix $y,z$.&lt;br /&gt;$$g(1) - g(x) = (1-x^3) - 3yx(1-x) = (1-x)(1 + x + x^2 - 3yz)$$&lt;br /&gt;Because $x \leq 1$, then $1-x \geq 0$&lt;br /&gt;$1+x+x^2-3yz \geq 1 + 2x^2-3yz = (1-yz) + 2(x^2 - yz) \geq 0$&lt;br /&gt;So $g(1) \geq g(x)$.&lt;br /&gt;&lt;br /&gt;So the maximum happens when the largest of 3 variables equals to 1. But this means that $ab = 1$ which implies $a=b=1$. Then $y = z = \sqrt{c}$. Our objective function now becomes:&lt;br /&gt;$$x^3 + y^3 + z^3 - 3xyz = 2y^3 - 3y^2 +1$$&lt;br /&gt;Let $h(y) = 2y^3 - 3y^2 + 1$, then $h(y) - h(0) = y^2(2y-3) &lt; 0$ because $y \geq 1$. So the maximum happens when $y = 0$&lt;br /&gt;&lt;br /&gt;In conclusion, our maximum happens when $x = 1, y=z=0$ and that's when $a=b=1, c= 0$. At this point, the maximum value is 1, thus proving our assertion.&lt;br /&gt;&lt;br /&gt;Another way to determine the maximum value of the function above is by observing that it is a convex function on each of its variable, and all three variables are freely chosen from the interval $[0,1]$. Thus, the maximum must happen when all of its variables are zero or one. Plugging in all permutations of $(0,0,0), (0,0,1), (0,1,1), (1,1,1)$, we find that the maximum is indeed 1.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-7773935054900529167?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/7773935054900529167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/05/largest-k-for-arbitrary-function.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/7773935054900529167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/7773935054900529167'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/05/largest-k-for-arbitrary-function.html' title='Largest k for arbitrary function'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-3345046453822441886</id><published>2010-05-12T11:20:00.000-07:00</published><updated>2010-05-13T13:08:31.099-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solution'/><category scheme='http://www.blogger.com/atom/ns#' term='symmetric'/><category scheme='http://www.blogger.com/atom/ns#' term='backward induction'/><category scheme='http://www.blogger.com/atom/ns#' term='probability'/><category scheme='http://www.blogger.com/atom/ns#' term='contradiction'/><title type='text'>Solution: Passengers Boarding Airplane</title><content type='html'>&lt;span style="font-style:italic;"&gt;Credit goes to Ed Kao, Vallent Lee and Laurence Tai for helping with the second solution.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Original problem: &lt;a href="http://dharmath.blogspot.com/2009/10/passengers-boarding-airplane.html"&gt;http://dharmath.blogspot.com/2009/10/passengers-boarding-airplane.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2009 passengers are waiting in a line to board an airplane with 2009 seats. Each passenger has a boarding pass that has his/her seat number on it. The first passenger, however, was oblivious and chose a random seat to sit on.&lt;br /&gt;&lt;br /&gt;For each subsequent passenger, he/she will try to sit on his/her assigned seat first. If that seat is taken by someone else, he/she will choose a random empty seat to sit on.&lt;br /&gt;&lt;br /&gt;What is the probability that the last passenger would sit on his assigned seat? &lt;br /&gt;&lt;br /&gt;Answer: $\frac{1}{2}$&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;First Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We generalize the problem to $n$ passengers boarding an airplane with $n$ seats.&lt;br /&gt;&lt;br /&gt;The probability that the first passenger sits in his seat is $1/n$. We will prove by induction that the probability that the $k$-th ($k &gt; 1$) passenger sits in his seat is $\frac{n-k+1}{n-k+2}$&lt;br /&gt;&lt;br /&gt;For $k=2$, it's obvious that the second passenger has probability $\frac{n-1}{n}$ of finding his seat unoccupied. As long as the first passenger chooses something other than his seat, he will find his seat unoccupied and sits there correctly.&lt;br /&gt;&lt;br /&gt;For $k&gt;2$, consider the time when $k$-th passenger is about to board. If he finds his seat unoccupied, he will sit there. The only way that he does NOT sit on his correct seat is if it's already occupied by a previous passenger. We will divide this into two cases, depending on who sits at his seat.&lt;br /&gt;&lt;br /&gt;Case 1: Passenger $k-1$ sits there. The only way this could happen is if passenger $k-1$ finds her seat occupied by someone else, and then she chooses to sit at passenger $k$'s seat. The probability of passenger $k-1$ finds her seat occupied by someone else is $1-\frac{n-(k-1)+1}{n-(k-1)+2} = \frac{1}{n-k+3}$.&lt;br /&gt;At that point, there are $k-2$ occupied seats total and there are $n-k+2$ empty seats on the plane. The probability that she chooses to sit at this particular seat is $\frac{1}{n-k+2}$&lt;br /&gt;&lt;br /&gt;Case 2: Passenger $i (i &lt; k-1)$ sits there (at passenger $k$'s seat). Now we consider the moment where passenger $i$ was about to board. Passenger $k$'s seat was open. &lt;br /&gt;&lt;br /&gt;If passenger $k-1$'s seat had been occupied by someone else before $i$, then passenger $i$'s seat would have been open, and passenger $i$ must have sit there correctly. &lt;br /&gt;&lt;br /&gt;In order for passenger $i$ to NOT sit on his seat, both passenger $k$ and $k-1$'s seat are both open. That means, the probability that passenger $i$ sits at passenger $k$'s seat is the same as the probability that passenger $i$ sits at passenger $k-1$'s seat, since both choices are equally likely and they're always made with both choices available.&lt;br /&gt;&lt;br /&gt;Thus the probability from case 2 is $\frac{1}{n-k+3}$&lt;br /&gt;&lt;br /&gt;The total probability that passenger $k$ does not sit at his correct seat is:&lt;br /&gt;$$\frac{1}{n-k+3} \frac{1}{n-k+2} + \frac{1}{n-k+3} = \frac{1}{n-k+2}$$&lt;br /&gt;so the probability that he sits at his seat is:&lt;br /&gt;$$1 - \frac{1}{n-k+2} = \frac{n-k+1}{n-k+2}$$ &lt;br /&gt;which completes the inductive step.&lt;br /&gt;&lt;br /&gt;From this formula, it's clear that the probability passenger $n$ sits on his correct seat is $\frac{1}{2}$&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Second Solution&lt;/span&gt;&lt;br /&gt;We make the following observations:&lt;br /&gt;&lt;br /&gt;1. In the beginning, both seat #1 and #2009 are both empty.&lt;br /&gt;2. The moment someone chooses to sit on either seat (that is, the moment they stop being both empty), there is no more choices to be made for the rest of the boarding process. The rest of the passengers must thus sit deterministically from that point on.&lt;br /&gt;&lt;br /&gt;Indeed, when passenger $k$ sits on seat #2009, then seat $k+1, ..., 2008$ would be empty and the subsequent passengers don't have to choose at all. Passenger #2009 has a random "choice" of 1 seat. &lt;br /&gt;If passenger $k$ sits on seat #1, then the remaining vacant seats match the unboarded passengers perfectly and everyone can sit in their correct seat save for those who've already boarded.&lt;br /&gt;&lt;br /&gt;That means, for every event that someone illegitimately sits on seat #2009, that passenger had an equally likely choice of seat #1, and vice versa. The moment this symmetry is broken, there would be no more choices to be made for the rest of the boarding process. &lt;br /&gt;&lt;br /&gt;3. When passenger #2009 is about to board, there is only one empty seat. That empty seat is either seat #1 or seat #2009. If there is another seat $k ( 1 &lt; k &lt; 2009)$ empty, then one might ask: why didn't passenger $k$ sit there? A contradiction.&lt;br /&gt;&lt;br /&gt;From the observations above, we define two events:&lt;br /&gt;A: an event that passenger #2009 sits at seat #1&lt;br /&gt;B: an event that passenger #2009 sits at seat #2009&lt;br /&gt;&lt;br /&gt;These two events are mutually exclusive, and are the only two possibilities. Furthermore, they have equal probability since the moment one event becomes impossible, there is no more choices to be made by the rest of the passengers.&lt;br /&gt;&lt;br /&gt;So the probability that passenger #2009 sits at his correct seat is $\frac{1}{2}$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-3345046453822441886?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/3345046453822441886/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/05/solution-passengers-boarding-airplane.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3345046453822441886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3345046453822441886'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/05/solution-passengers-boarding-airplane.html' title='Solution: Passengers Boarding Airplane'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-1661736979453645562</id><published>2010-05-12T09:21:00.000-07:00</published><updated>2010-05-13T16:15:28.452-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='triangle'/><category scheme='http://www.blogger.com/atom/ns#' term='vector'/><category scheme='http://www.blogger.com/atom/ns#' term='center of mass'/><category scheme='http://www.blogger.com/atom/ns#' term='homogeneous'/><category scheme='http://www.blogger.com/atom/ns#' term='Inequality'/><category scheme='http://www.blogger.com/atom/ns#' term='gravity'/><category scheme='http://www.blogger.com/atom/ns#' term='Geometry'/><title type='text'>Triangle Inequality</title><content type='html'>In a triangle $ABC$, let $a = BC, b = AC, c = AB$. For any point $M$ and real numbers $x,y,z$, show that &lt;br /&gt;&lt;br /&gt;$(x+y+z)(xMA^2 + yMB^2 + zMC^2) \geq xyc^2 + xzb^2 + yza^2$&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;We shall show that the inequality above is equivalent to &lt;br /&gt;$$(x \vec{MA} + y \vec{MB} + z \vec{MC})^2 \geq 0$$&lt;br /&gt;&lt;br /&gt;Indeed, since:&lt;br /&gt;$$2\vec{MA} \vec{MB} = MA^2 + MB^2 - c^2$$&lt;br /&gt;so&lt;br /&gt;$$2xy\vec{MA} \vec{MB} = xyMA^2 + xyMB^2 - xyc^2$$&lt;br /&gt;$$2yz\vec{MB} \vec{MC} = yzMB^2 + yzMC^2 - yza^2$$&lt;br /&gt;$$2zx\vec{MC} \vec{MA} = zxMC^2 + zxMA^2 - zxb^2$$&lt;br /&gt;&lt;br /&gt;Adding them, we obtain:&lt;br /&gt;$$RHS = \sum x(y+z)MA^2 - 2\sum xy \vec{MA} \vec{MB}$$&lt;br /&gt;&lt;br /&gt;So&lt;br /&gt;$$LHS - RHS = \sum x^2MA^2 + \sum x(y+z)MA^2 - RHS = \sum x^2 MA^2 + 2\sum xy \vec{MA} \vec{MB}$$&lt;br /&gt;$$= (x \vec{MA} + y \vec{MB} + z \vec{MC})^2 \geq 0 $$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-1661736979453645562?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/1661736979453645562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/05/triangle-inequality.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1661736979453645562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1661736979453645562'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/05/triangle-inequality.html' title='Triangle Inequality'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-1299937792986932888</id><published>2010-05-12T09:16:00.001-07:00</published><updated>2010-05-13T15:52:37.507-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sequence'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><title type='text'>Combined Sequence</title><content type='html'>Let $A,B$ be two distinct positive integers greater than 1, and define the sequences:&lt;br /&gt;&lt;br /&gt;$a_m = m + \frac{Bm}{A}, m = 1,2,3,\cdots, A-1$&lt;br /&gt;$b_m = m + \frac{Am}{B}, m = 1,2,3,\cdots, B-1$&lt;br /&gt;&lt;br /&gt;And combine those two sequence to form a new sequence $c_1,c_2,\cdots, c_{A+B-2}$ with $c_1 \leq c_2 \leq \cdots \leq c_{A+B-2}$.&lt;br /&gt;&lt;br /&gt;Prove that the difference between any two consecutive $c_i$s are less than 2.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It suffices to prove that for each $a_k$, we can find another $a_i$ or $b_j$ that lies between $a_k$ and $a_k+2$, and vice versa, for each $b_l$, we can find another $a_i$ or $b_j$ that lies between $b_l$ and $b_l + 2$.&lt;br /&gt;Without loss of generality, we may assume that $A &gt; B$.&lt;br /&gt;The distance between two consecutive $b_j$s are $b_{j+1} - b_j = 1 + B/A &lt; 2$, so for each $b_l$, we're guaranteed that $b_l &lt; b_{l+1} &lt; b_l+2$.&lt;br /&gt;&lt;br /&gt;Now we're left to consider $a_k$.&lt;br /&gt;Fix $k$, and now take the smallest $l$ such that $b_l &gt; a_k$. This is always possible because:&lt;br /&gt;\[a_k \leq a_{B-1} = (B-1)(1+A/B) &lt; (A-1)(1+B/A) = b_{A-1}\]&lt;br /&gt;(the middle inequality is true because $A &gt; B$.)&lt;br /&gt;&lt;br /&gt;If $l$ is the smallest such $l$, that means&lt;br /&gt;\[b_{l-1} \leq a_k \iff (l-1)(1+B/A) \leq k(1+A/B) \iff l/A - k/B \leq 1/A\]&lt;br /&gt;&lt;br /&gt;So &lt;br /&gt;\[b_l - a_k = l(1+B/A) - k(1+A/B) = (A+B)(l/A - k/B) \leq (A+B)/A &lt; 2\] &lt;br /&gt;which completes the proof&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-1299937792986932888?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/1299937792986932888/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/05/combined-sequence.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1299937792986932888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1299937792986932888'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/05/combined-sequence.html' title='Combined Sequence'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-1987173087801080190</id><published>2010-05-10T13:27:00.000-07:00</published><updated>2010-05-10T13:38:37.197-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='minimum'/><category scheme='http://www.blogger.com/atom/ns#' term='function'/><category scheme='http://www.blogger.com/atom/ns#' term='maximum'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><title type='text'>3 arbitrary functions</title><content type='html'>Suppose $f,g,h$ are functions that are defined in the closed interval $0 \leq x \leq 1$. Show that we can always find $a,b,c \in [0,1]$ such that:&lt;br /&gt;&lt;br /&gt;$$|f(a)+g(b)+h(c) - (1-a)(1-b)(1-c)| \geq \frac{1}{3}$$&lt;br /&gt;&lt;br /&gt;Also show that the constant $\frac{1}{3}$ cannot be replaced by a larger constant.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-1987173087801080190?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/1987173087801080190/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/05/sufficiently-large-point.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1987173087801080190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1987173087801080190'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/05/sufficiently-large-point.html' title='3 arbitrary functions'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-2302888628052246874</id><published>2010-05-10T12:36:00.000-07:00</published><updated>2010-05-13T15:58:31.792-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='prime'/><category scheme='http://www.blogger.com/atom/ns#' term='consecutive'/><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='prime set'/><category scheme='http://www.blogger.com/atom/ns#' term='divisibility'/><title type='text'>Finite Prime Set</title><content type='html'>Let $P$ be a finite set of primes. Define $m(P)$ as the largest number of consecutive integers each of which is divisible by a prime in $P$.&lt;br /&gt;Let $|P|$ denote the size of $P$ and $\min(P)$ to be the smallest element in $P$.&lt;br /&gt;&lt;br /&gt;Prove that:&lt;br /&gt;1. $m(P) \geq |P|$&lt;br /&gt;2. $m(P) = |P|$ if and only if $\min (P) &gt; |P|$&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Let $s = |P|$. We proceed by constructing $s$ consecutive integers which are each divisible by a prime in $P$. Indeed, the following system has a solution, according to Chinese Remainder Theorem:&lt;br /&gt;$x+1 \equiv 0 \pmod {p_1}$&lt;br /&gt;$x+2 \equiv 0 \pmod {p_2}$&lt;br /&gt;...&lt;br /&gt;$x+s \equiv 0 \pmod {p_s}$&lt;br /&gt;&lt;br /&gt;Second part:&lt;br /&gt;Suppose we have $s &lt; \min(P)$ and that we have $s+1$ consecutive integers all divisible by some $p_i$: $x, x+1, x+2, ... , x+s$. Let $p_1 = \min(P)$. &lt;br /&gt;&lt;br /&gt;For each $p_i$, it can only divide at most one of the above-mentioned integers. For if it divides $x+a$ and $x+b$ then it also divides $|a-b| \leq s &lt; p_1$, a contradiction (since $p_1$ is the smallest prime in $P$).&lt;br /&gt;So $m(P) \leq s$. But it's been shown that $m(P) \geq s$, so $m(P) = s$.&lt;br /&gt;&lt;br /&gt;Now suppose we have $s \geq \min(P)$. We will show $s+1$ consecutive integers such that each is divisible by a prime in $P$, which then establishes $m(P) &gt; s$.&lt;br /&gt;Let $k = \min(P)$. &lt;br /&gt;Again, we set up a system of equations as described above, but we choose the ordering of $p_i$s such that $p_k = k$. The rest can be arbitrary ordering. This is always possible if $s \geq k$.&lt;br /&gt;According to CRT, there is a solution of $s$ consecutive integers that satisfy the above system of equations. But then we also have $x = x+k - k$ divisible by $p_k = k$. So together with $x$, they form $s+1$ consecutive integers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-2302888628052246874?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/2302888628052246874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/05/finite-prime-set.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2302888628052246874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2302888628052246874'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/05/finite-prime-set.html' title='Finite Prime Set'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-9109012074119484298</id><published>2010-05-06T11:54:00.000-07:00</published><updated>2010-05-10T11:56:14.009-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='chess board'/><category scheme='http://www.blogger.com/atom/ns#' term='pigeon hole'/><category scheme='http://www.blogger.com/atom/ns#' term='lattice'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='coloring'/><title type='text'>Chess Board Coloring</title><content type='html'>Each cell in an infinite chess board is colored with one of the $n$ available colors. Prove that we can always find a rectangle such that all four corners have the same color.&lt;br /&gt;&lt;br /&gt;Advanced version: Suppose not all cells are colored, but only some of them. Furthermore, for any circle with radius R, we can always find a colored cell in that circle. Prove that we can still find a monochromatic rectangle.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-9109012074119484298?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/9109012074119484298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/05/chess-board-coloring.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/9109012074119484298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/9109012074119484298'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/05/chess-board-coloring.html' title='Chess Board Coloring'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-271783298510464979</id><published>2010-05-06T11:51:00.000-07:00</published><updated>2010-05-10T11:54:33.815-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solution'/><category scheme='http://www.blogger.com/atom/ns#' term='cosine'/><category scheme='http://www.blogger.com/atom/ns#' term='Geometry'/><category scheme='http://www.blogger.com/atom/ns#' term='cosine theorem'/><title type='text'>Solution: Cyclic quadrilateral</title><content type='html'>Original Problem: &lt;a href="http://dharmath.blogspot.com/2010/05/cyclic-quadrilateral.html"&gt;http://dharmath.blogspot.com/2010/05/cyclic-quadrilateral.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;First Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Let $AB=AD=x, BC=y$ and $CD=x+z$ with $y &lt; z$.&lt;br /&gt;&lt;br /&gt;Let $\theta = \angle ADC$ so $\angle ABC = 180^o-\theta$. It's easy to see that because $CD &gt; BC$ then $\angle ABC &gt; \angle ADC$ thus $0 &lt; \theta &lt; 90^o$&lt;br /&gt;&lt;br /&gt;Now $AC^2 = x^2 + y^2 + 2xy \cos \theta = x^2 + (x+z)^2 - 2x(x+z)\cos \theta$, simplify it to get:&lt;br /&gt;$\cos \theta = \frac{(x+z)^2-y^2}{2x(x+y+z)} = \frac{x+z-y}{x}$&lt;br /&gt;&lt;br /&gt;But since $\theta$ is an acute angle, $\theta &lt; 60^o \iff \cos \theta &gt; 1/2$&lt;br /&gt;So we need to show&lt;br /&gt;$x+z-y &gt; x$ which is true because $z &gt; y$&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Second Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_r_SY6OtK7KY/S-hVbcyMVhI/AAAAAAAAAnk/kB8vqqJl66k/s1600/geometry1.gif"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 303px; height: 320px;" src="http://4.bp.blogspot.com/_r_SY6OtK7KY/S-hVbcyMVhI/AAAAAAAAAnk/kB8vqqJl66k/s320/geometry1.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5469715677513012754" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Let $R$ be a point on $CD$ such that $CB = CR$ (see the picture).&lt;br /&gt;&lt;br /&gt;Since $AB=AD$, then $CA$ is an internal angle bisector, and thus $\triangle ABC$ are congruent to $\triangle ARC$. That means $RD = CD - CR = CD - CB &gt; AB = AD$.&lt;br /&gt;Also, $AD = AB = AR$.&lt;br /&gt;So $\triangle ARD$ is an isosceles where $AD = AR$ and $RD &gt; AD$, which means that $\angle ADR &lt; 60^o$ and thus $\angle ABC &gt; 120^o$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-271783298510464979?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/271783298510464979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/05/solution-cyclic-quadrilateral.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/271783298510464979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/271783298510464979'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/05/solution-cyclic-quadrilateral.html' title='Solution: Cyclic quadrilateral'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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/_r_SY6OtK7KY/S-hVbcyMVhI/AAAAAAAAAnk/kB8vqqJl66k/s72-c/geometry1.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6803079253342371630.post-8245211183518421397</id><published>2010-05-05T10:36:00.000-07:00</published><updated>2010-05-06T11:53:46.306-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='eucledian'/><category scheme='http://www.blogger.com/atom/ns#' term='cyclic quadrilateral'/><category scheme='http://www.blogger.com/atom/ns#' term='circle'/><category scheme='http://www.blogger.com/atom/ns#' term='Geometry'/><title type='text'>Cyclic quadrilateral</title><content type='html'>In a cyclic quadrilateral $ABCD$ such that $AB = AD$ and $AB+BC &lt; CD$, show that $ABC &gt; 120^o$&lt;br /&gt;&lt;br /&gt;Solution: &lt;a href="http://dharmath.blogspot.com/2010/05/solution-cyclic-quadrilateral.html"&gt;http://dharmath.blogspot.com/2010/05/solution-cyclic-quadrilateral.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-8245211183518421397?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/8245211183518421397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/05/cyclic-quadrilateral.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8245211183518421397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8245211183518421397'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/05/cyclic-quadrilateral.html' title='Cyclic quadrilateral'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-6772814629963021101</id><published>2010-04-22T19:22:00.000-07:00</published><updated>2010-05-05T10:40:24.843-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='triangular numbers'/><category scheme='http://www.blogger.com/atom/ns#' term='Solution'/><category scheme='http://www.blogger.com/atom/ns#' term='recursion'/><category scheme='http://www.blogger.com/atom/ns#' term='multivariable recursion'/><category scheme='http://www.blogger.com/atom/ns#' term='monotonic function'/><category scheme='http://www.blogger.com/atom/ns#' term='induction'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='generating function'/><category scheme='http://www.blogger.com/atom/ns#' term='pyramidal numbers'/><title type='text'>Solution 1: Critical Height</title><content type='html'>Original problem: &lt;a href="http://dharmath.blogspot.com/2010/04/critical-height.html"&gt;http://dharmath.blogspot.com/2010/04/critical-height.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You have an infinite supply of crystal balls that you take into a building with 1000 stories.&lt;br /&gt;&lt;br /&gt;There is a critical height at which if you drop the ball from there, the ball would break. If the ball is dropped from the floors under that critical height, it would not break, but if it's dropped from the floors above, obviously, it breaks.&lt;br /&gt;&lt;br /&gt;How many trials minimum do you need in order to determine the critical height?&lt;br /&gt;&lt;br /&gt;Advanced version #1: If you only have a supply of $k$ balls, how many trials minimum do you need?&lt;br /&gt;&lt;br /&gt;Advanced version #2: What is the strategy that would minimize the expected number of trials, given that you only have $k$ balls, if we treat the critical height as a random variable drawn uniformly from (1,...,1000)?&lt;br /&gt;&lt;br /&gt;Note that the two advanced versions are two different questions and thus beget two different strategies.&lt;br /&gt;&lt;br /&gt;Clarification: When I say "how many trials minimum do you need in order to determine the critical height" it formally means: find the smallest integer $N$ such that it's always possible to determine the critical height within $N$ trials, regardless of where the critical height is. Naturally, this $N$ will be expressed in terms of $k$ in the case of advanced version #1.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution to advanced version #1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First we make an observation that we only care about the number of floors that are possible candidates, and the actual floor height is irrelevant. For example, if we know that the critical height must be in the floor 10 to 30, or if we know that it must be in the floor 510-530, we can employ the exact same strategy in both of those situations. The number of minimum trials needed to solve both scenarios are the same, and any action we do in one scenario is directly translatable to the other scenario. We consider these two scenarios as equivalent problems.&lt;br /&gt;&lt;br /&gt;Our second observation is that the possible candidates are always in the form of one contiguous block of floors. We start with a block of 1000 floors (floor 1 to 1000). Every time we drop a ball from a certain floor, say floor $a$ either it breaks or it doesn't break. If it breaks, then our next candidate is floor 1 to $a$, and if it doesn't, then our next candidate is floor $a+1$ to 1000. Every time we drop a ball, we divide one contiguous block into two (possibly unequal) halves and we eliminate one half, so we establish an invariant that our candidates are always one contiguous block of floors.&lt;br /&gt;&lt;br /&gt;From the two observations above, we may define a function $f(n,k)$ as the minimum number of trials needed to solve the case with $n$ floors and $k$ balls. Without loss of generality (and for notational ease), we may assume that the floors are floor 1 to $n$.&lt;br /&gt;&lt;br /&gt;Suppose our first drop is at floor $a$. As we described above, if it breaks, then we are left with $k-1$ balls to find the critical height among floor 1 to $a$. We need at least $f(a,k-1)$ trials to do this. Otherwise, we still have $k$ balls to find the critical height among floor $a+1,...,1000$. We need at least $f(1000-a, k)$ trials. So in the worst case, we need at least $f(n,k) = \max ( f(a,k-1) , f(n-a,k) ) + 1$ if our first drop is at floor $a$. However, we can choose $a$ to minimize the number of trials.&lt;br /&gt;So:&lt;br /&gt;$$ f(n,k) = \min_{a} \left( \max ( f(a,k-1) , f(n-a,k) ) \right) + 1$$&lt;br /&gt;&lt;br /&gt;For $k=1$, if we only have 1 ball, then the only possible strategy is to drop it sequentially from floor 1,2,... until it breaks. Thus $f(n,1) = n-1$ For example, if we know that the critical height is somewhere between floor 1 to 3, then we drop it at floor 1 and 2. If it doesn't break at floor 2, then we don't need to test floor 3 because it already know it breaks at floor 3. &lt;br /&gt;&lt;br /&gt;Consider the case of $k=2$. Let $g(n) = f(n,2)$. From the recursion above, we have:&lt;br /&gt;$$ g(n) = \min_{a} \left( \max ( a-1 , g(n-a) ) \right) + 1$$&lt;br /&gt;&lt;br /&gt;Let $T(n)$ be the $n$-th triangular number. That is, &lt;br /&gt;$T(0) = 0$&lt;br /&gt;$T(1) = 1$&lt;br /&gt;$T(2) = 1+2 = 3$&lt;br /&gt;$T(3) = 1+2+3 = 6$&lt;br /&gt;...&lt;br /&gt;$T(n) = n(n+1)/2$&lt;br /&gt;And let $T^{-1}(n)$ be the ceiling of the inverse triangular number. &lt;br /&gt;That is &lt;br /&gt;$T^{-1}(0) = 0$&lt;br /&gt;$T^{-1}(1) = 1$&lt;br /&gt;$T^{-1}(2) = T^{-1}(3) = 2$&lt;br /&gt;$T^{-1}(4) = T^{-1}(5) = T^{-1}(6) = 3$&lt;br /&gt;$T^{-1}(7) = T^{-1}(8) = T^{-1}(9) = T^{-1}(10) = 4$&lt;br /&gt;and so on.&lt;br /&gt;&lt;br /&gt;We claim that $g(n) = T^{-1}(n-1)$, which we shall prove by induction.&lt;br /&gt;For small $n$ we can verify by hand that we can solve $n$ floors and that it's the minimal amount. In fact, for small $n$, $T^{-1}(n-1)$ agrees with $\log_2 n$ which is the information theoretic lower bound.&lt;br /&gt;&lt;br /&gt;Now we proceed by strong induction.&lt;br /&gt;$$ g(n) = \min_{a} \left( \max ( a-1 , T^{-1}(n-a-1) ) \right) + 1$$&lt;br /&gt;Note that $T$ is a monotonically increasing function, which means $T^{-1}(n)$ is monotonically non-decreasing. But since the argument to the function is $n-a-1$, the second half of the max is actually non-increasing.&lt;br /&gt;&lt;br /&gt;We wish to find $a$ that minimizes the max of two function, one of which is increasing and another non-increasing. The minimum must happen when the two functions intersect, that is when $a-1 = T^{-1}(n-a-1)$. &lt;br /&gt;&lt;br /&gt;$$T^{-1}(n-a-1) = a-1$$&lt;br /&gt;$$n-a-1 \leq T(a-1) = a(a-1)/2$$&lt;br /&gt;$$n-1 \leq a+ a(a-1)/2 = a(a+1)/2 = T(a)$$&lt;br /&gt;$$n-1 \leq T(a)$$&lt;br /&gt;$$T^{-1}(n-1) \leq a$$&lt;br /&gt;&lt;br /&gt;So the $a$ that minimizes is $T^{-1}(n-1)$, and for that value of $a$,&lt;br /&gt;$f(n) = (a-1) + 1 = a = T^{-1}(n-1)$.&lt;br /&gt;&lt;br /&gt;This completes our proof for $k=2$. For an example, suppose we have 11 floors and 2 balls, then our first drop should be at floor 4. If it breaks then we resort to the linear approach with our one remaining ball to discover which among floor 1,2,3,4 is the critical height. We can do it in 3 trials. If it doesn't break, then we drop it at floor 7. If it breaks at floor 7, then the critical floor must be floor 5, 6, or 7, which we can find in 2 trials. If it keeps not breaking, we drop it at floor 9, then 10. In any case, we will find it within 4 trials.&lt;br /&gt;&lt;br /&gt;For case $k=3$, we do the same thing except we replace $T$ with $P$, the $n$ pyramidal number.&lt;br /&gt;$P(0) = T(0) = 0$&lt;br /&gt;$P(1) = T(1) = 1$&lt;br /&gt;$P(2) = T(1) + T(2) = 4$&lt;br /&gt;$P(3) = T(1) + T(2) + T(3) = 10$&lt;br /&gt;...&lt;br /&gt;$P(n) = n(n+1)(n+2) / 6$&lt;br /&gt;The arguments in the proof still hold to establish feasibility and optimality of this strategy.&lt;br /&gt;&lt;br /&gt;For general case $k$, we replace $P$ with $H_k$, the $n$-th hyper-pyramidal number:&lt;br /&gt;$$H_k (n) = n(n+1)...(n+k-1) / k! = \binom{n+k-1}{k}$$&lt;br /&gt;And the minimum number of trials is&lt;br /&gt;$$f(n,k) = H_k^{-1}(n-1)$$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-6772814629963021101?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/6772814629963021101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/04/solution-1-critical-height.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6772814629963021101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6772814629963021101'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/04/solution-1-critical-height.html' title='Solution 1: Critical Height'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-4008746495251406123</id><published>2010-04-22T11:51:00.000-07:00</published><updated>2010-05-05T10:38:59.369-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='crystal ball'/><category scheme='http://www.blogger.com/atom/ns#' term='induction'/><category scheme='http://www.blogger.com/atom/ns#' term='break'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='building'/><category scheme='http://www.blogger.com/atom/ns#' term='floor'/><title type='text'>Critical Height</title><content type='html'>You have an infinite supply of crystal balls that you take into a building with 1000 stories.&lt;br /&gt;&lt;br /&gt;There is a critical height at which if you drop the ball from there, the ball would break. If the ball is dropped from the floors under that critical height, it would not break, but if it's dropped from the floors above, obviously, it breaks.&lt;br /&gt;&lt;br /&gt;How many trials minimum do you need in order to determine the critical height?&lt;br /&gt;&lt;br /&gt;Advanced version #1: If you only have a supply of $k$ balls, how many trials minimum do you need?&lt;br /&gt;&lt;br /&gt;Advanced version #2: What is the strategy that would minimize the expected number of trials, given that you only have $k$ balls, if we treat the critical height as a random variable drawn uniformly from (1,...,1000)?&lt;br /&gt;&lt;br /&gt;Note that the two advanced versions are two different questions and thus beget two different strategies.&lt;br /&gt;&lt;br /&gt;Clarification: When I say "how many trials minimum do you need in order to determine the critical height" it formally means: find the smallest integer $N$ such that it's always possible to determine the critical height within $N$ trials, regardless of where the critical height is. Naturally, this $N$ will be expressed in terms of $k$ in the case of advanced version #1.&lt;br /&gt;&lt;br /&gt;Solution to advanced version #1:&lt;br /&gt;&lt;a href="http://dharmath.blogspot.com/2010/04/solution-1-critical-height.html"&gt;http://dharmath.blogspot.com/2010/04/solution-1-critical-height.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-4008746495251406123?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/4008746495251406123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/04/critical-height.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4008746495251406123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4008746495251406123'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/04/critical-height.html' title='Critical Height'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6803079253342371630.post-2976693152288313932</id><published>2010-03-23T08:35:00.000-07:00</published><updated>2010-03-23T08:40:38.098-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='square'/><category scheme='http://www.blogger.com/atom/ns#' term='Solution'/><category scheme='http://www.blogger.com/atom/ns#' term='prime'/><category scheme='http://www.blogger.com/atom/ns#' term='divisibility'/><title type='text'>Solution: Happy Saint Math Trick's Day</title><content type='html'>Original problem: &lt;a href="http://dharmath.blogspot.com/2010/03/happy-saint-math-tricks-day.html"&gt;http://dharmath.blogspot.com/2010/03/happy-saint-math-tricks-day.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;This problem is inspired by &lt;a href="http://spikedmath.com/199.html"&gt;this comic&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Prove that the trick in the comic always works. In other words, if $p$ is a prime number greater than 3, prove that $p^2 + 14 \equiv 3 \mod 12$&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Solution&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;$p^2 + 14 \equiv 3 \mod 12$ means that $p^2+11$ is divisible by 12, which means that $p^2+11-12 = p^2-1$ is divisible by 12.&lt;br /&gt;&lt;br /&gt;If $p$ is a prime number greater than 3, then $p$ is odd. This means that $p$ divided by 4 has remainder either 1 or 3. In both cases, $p^2$ divided by 4 has remainder 1, which means $p^2-1$ is divisible by 4.&lt;br /&gt;&lt;br /&gt;If $p$ is a prime number greater than 3, then $p$ divided by 3 has remainder either 1 or 2. In both cases, $p^2$ divided by 3 has remainder 1, which again means $p^2-1$ is divisible by 3.&lt;br /&gt;&lt;br /&gt;Since $p^2-1$ is divisible by both 3 and 4, it is divisible by 12.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-2976693152288313932?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/2976693152288313932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/03/solution-happy-saint-math-tricks-day.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2976693152288313932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2976693152288313932'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/03/solution-happy-saint-math-tricks-day.html' title='Solution: Happy Saint Math Trick&apos;s Day'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-6821835740274819244</id><published>2010-03-23T08:10:00.001-07:00</published><updated>2010-03-23T08:41:02.660-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='modulo'/><category scheme='http://www.blogger.com/atom/ns#' term='prime'/><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='comic'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><category scheme='http://www.blogger.com/atom/ns#' term='spiked math'/><title type='text'>Happy Saint Math Trick's Day</title><content type='html'>&lt;span style="font-style:italic;"&gt;This problem is inspired by &lt;a href="http://spikedmath.com/199.html"&gt;this comic&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Prove that the trick in the comic always works. In other words, if $p$ is a prime number greater than 3, prove that $p^2 + 14 \equiv 3 \mod 12$&lt;br /&gt;&lt;br /&gt;Solution: &lt;a href="http://dharmath.blogspot.com/2010/03/solution-happy-saint-math-tricks-day.html"&gt;http://dharmath.blogspot.com/2010/03/solution-happy-saint-math-tricks-day.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-6821835740274819244?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/6821835740274819244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/03/happy-saint-math-tricks-day.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6821835740274819244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6821835740274819244'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/03/happy-saint-math-tricks-day.html' title='Happy Saint Math Trick&apos;s Day'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-5062131772761099539</id><published>2010-03-19T15:27:00.000-07:00</published><updated>2010-03-19T22:39:03.060-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='inradius'/><category scheme='http://www.blogger.com/atom/ns#' term='Solution'/><category scheme='http://www.blogger.com/atom/ns#' term='ellipse'/><category scheme='http://www.blogger.com/atom/ns#' term='focus'/><category scheme='http://www.blogger.com/atom/ns#' term='foci'/><category scheme='http://www.blogger.com/atom/ns#' term='dandelin sphere'/><category scheme='http://www.blogger.com/atom/ns#' term='incenter'/><category scheme='http://www.blogger.com/atom/ns#' term='trigonometry'/><title type='text'>Second Solution: Osculating Circle, Ellipse, and Cone</title><content type='html'>Original Problem: &lt;a href="http://dharmath.blogspot.com/2010/03/osculating-circle-ellipse-and-cone.html"&gt;http://dharmath.blogspot.com/2010/03/osculating-circle-ellipse-and-cone.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;An osculating circle of a point on a curve is defined as a circle that:&lt;br /&gt;1. passes through that point&lt;br /&gt;2. whose slope at that point is the same of the slope of the curve at that point&lt;br /&gt;3. whose radius is the same as the radius of curvature of the curve at that point&lt;br /&gt;&lt;br /&gt;In other words, it is a second-degree approximation circle of the curve at that point.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Osculating_circle"&gt;http://en.wikipedia.org/wiki/Osculating_circle&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Given a cone whose half-angle is $\theta$, we take a cross section with a plane whose incident angle is $\theta$. That is, the plane is perpendicular to one of the cone rays. Naturally, the cross section forms an ellipse.&lt;br /&gt;&lt;br /&gt;If O is the intersection of the main axis of the cone and the cross section, and A is the point on the ellipse's major axis that's closest to O, then prove that a circle with center O and radius OA is an osculating circle to the ellipse at A.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Hint: for people without any knowledge of calculus, the radius of osculating circle at A is $b^2/a$ where $b$ is half the length of minor axis and $a$ is half the length of major axis (standard ellipse notation).&lt;br /&gt;The rest of the problem can be done without using calculus.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Second Solution&lt;/h4&gt;&lt;br /&gt;As given in the hint, the radius of the osculating circle is $b^2/a$. And clearly the circle in the problem passes through A and its tangent at A is perpendicular to the major axis, hence coincides with the ellipse's tangent. We are left to prove that $OA = b^2/a$. However, astute readers will note that $b^2/a$ is exactly the length of semi latus-rectum of the ellipse. So suppose $D$ is the focus that's closest to $A$, and $GG_1$ is the latus rectum passing through $D$, we will show that $DG = OA$.&lt;br /&gt;&lt;br /&gt;Let $B$ be the point on the major axis that's farthest to $O$, and let $S$ be the vertex of the ellipse. Let $x = 2 \theta$ be the angle of the cone. We also note that $AO \perp AS$.&lt;br /&gt;&lt;br /&gt;Let $\tau$ be the plane that passes through $GG_1$ (and hence through D) and perpendicular to the cone axis. Let $E$ be the point of intersection of the axis and this plane. The cross section of the cone with $\tau$ is a circle with center $E$. Let $F$ be the point on the circle such that $EF$ passes through $D$.&lt;br /&gt;&lt;br /&gt;Since $SO$ is an angle bisector, we have $AO:OB = SA:SB = \cos x$, thus &lt;br /&gt;$$AO = \frac{\cos x }{ \cos x+1} AB = \frac{\sin x \cos x }{ \cos x+1} SB$$&lt;br /&gt;&lt;br /&gt;Now, $D$ is the point at which the smaller Dandelin Sphere touches the ellipse. If we consider the triangle $SAB$, then $D$ is where the incenter of that triangle touches $AB$. Since $SAB$ is a right angle at $A$, then $DA$ is the radius of that incenter.&lt;br /&gt;$$DA = \frac{AS.AB}{AS+AB+SB} = \frac{\sin x \cos x}{1 + \sin x + \cos x} SB$$&lt;br /&gt;&lt;br /&gt;Thus $AO : DA = (1+ \sin x + \cos x) : (1 + \cos x) = 1 + (\sin x) / (1 + \cos x)$&lt;br /&gt;Which means $DO:AD:AO = \sin x : (1 + \cos x) : (1 + \sin x + \cos x)$&lt;br /&gt;&lt;br /&gt;Now, looking back at the triangle $SAB$ and the plane that contains it, &lt;br /&gt;$$DF = \frac{AD}{\cos \theta} = \frac{1 + \cos x}{(1 + \sin x + \cos x) \cos \theta} OA$$&lt;br /&gt;and &lt;br /&gt;$$DE = DO \cos \theta = \frac{\sin x \cos \theta}{1 + \sin x + \cos x} OA$$&lt;br /&gt;So &lt;br /&gt;$$DG^2 = EG^2 - DE^2 = EF^2 - DE^2 = (DE + DF)^2 - DE^2 = DF(DF + 2DE)$$&lt;br /&gt;$$ = \frac{OA^2}{(1 + \sin x + \cos x)^2} \frac{1 + \cos x}{\cos \theta} \left(\frac{1 + \cos x}{\cos \theta} + 2\sin x \cos \theta \right)$$&lt;br /&gt;Since $x = 2\theta$, then $1 + \cos x = 2 \cos^2 \theta$&lt;br /&gt;$$(1 + \sin x + \cos x)^2 = (2 \cos^2 \theta + 2 \sin \theta \cos \theta)^2 = 4 \cos^2 \theta (\sin \theta + \cos \theta)^2$$&lt;br /&gt;and&lt;br /&gt;$$ \frac{1 + \cos x}{\cos \theta} + 2\sin x \cos \theta  = 2 \cos \theta + 2 \sin x \cos \theta = 2 \cos \theta (1 + \sin x)$$&lt;br /&gt;So&lt;br /&gt;$$DG^2 = \frac{OA^2}{4 \cos^2 \theta (\sin \theta + \cos \theta)^2} \frac{2 \cos^2 \theta}{\cos \theta} 2 \cos \theta (1 + \sin x)$$&lt;br /&gt;$$ = OA^2 \frac{1 + \sin x}{(\sin \theta + \cos \theta)^2}$$&lt;br /&gt;&lt;br /&gt;But &lt;br /&gt;$$1 + \sin x = 1 + 2 \sin \theta \cos \theta = \cos^2 \theta + \sin^2 \theta + 2 \sin \theta \cos \theta = (\sin \theta + \cos \theta)^2$$&lt;br /&gt;&lt;br /&gt;So $DG^2 = OA^2$ which means $DG = OA$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-5062131772761099539?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/5062131772761099539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/03/second-solution-osculating-circle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5062131772761099539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5062131772761099539'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/03/second-solution-osculating-circle.html' title='Second Solution: Osculating Circle, Ellipse, and Cone'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-3109264081131014304</id><published>2010-03-19T15:23:00.000-07:00</published><updated>2010-03-19T15:26:43.272-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='poison'/><category scheme='http://www.blogger.com/atom/ns#' term='jug'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='rat'/><category scheme='http://www.blogger.com/atom/ns#' term='wine'/><title type='text'>Which jug is poisoned?</title><content type='html'>You have 1000 jugs of wine, one of which has been poisoned. You have access to rats that would die within 23 hours of drinking that poison. You need to determine which jug is poisoned within 24 hours. How many rats do you need at minimum?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-3109264081131014304?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/3109264081131014304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/03/which-jug-is-poisoned.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3109264081131014304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3109264081131014304'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/03/which-jug-is-poisoned.html' title='Which jug is poisoned?'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-3935171759546555996</id><published>2010-03-18T16:52:00.000-07:00</published><updated>2010-03-18T16:56:48.005-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='counterfeit'/><category scheme='http://www.blogger.com/atom/ns#' term='technology review'/><category scheme='http://www.blogger.com/atom/ns#' term='coin'/><category scheme='http://www.blogger.com/atom/ns#' term='precision'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='weighings'/><category scheme='http://www.blogger.com/atom/ns#' term='fake'/><category scheme='http://www.blogger.com/atom/ns#' term='scale'/><title type='text'>Which stack has counterfeit coins?</title><content type='html'>&lt;span style="font-style:italic;"&gt;Credit to this problem goes to MIT Technology Review Puzzle Corner, November/December 2009 Edition.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Given thirteen stacks each containing four coins, we are told that exactly one stack contains all counterfeit coins. A counterfeit coin weighs less than a good coin by an amount not exceeding 5 grams, and all good coins weigh an integral number of grams.&lt;br /&gt;&lt;br /&gt;We are given a precision scale with a very wide area to put the coins on. We need to answer all these three questions all in two weighings:&lt;br /&gt;1. What is the weight of a good coin?&lt;br /&gt;2. What is the weight of a counterfeit coin?&lt;br /&gt;3. Which stack has the counterfeit coins?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-3935171759546555996?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/3935171759546555996/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/03/which-stack-has-counterfeit-coins.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3935171759546555996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3935171759546555996'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/03/which-stack-has-counterfeit-coins.html' title='Which stack has counterfeit coins?'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-965685418124171842</id><published>2010-03-18T14:08:00.000-07:00</published><updated>2010-07-04T11:33:28.119-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='inradius'/><category scheme='http://www.blogger.com/atom/ns#' term='Solution'/><category scheme='http://www.blogger.com/atom/ns#' term='ellipse'/><category scheme='http://www.blogger.com/atom/ns#' term='focus'/><category scheme='http://www.blogger.com/atom/ns#' term='foci'/><category scheme='http://www.blogger.com/atom/ns#' term='dandelin sphere'/><category scheme='http://www.blogger.com/atom/ns#' term='incenter'/><category scheme='http://www.blogger.com/atom/ns#' term='trigonometry'/><title type='text'>Solution: Osculating Circle, Ellipse, and Cone</title><content type='html'>Original Problem: &lt;a href="http://dharmath.blogspot.com/2010/03/osculating-circle-ellipse-and-cone.html"&gt;http://dharmath.blogspot.com/2010/03/osculating-circle-ellipse-and-cone.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;An osculating circle of a point on a curve is defined as a circle that:&lt;br /&gt;1. passes through that point&lt;br /&gt;2. whose slope at that point is the same of the slope of the curve at that point&lt;br /&gt;3. whose radius is the same as the radius of curvature of the curve at that point&lt;br /&gt;&lt;br /&gt;In other words, it is a second-degree approximation circle of the curve at that point.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Osculating_circle"&gt;http://en.wikipedia.org/wiki/Osculating_circle&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Given a cone whose half-angle is $\theta$, we take a cross section with a plane whose incident angle is $\theta$. That is, the plane is perpendicular to one of the cone rays. Naturally, the cross section forms an ellipse.&lt;br /&gt;&lt;br /&gt;If O is the intersection of the main axis of the cone and the cross section, and A is the point on the ellipse's major axis that's closest to O, then prove that a circle with center O and radius OA is an osculating circle to the ellipse at A.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Hint: for people without any knowledge of calculus, the radius of osculating circle at A is $b^2/a$ where $b$ is half the length of minor axis and $a$ is half the length of major axis (standard ellipse notation).&lt;br /&gt;The rest of the problem can be done without using calculus.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Solution&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;As given in the hint, the radius of the osculating circle is $b^2/a$. And clearly the circle in the problem passes through A and its tangent at A is perpendicular to the major axis, hence coincides with the ellipse's tangent. We are left to prove that $OA = b^2/a$. &lt;br /&gt;&lt;br /&gt;Let B be the point on the major axis that's farthest to O, and let C be the vertex of the ellipse. Let $x = 2 \theta$ be the angle of the cone. We also note that $AO \perp AC$.&lt;br /&gt;&lt;br /&gt;Now the length of major axis $2a = AB = BC \sin x \iff \frac{a}{BC} = \frac{\sin x}{2}$.&lt;br /&gt;&lt;br /&gt;Since CO is an angle bisector, then $OA/OB = CA/CB = \cos x$ &lt;br /&gt;$$\frac{OA}{AB-OA} = \cos x \iff OA = \frac{AB \cos x}{1 + \cos x} = \frac{2a \cos x}{1 + \cos x}$$&lt;br /&gt;&lt;br /&gt;Now, let D be the point where the smaller Dandelin Sphere touches the cutting plane.&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Dandelin_spheres"&gt;http://en.wikipedia.org/wiki/Dandelin_spheres&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;D is the focus that's closest to A. Therefore $DA = a-c$ where $c = \sqrt{a^2-b^2}$ (using the standard ellipse notation). But the center of the Dandelin sphere is also the incenter of the triangle ABC, so DA is the same as inradius of ABC. Using the inradius formula, and since $\angle BAC = \pi/2$&lt;br /&gt;&lt;br /&gt;$$DA = \frac{AC.AB}{AC+AB+BC} = \frac{BC \cos x . BC \sin x}{BC \cos x + BC \sin x + BC} = BC \frac{\cos x \sin x}{1+\sin x + \cos x}$$&lt;br /&gt;&lt;br /&gt;So&lt;br /&gt;$$a-c = BC \frac{\cos x \sin x}{1+\sin x + \cos x}$$&lt;br /&gt;$$c/BC = a/BC - \frac{\cos x \sin x}{1+\sin x + \cos x} = \frac{\sin x}{2} - \frac{\cos x \sin x}{1+\sin x + \cos x} = \frac{\sin x}{2} . \frac{1 + \sin x - \cos x}{1 + \sin x + \cos x}$$&lt;br /&gt;Thus $$\frac{c}{a} = \frac{1 + \sin x - \cos x}{1 + \sin x + \cos x}$$&lt;br /&gt;&lt;br /&gt;Because $a^2 = b^2+c^2$,&lt;br /&gt;$$\left( \frac{b}{a} \right)^2 = 1 - \left( \frac{c}{a} \right)^2 = 1 - \frac{(1 + \sin x - \cos x)^2}{(1 + \sin x + \cos x)^2} = \frac{4(1+\sin x)(\cos x)}{(1 + \sin x + \cos x)^2}$$&lt;br /&gt;But &lt;br /&gt;$$(1 + \sin x + \cos x)^2 = (1 + \sin^2 x + \cos^2 x + 2 \sin x + 2 \cos x + 2 \sin x \cos x)$$ &lt;br /&gt;$$= 2(1+\sin x)(1+\cos x)$$&lt;br /&gt;So &lt;br /&gt;$$\frac{b^2}{a^2} = \frac{2 \cos x}{1 + \cos x} = \frac{OA}{a}$$&lt;br /&gt;&lt;br /&gt;Which means $OA = b^2/a$&lt;br /&gt;&lt;br /&gt;Alternative solution available here: &lt;a href="http://dharmath.blogspot.com/2010/03/second-solution-osculating-circle.html"&gt;Second Solution&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-965685418124171842?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/965685418124171842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/03/solution-osculating-circle-ellipse-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/965685418124171842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/965685418124171842'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/03/solution-osculating-circle-ellipse-and.html' title='Solution: Osculating Circle, Ellipse, and Cone'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-5050756527270514205</id><published>2010-03-12T11:17:00.000-08:00</published><updated>2010-03-19T22:36:00.242-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='osculating circle'/><category scheme='http://www.blogger.com/atom/ns#' term='3D'/><category scheme='http://www.blogger.com/atom/ns#' term='calculus'/><category scheme='http://www.blogger.com/atom/ns#' term='ellipse'/><category scheme='http://www.blogger.com/atom/ns#' term='cross section'/><category scheme='http://www.blogger.com/atom/ns#' term='solid geometry'/><category scheme='http://www.blogger.com/atom/ns#' term='Geometry'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><category scheme='http://www.blogger.com/atom/ns#' term='cone'/><title type='text'>Osculating Circle, Ellipse, and Cone</title><content type='html'>An osculating circle of a point on a curve is defined as a circle that:&lt;br /&gt;1. passes through that point&lt;br /&gt;2. whose slope at that point is the same of the slope of the curve at that point&lt;br /&gt;3. whose radius is the same as the radius of curvature of the curve at that point&lt;br /&gt;&lt;br /&gt;In other words, it is a second-degree approximation circle of the curve at that point.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Osculating_circle"&gt;http://en.wikipedia.org/wiki/Osculating_circle&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Given a cone whose half-angle is $\theta$, we take a cross section with a plane whose incident angle is $\theta$. That is, the plane is perpendicular to one of the cone rays. Naturally, the cross section forms an ellipse.&lt;br /&gt;&lt;br /&gt;If O is the intersection of the main axis of the cone and the cross section, and A is the point on the ellipse's major axis that's closest to O, then prove that a circle with center O and radius OA is an osculating circle to the ellipse at A.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Hint: for people without any knowledge of calculus, the radius of osculating circle at A is $b^2/a$ where $b$ is half the length of minor axis and $a$ is half the length of major axis (standard ellipse notation).&lt;br /&gt;The rest of the problem can be done without using calculus.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;a href="http://dharmath.blogspot.com/2010/03/osculating-circle-ellipse-and-cone.html"&gt;http://dharmath.blogspot.com/2010/03/osculating-circle-ellipse-and-cone.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Second Solution:&lt;br /&gt;&lt;a href="http://dharmath.blogspot.com/2010/03/second-solution-osculating-circle.html"&gt;http://dharmath.blogspot.com/2010/03/second-solution-osculating-circle.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-5050756527270514205?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/5050756527270514205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/03/osculating-circle-ellipse-and-cone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5050756527270514205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5050756527270514205'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/03/osculating-circle-ellipse-and-cone.html' title='Osculating Circle, Ellipse, and Cone'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-3551041725031126519</id><published>2010-03-12T10:56:00.000-08:00</published><updated>2010-03-12T11:05:52.245-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='graph theory'/><category scheme='http://www.blogger.com/atom/ns#' term='Solution'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='cycle'/><title type='text'>Solution: Tennis Tournament</title><content type='html'>Original problem:&lt;a href="http://dharmath.blogspot.com/2010/03/tennis-tournament.html"&gt; http://dharmath.blogspot.com/2010/03/tennis-tournament.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In a tennis tournament of 100 people, each player plays every other players exactly once. There is no draw in a tennis game, one side always wins.&lt;br /&gt;&lt;br /&gt;Given that no player loses all of his games, prove that there is a cycle of exactly 3 players. That is, there are players A,B, and C such that A defeats B, B defeats C, and C defeats A.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:100%;" &gt;First Solution&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First we prove that there exists a cycle of any length in the tournament. Indeed, take player A, "mark" him, and take any player that A defeats, say B, and also mark that player.. And take any player that B defeats, say C, mark him, and so on. At each turn, we are guaranteed to find a player that loses to that player. If we ever find a player that we have marked before, we obtain a cycle. But the number of marked players increases steadily while there is only a finite number of players in the tournament. Sooner or later, we will run out of players and we are guaranteed to return to a previously marked player.&lt;br /&gt;&lt;br /&gt;If this cycle that we found has length 3, then we are done. Now we establish the following statement via induction:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;A cycle of length at least 3 contains a cycle of length 3&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;The base case is trivial. Now suppose we have a cycle of length $k: A_1, A_2, \cdots, A_k$ where $A_i$ beats $A_{i+1}$ and $A_k$ beats $A_1$.&lt;br /&gt;&lt;br /&gt;If $A_1$ beats $A_{k-1}$ then we have a cycle of length 3: $A_1$ beats $A_{k-1}$ beats $A_k$ beats $A_1$.&lt;br /&gt;&lt;br /&gt;If $A_{k-1}$ beats $A_1$ then we have a cycle of length $k-1: A_1, \cdots, A_{k-1}$ which also contains a cycle of length 3 by induction hypothesis.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-3551041725031126519?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/3551041725031126519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/03/solution-tennis-tournament.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3551041725031126519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3551041725031126519'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/03/solution-tennis-tournament.html' title='Solution: Tennis Tournament'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-1897227923400380509</id><published>2010-03-09T21:34:00.001-08:00</published><updated>2010-03-09T21:36:21.290-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='tennis'/><category scheme='http://www.blogger.com/atom/ns#' term='tournament'/><category scheme='http://www.blogger.com/atom/ns#' term='match'/><category scheme='http://www.blogger.com/atom/ns#' term='cycle'/><title type='text'>Tennis tournament</title><content type='html'>In a tennis tournament of 100 people, each player plays every other players exactly once. There is no draw in a tennis game, one side always wins.&lt;br /&gt;&lt;br /&gt;Given that no player loses all of his games, prove that there is a cycle of exactly 3 players. That is, there are players A,B, and C such that A defeats B, B defeats C, and C defeats A.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-1897227923400380509?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/1897227923400380509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/03/tennis-tournament.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1897227923400380509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1897227923400380509'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/03/tennis-tournament.html' title='Tennis tournament'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-7106775313001160292</id><published>2010-03-09T21:28:00.000-08:00</published><updated>2010-03-09T21:34:05.148-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Random'/><title type='text'>Migrated here from wordpress</title><content type='html'>Due to some mix-ups with the hosting and domain company, and since I'm not really willing to pay for it anymore, I have decided to move my math problem repository here to blogspot. This past mix-up also explains my brief hiatus for about a month and a half. Thus, when reading any post older than March 10, 2010, please keep in mind that those posts were written for wordpress and were migrated automatically, thus you might lose some layout and formatting. I'll do my best to clean them up but I might miss some.&lt;br /&gt;&lt;br /&gt;From now on, problems and solutions will still be two separate posts. This is mainly because blogspot does not allow partial hiding or spoiler tags. Thus to prevent solutions from spoiling the problem posts, I will continue to post them separately.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-7106775313001160292?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/7106775313001160292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/03/migrated-here-from-wordpress.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/7106775313001160292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/7106775313001160292'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/03/migrated-here-from-wordpress.html' title='Migrated here from wordpress'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-1286349335372862852</id><published>2010-01-21T06:12:00.000-08:00</published><updated>2010-03-09T20:55:03.804-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sequence'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='probability'/><category scheme='http://www.blogger.com/atom/ns#' term='string'/><category scheme='http://www.blogger.com/atom/ns#' term='Random'/><category scheme='http://www.blogger.com/atom/ns#' term='expected value'/><title type='text'>Drawing letters</title><content type='html'>A string of alphabets are randomly generated one letter at a time. Each time, one obtains the letter $A,\cdots,Z$ with probability $p(A),\cdots, p(Z)$. Given that the sum of these probabilities is 1, what is the expected number of draws before the string "DHARMATH" appears?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-1286349335372862852?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/1286349335372862852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/01/drawing-letters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1286349335372862852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1286349335372862852'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/01/drawing-letters.html' title='Drawing letters'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-1606620037867079305</id><published>2010-01-13T07:56:00.000-08:00</published><updated>2010-03-09T20:55:03.797-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='probability'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><category scheme='http://www.blogger.com/atom/ns#' term='pair'/><category scheme='http://www.blogger.com/atom/ns#' term='Random'/><category scheme='http://www.blogger.com/atom/ns#' term='card'/><title type='text'>Paired cards</title><content type='html'>A standard deck of 52 cards is shuffled with uniform probability. A "pair" is defined as two numerically identical cards that are adjacent in the stack. What is the probability that the deck contains no pair?&lt;br/&gt;&lt;br/&gt;Challenge: Find the probability that the deck contains exactly $n$ pair for $n=1,2,\cdots,26$.&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;Solution&lt;/h4&gt;&lt;br/&gt;First we solve the following problem: given $n$ letters, how many strings of length $4n$ can we form such that there are no two equal adjacent letters and each letter appears exactly 4 times. For example, if $n=3$, then we wish to form  a string of length 12 from the letters A,B,C each appearing 4 times such that there are no two equal adjacent letters. Some examples of legal strings are ABCABCABCABC, or ABCBACACBCBA&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-1606620037867079305?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/1606620037867079305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/01/paired-cards.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1606620037867079305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1606620037867079305'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/01/paired-cards.html' title='Paired cards'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-6884509657721859871</id><published>2010-01-13T01:52:00.000-08:00</published><updated>2010-03-09T21:08:14.806-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='calculus'/><category scheme='http://www.blogger.com/atom/ns#' term='limit'/><category scheme='http://www.blogger.com/atom/ns#' term='infinite series'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><category scheme='http://www.blogger.com/atom/ns#' term='infinite sum'/><title type='text'>Infinite fractional sum</title><content type='html'>Find the limit to the infinite sum:&lt;br /&gt;&lt;br /&gt;$$ 1 - \frac{1}{2} +\frac{1}{3} - \frac{1}{4} + \cdots$$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-6884509657721859871?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/6884509657721859871/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/01/infinite-fractional-sum.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6884509657721859871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6884509657721859871'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/01/infinite-fractional-sum.html' title='Infinite fractional sum'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-518185669053734910</id><published>2010-01-12T09:55:00.000-08:00</published><updated>2010-03-09T21:08:58.288-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='repetition'/><category scheme='http://www.blogger.com/atom/ns#' term='Solution'/><category scheme='http://www.blogger.com/atom/ns#' term='reset'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='drawing'/><category scheme='http://www.blogger.com/atom/ns#' term='Random'/><category scheme='http://www.blogger.com/atom/ns#' term='expected value'/><title type='text'>Solution: Coupon drawing</title><content type='html'>Original problem here: &lt;a href="http://dharmath.thehendrata.com/2010/01/12/coupon-drawing/"&gt;http://dharmath.thehendrata.com/2010/01/12/coupon-drawing/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span id=":2js" dir="ltr"&gt;A container holds $N$ coupons. You draw successive coupons from the container, observe the coupon drawn, and then replace the coupon. What is the expected number of draws needed until all $N$ coupons have been seen at least once?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;Challenge: what is the probability that the process ends after exactly $M$ draws?&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;h4&gt;&lt;span dir="ltr"&gt;&lt;a name='more'&gt;&lt;/a&gt;Solution&lt;/span&gt;&lt;/h4&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;Answer: $N + N/2 + N/3 + \cdots + N/(N-1) + 1$&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;Proof: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;Fix $N$, and let $f(m)$ be the expected number of draws until we see all coupons, provided that we have seen $m$ coupons so far. The number that we are looking for is $f(0)$, and we know that $f(N) = 0$.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;Observe that when we draw a random coupon, we have a $m/N$ chance of drawing a coupon we have seen, and thus wasting our draw. After that draw, the expected number of draws is still $f(m)$. But we also have a $1-m/N$ chance of drawing a new coupon, after which our expected number becomes $f(m+1)$.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;So $f(m) = \frac{m}{N}(1 + f(m)) + (1-\frac{m}{N})(1 + f(m+1))$ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;which is equivalent to $f(m) = f(m+1) + \frac{N}{N-m}$&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;Since $f(N) = 0$, one can inductively prove that $f(m) = \frac{N}{1} + \frac{N}{2} + \cdots + \frac{N}{N-m}$&lt;/span&gt;&lt;br /&gt;&lt;h4&gt;&lt;span dir="ltr"&gt;Solution to challenge problem&lt;/span&gt;&lt;/h4&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;In order for the $M$-th draw to be the last draw, it must be the first occurrence of the last coupon needed. Let's say the last draw is $N$, then the first $M-1$ draws must be formed solely by coupons $1, \cdots, N-1$ where each coupon appears at least once.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;Let $a_r$ be the number of strings with length $r$ where each letter can be one of $1, \cdots, N-1$. Then the probability in question is $Na_{M-1}/ N^M$&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;Also, we have the following relationship &lt;/span&gt;&lt;span dir="ltr"&gt;(think Exponential Generating Function):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;$ \sum_{r=0}^{\infty} \frac{a_r}{r!}x^r = ( \sum_{r=1}^{\infty} \frac{1}{r!}x^r ) ^{N-1}$&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;so &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;$ RHS = (e^x - 1)^{N-1} = \sum_{k=0}^{N-1} \binom{N-1}{k} e^{kx} (-1)^{n-k-1}$&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;Now, the coefficient of $x^r$ in the binomial expansion is &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;$\sum_{k=0}^{N-1} \binom{N-1}{k}\frac{k^r}{r!} (-1)^{n-k-1}$&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;so that &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;$ a_r = \sum_{k=0}^{N-1}\binom{N-1}{k} k^r (-1)^{n-k-1}$&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span dir="ltr"&gt;There is (as far as I know) no known simplification for the above form.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-518185669053734910?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/518185669053734910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/01/solution-coupon-drawing.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/518185669053734910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/518185669053734910'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/01/solution-coupon-drawing.html' title='Solution: Coupon drawing'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-4758933286407126907</id><published>2010-01-11T02:30:00.000-08:00</published><updated>2010-03-09T20:55:03.531-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='replacement'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><category scheme='http://www.blogger.com/atom/ns#' term='drawing'/><category scheme='http://www.blogger.com/atom/ns#' term='Random'/><category scheme='http://www.blogger.com/atom/ns#' term='expected value'/><title type='text'>Coupon drawing</title><content type='html'>&lt;em&gt;Credit for this problem goes to Sander Parawira&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;&lt;span id=":2js" dir="ltr"&gt;A container holds $N$ coupons. You draw successive coupons from the container, observe the coupon drawn, and then replace the coupon. What is the expected number of draws needed until all $N$ coupons have been seen at least once?&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span dir="ltr"&gt;Solution here: &lt;/span&gt;&lt;a href="http://dharmath.thehendrata.com/2010/01/12/solution-coupon-drawing/"&gt;http://dharmath.thehendrata.com/2010/01/12/solution-coupon-drawing/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-4758933286407126907?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/4758933286407126907/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/01/coupon-drawing.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4758933286407126907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4758933286407126907'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/01/coupon-drawing.html' title='Coupon drawing'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-2107411677817255143</id><published>2010-01-09T16:51:00.000-08:00</published><updated>2010-03-09T20:55:03.525-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='factorial'/><category scheme='http://www.blogger.com/atom/ns#' term='divisibility'/><category scheme='http://www.blogger.com/atom/ns#' term='power of two'/><title type='text'>Factorial and power of 2</title><content type='html'>&lt;em&gt;Credit for this problem goes to Peter Macko&lt;/em&gt;.&lt;br/&gt;&lt;br/&gt;If $n$ is a positive integer, prove that $(2^n)! $ is divisible by $2^{2^n-1}$ and that its quotient is an odd number.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-2107411677817255143?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/2107411677817255143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/01/factorial-and-power-of-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2107411677817255143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2107411677817255143'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/01/factorial-and-power-of-2.html' title='Factorial and power of 2'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-319186692326974353</id><published>2010-01-09T03:27:00.000-08:00</published><updated>2010-03-09T21:09:14.139-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='constraint'/><category scheme='http://www.blogger.com/atom/ns#' term='maximum'/><category scheme='http://www.blogger.com/atom/ns#' term='symmetric'/><category scheme='http://www.blogger.com/atom/ns#' term='Inequality'/><category scheme='http://www.blogger.com/atom/ns#' term='3 variable'/><title type='text'>Inequality</title><content type='html'>For positive numbers $a,b,c&amp;gt;0$ such that $a+b+c=3$, find the maximum value of&lt;br /&gt;&lt;br /&gt;$\frac{1}{2+a^2+b^2} + \frac{1}{2+a^2+c^2} + \frac{1}{2+b^2+c^2} $&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-319186692326974353?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/319186692326974353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2010/01/inequality.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/319186692326974353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/319186692326974353'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2010/01/inequality.html' title='Inequality'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-8134334040614087883</id><published>2009-12-21T04:27:00.000-08:00</published><updated>2010-03-09T20:55:03.513-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='calculus'/><category scheme='http://www.blogger.com/atom/ns#' term='roll'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='Random'/><category scheme='http://www.blogger.com/atom/ns#' term='expected value'/><category scheme='http://www.blogger.com/atom/ns#' term='average'/><title type='text'>Average Winning Roll</title><content type='html'>$n$ people are rolling a random real number between zero and one. The highest roll wins. What is the expected value of the winning roll?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-8134334040614087883?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/8134334040614087883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/12/average-winning-roll.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8134334040614087883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8134334040614087883'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/12/average-winning-roll.html' title='Average Winning Roll'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-3304362313337217382</id><published>2009-12-17T04:00:00.000-08:00</published><updated>2010-03-09T20:55:03.505-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='invariance'/><category scheme='http://www.blogger.com/atom/ns#' term='Solution'/><category scheme='http://www.blogger.com/atom/ns#' term='modulo'/><category scheme='http://www.blogger.com/atom/ns#' term='span'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='operation'/><category scheme='http://www.blogger.com/atom/ns#' term='change'/><title type='text'>Solution: Stones and Marbles</title><content type='html'>&lt;em&gt;Original problem: &lt;a href="http://dharmath.thehendrata.com/2009/12/16/stones-and-marbles/"&gt;here&lt;/a&gt;&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;&lt;em&gt;First, I apologize that the problem was not carefully worded. The problem statement should have been: find all initial conditions where it's always possible for Bob to empty all the three boxes.&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;There are 3 boxes, and 2010 stones and 2010 marbles are put arbitrarily inside those three boxes.&lt;br/&gt;&lt;br/&gt;At each step, Bob is allowed to either:&lt;br/&gt;&lt;br/&gt;1. take a stone from one box, a marble from another box, and put them on the third box&lt;br/&gt;&lt;br/&gt;2. add or subtract all boxes by the same number of stones&lt;br/&gt;&lt;br/&gt;3. add or subtract all boxes by the same number of marbles&lt;br/&gt;&lt;br/&gt;Prove or disprove, that by repeating these steps, Bob can empty all three boxes.&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;Solution&lt;/h4&gt;&lt;br/&gt;Answer: If the total number of objects (stones + marbles) in each box is congruent to each other modulo 3.&lt;br/&gt;&lt;br/&gt;Proof:&lt;br/&gt;&lt;br/&gt;We can generalize the problem by replacing 2010 with $n$, and it is easy to see that if $n$ is not divisible by 3, then Bob will never be able to empty the boxes, since each operation does not change the total number of objects modulo 3.&lt;br/&gt;&lt;br/&gt;Furthermore, even if $n$ is divisible by 3, and we have 2 boxes where they are not congruent to each other modulo 3, Bob will also not be able to empty the boxes. Clearly steps 2 and three does not change relative congruency mod 3, and the first step can be thought as reducing 1 object from each box and adding 3 objects to one box, which again does not change relative congruency mod 3.&lt;br/&gt;&lt;br/&gt;Now, suppose the number of total objects in each box is congruent to each other mod 3, we will show that one can always achieve three empty boxes.&lt;br/&gt;&lt;br/&gt;Label the boxes as 1,2, and 3. We will denote  $A(x,y)$ as the operation of taking a marble from box $x$, a stone from box $y$, and putting them in the third box. We denote the configuration of the boxes at any time by a six-tuple $(m_1, s_1, m_2, s_2, m_3, s_3)$ where $m_i, s_i$ represent the number of marbles and stones in box $i$ respectively. For the time being, we shall also allow negative numbers in the boxes, because due to steps 2 and 3, we can always raise all numbers by the same amount temporarily.&lt;br/&gt;&lt;br/&gt;We also denote the &lt;strong&gt;change&lt;/strong&gt; caused by an operation as a six-tuple similar to the one above, but with a square bracket. For example, $A(1,2) = [-1,0,0,-1,1,1]$ means that the operation $A(1,2)$ reduces the number of marble in box 1 by 1, number of stones in box 2 by 1, and increases the number of marbles and stones in box 3 by 1, and leaves everything else unchanged. This is true by definition.&lt;br/&gt;&lt;br/&gt;Now, note that:&lt;br/&gt;&lt;br/&gt;$A(1,2) = [-1,0,0-1,1,1]$&lt;br/&gt;&lt;br/&gt;$A(2,3) = [1,1,-1,0,0,-1]$&lt;br/&gt;&lt;br/&gt;$A(1,3) = [-1,0,1,1,0,-1]$&lt;br/&gt;&lt;br/&gt;So $A(1,2)+A(2,3)+A(1,3) = [-1,1,0,0,1,-1]$ which means that the composition of the above 3 operations has the effect equivalent of switching a marble in box 1 with a stone in box 3. So now we can define a new operation $B(x,y)$ as switching the marble in box $x$ with a stone in box $y$, using the algorithm described above.&lt;br/&gt;&lt;br/&gt;Starting with an initial configuration of arbitrary placement, our first goal is to obtain a configuration in the form of $(a,a,b,b,c,c)$. We can first apply $B(1,2)$ or $B(2,1)$ repeatedly until number of stones and marbles in box 1 are equal or differ by 1. Then we can apply $B(2,3)$ or $B(3,2)$ repeatedly until the number of stones and marbles in box 2 are equal or differ by 1. Because the total number of stones and marbles are equal, this must mean that the number of stones and marbles in box 3 differ by at most 2. We now have 2 cases:&lt;br/&gt;&lt;br/&gt;1. We have a configuration in the form of $(a, a+1, b+1, b, c, c)$ or its permutation. Then we apply $A(2,1) = [0,-1,-1,0,1,1]$ to arrive at $(a,a,b,b,c+1,c+1)$ which has the required form.&lt;br/&gt;&lt;br/&gt;2. We have a configuration in the form of $(a, a+1, b, b+1, c+2, c)$ or its permutation. We apply $B(3,2) = [0,0,1,-1,-1,1]$ to arrive at $(a,a+1, b+1,b, c+1,c+1)$ which reduces us to case 1.&lt;br/&gt;&lt;br/&gt;So now we have a configuration in the form of $(a,a,b,b,c,c)$ where $a \equiv b \equiv c \mod 3$ (by the invariance principle outlined in the beginning).&lt;br/&gt;&lt;br/&gt;Now note that:&lt;br/&gt;&lt;br/&gt;$A(1,2) = [-1,0,0-1,1,1]$&lt;br/&gt;&lt;br/&gt;$A(2,1) = [0,-1,-1,0,1,1]$&lt;br/&gt;&lt;br/&gt;$A(1,3) = [-1,0,1,1,0,-1]$&lt;br/&gt;&lt;br/&gt;$A(3,1) = [0,-1,1,1,-1,0]$&lt;br/&gt;&lt;br/&gt;So $A(1,2)+A(2,1) + A(1,3)+A(3,1) = [-2,-2,1,1,1,1]$, which is equivalent to taking 2 marbles and 2 stones from box 1, and putting 1 of each in box 2 and 3. Let us define $C(x)$ as the operation of taking 2 marbles and 2 stones from box $x$ and putting 1 of each in the two other boxes.&lt;br/&gt;&lt;br/&gt;If we let $d = \max (a,b,c) - \min (a,b,c)$. If $d = 0$, then we are done, because that means all three boxes have equal content, and we can repeatedly apply steps 2 and 3 to empty the boxes. But if $d &amp;gt; 0$ we claim that judicious use of operation $C(x)$ will always reduce $d$. Indeed, without loss of generality, we may assume $a \leq b \leq c$. We have 2 cases:&lt;br/&gt;&lt;br/&gt;1. If $a \leq b &amp;lt; c$, we apply $C(3)$, then $(a,a,b,b,c,c)$ becomes $(a+1,a+1,b+1,b+1, c-2,c-2)$. But since $c \equiv b \mod 3$, then $c-b \geq 3 \iff c-2 \geq b+1 \geq a+1$ which means now $d' = (c-2)-(a+1) = (c-a)-3 = d-3$.&lt;br/&gt;&lt;br/&gt;2. If $a &amp;lt; b \leq c$, we apply $C(2) + C(3)$, then $(a,a,b,b,c,c)$ becomes $(a+2,a+2,b-1,b-1,c-1,c-1)$. But since $b \equiv a \mod 3$, then $b-a \geq 3 \iff a+2 \leq b-1 \leq c-1$ which means now $d' = (c-1)-(a+2) = (c-a)-3 = d-3$.&lt;br/&gt;&lt;br/&gt;Thus, we can always reduce $d$ by 3 at a time until we get the configuration where $d = 0$ when all three boxes have equal content. At that point, we can repeatedly apply steps 2 and 3 to empty them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-3304362313337217382?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/3304362313337217382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/12/solution-stones-and-marbles.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3304362313337217382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3304362313337217382'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/12/solution-stones-and-marbles.html' title='Solution: Stones and Marbles'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-8813896161027101412</id><published>2009-12-16T01:23:00.000-08:00</published><updated>2010-03-09T20:55:03.168-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='repetition'/><category scheme='http://www.blogger.com/atom/ns#' term='boxes'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='marbles'/><category scheme='http://www.blogger.com/atom/ns#' term='steps'/><category scheme='http://www.blogger.com/atom/ns#' term='stones'/><title type='text'>Stones and Marbles</title><content type='html'>There are 3 boxes, and 2010 stones and 2010 marbles are put arbitrarily inside those three boxes.&lt;br/&gt;&lt;br/&gt;At each step, Bob is allowed to either:&lt;br/&gt;&lt;br/&gt;1. take a stone from one box, a marble from another box, and put them on the third box&lt;br/&gt;&lt;br/&gt;2. add or subtract all boxes by the same number of stones&lt;br/&gt;&lt;br/&gt;3. add or subtract all boxes by the same number of marbles&lt;br/&gt;&lt;br/&gt;Prove or disprove, that by repeating these steps, Bob can empty all three boxes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-8813896161027101412?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/8813896161027101412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/12/stones-and-marbles.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8813896161027101412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8813896161027101412'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/12/stones-and-marbles.html' title='Stones and Marbles'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6803079253342371630.post-6184351464397907218</id><published>2009-12-15T04:27:00.000-08:00</published><updated>2010-03-09T20:55:03.161-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='calculus'/><title type='text'>Twist And Spin</title><content type='html'>A matrix $M$ is skew-symmetric if and only if $M^{tr} = -M$. Let $S$ be the set of all 4x4 skew-symmetric matrices.&lt;br/&gt;&lt;h2&gt;Twist&lt;/h2&gt;&lt;br/&gt;Suppose $F:\mathbb{R}^4 \to \mathbb{R}^4$ is a differentiable vector field in $\mathbb{R}^4$, we define the operation "twist" that maps each point in $\mathbb{R}^4$ to $S$ as follows:&lt;br/&gt;&lt;br/&gt;If $F(x,y,z,w) = A\vec i + B \vec j + C \vec k + D \vec l$ then&lt;br/&gt;&lt;br/&gt;$(\bold{twist} F)(x,y,z,w) = \left( \begin{array}{cccc}&lt;br/&gt;0 &amp;amp; B_x - A_y &amp;amp; C_x - A_z &amp;amp; D_x - A_w \\&lt;br/&gt;A_y-B_x &amp;amp; 0 &amp;amp; C_y - B_z &amp;amp; D_y - B_w \\&lt;br/&gt;A_z-C_x &amp;amp; B_z - C_y &amp;amp; 0 &amp;amp; D_z - C_w \\&lt;br/&gt;A_w - D_x &amp;amp; B_w - D_y &amp;amp; C_w - D_z &amp;amp; 0 \end{array} \right) $&lt;br/&gt;&lt;br/&gt;Where $B_x$ denotes $\partial B / \partial x$ and so on. One way that makes it easier to memorize the formula is to associate the first column and row with $x$, second column and row with $y$, third with $z$, and last with $w$.&lt;br/&gt;&lt;h2&gt;Spin&lt;/h2&gt;&lt;br/&gt;If $G : \mathbb{R}^4 \to S$ is a differentiable function that takes a point in $\mathbb{R}^4$ to a skew-symmetric matrix, we define the operation "spin" that produces a vector field in $\mathbb{R}^4$ as follows:&lt;br/&gt;&lt;br/&gt;If $G(x,y,z,w) = \{ \sum_{i,j} G_{ij}(x,y,z,w) \}$ (where $G_{ij}$ is the entry at the $i$-th row and $j$-th column, and since $G$ is skew-symmetric, then $G_{i,i} = 0$ and $G_{ji} = -G_{ij}$)&lt;br/&gt;&lt;br/&gt;Then&lt;br/&gt;&lt;br/&gt;$(\bold{spin} G)(x,y,z,w) = (G_{23_w} + G_{34_y} + G_{42_z}) \vec i $&lt;br/&gt;&lt;br/&gt;$+(G_{13_w} + G_{34_x} + G_{41_z}) \vec j$&lt;br/&gt;&lt;br/&gt;$+(G_{12_w} + G_{24_x} + G_{41_y}) \vec k$&lt;br/&gt;&lt;br/&gt;$+(G_{12_z} + G_{23_x} + G_{31_y}) \vec l$&lt;br/&gt;&lt;br/&gt;where again $G_{ij_x}$ denotes $\partial G_{ij} / \partial x$ and so on.&lt;br/&gt;&lt;h2&gt;Problems:&lt;/h2&gt;&lt;br/&gt;Prove the following:&lt;br/&gt;&lt;br/&gt;1. $(\bold{spin}(\bold{twist} F)) = \vec 0$&lt;br/&gt;&lt;br/&gt;2. $\bigtriangledown \cdot ( \bold{spin} G) = 0$&lt;br/&gt;&lt;br/&gt;3. If $F$ is a conservative vector field, then $\bold{twist} F = \vec 0$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-6184351464397907218?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/6184351464397907218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/12/twist-and-spin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6184351464397907218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6184351464397907218'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/12/twist-and-spin.html' title='Twist And Spin'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-8050157290690982840</id><published>2009-12-08T09:49:00.000-08:00</published><updated>2010-03-09T20:55:03.154-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='3D'/><category scheme='http://www.blogger.com/atom/ns#' term='tetrahedron'/><category scheme='http://www.blogger.com/atom/ns#' term='solid geometry'/><category scheme='http://www.blogger.com/atom/ns#' term='Geometry'/><category scheme='http://www.blogger.com/atom/ns#' term='optically congruent'/><title type='text'>Dissecting a tetrahedron</title><content type='html'>Let $T_r$ denote a regular tetrahedron whose side length is $r$.&lt;br/&gt;&lt;br/&gt;1. Prove that it is impossible to assemble eight $T_1$ into a $T_2$.&lt;br/&gt;&lt;br/&gt;2. Prove that a tetrahedron can be cut into four optically congruent pieces. Two solids $A$ and $B$ are considered optically congruent if either $A$ or its mirror image can be rotated into $B$.&lt;br/&gt;&lt;br/&gt;3. Prove that a $T_2$ can be cut into four $T_1$ and a regular octahedron whose side length is 1.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-8050157290690982840?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/8050157290690982840/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/12/dissecting-tetrahedron.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8050157290690982840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8050157290690982840'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/12/dissecting-tetrahedron.html' title='Dissecting a tetrahedron'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-6511737522870315575</id><published>2009-12-02T03:59:00.000-08:00</published><updated>2010-03-09T20:55:03.082-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='muirhead'/><category scheme='http://www.blogger.com/atom/ns#' term='Solution'/><category scheme='http://www.blogger.com/atom/ns#' term='Inequality'/><title type='text'>Solution: Inequality</title><content type='html'>Original problem: &lt;a href="http://dharmath.thehendrata.com/2009/12/02/inequality/"&gt;http://dharmath.thehendrata.com/2009/12/02/inequality/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;For positive real number $a,b,c$ prove that&lt;br/&gt;&lt;br/&gt;$2\sqrt{ab+bc+ca} \leq \sqrt{3} \sqrt[3]{(a+b)(b+c)(c+a)}$&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;First Solution&lt;/h4&gt;&lt;br/&gt;&lt;em&gt;Credit for this solution goes to Sander Parawira&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;$!9 (a+b)(a+c)(b+c) \geq 8 (a+b+c)(ab+ac+bc) \geq 8 \sqrt{3} (ab+ac+bc)^{3/2}$&lt;br/&gt;&lt;br/&gt;The first inequality is well-known, and the second one is equivalent to $a^2+b^2+c^2 \geq ab+bc+ca$&lt;br/&gt;&lt;br/&gt;$! 3 \sqrt{3} (a+b)(a+c)(b+c) \geq 8 (ab+ac+bc)^{3/2}$&lt;br/&gt;$! \sqrt{3} \sqrt[3]{ (a+b)(a+c)(b+c) } \geq 2 \sqrt{ab+ac+bc}$&lt;br/&gt;&lt;h4&gt;Second Solution&lt;/h4&gt;&lt;br/&gt;Since it's homogeneous, we may assume that $ab+bc+ca=1$. We wish to minimize $(a+b)(b+c)(c+a)$.&lt;br/&gt;&lt;br/&gt;If we let $a = \cot A, b = \cot B, c = \cot C$, then the normalization condition implies that $A,B,C$ are angles of a triangle.&lt;br/&gt;&lt;br/&gt;$(a+b)(a+c) = a^2+ab+bc+ca = a^2+1 = \csc^2 A$&lt;br/&gt;&lt;br/&gt;So $(a+b)(b+c)(c+a) = \csc A \csc B \csc C = 2R^2/S$ where $S$ is the area of the triangle and $R$ is the circum-radius.&lt;br/&gt;&lt;br/&gt;Now the problem can be rewritten as: given a circle with radius 1, find 3 points $ABC$ on the circle such that the triangle $ABC$ has maximal area.&lt;br/&gt;&lt;br/&gt;We claim that the maximal area occurs when $ABC$ is an equilateral triangle. Suppose $AB \neq BC$, then let $B'$ the midpoint of the arc $AC$ that passes through $B$. Compare the area of $ABC$ and $AB'C$. These triangles have the same base $AC$, but different heights. Since $B'$ is the midpoint of the arc, then the distance from $B'$ to $AC$ is greater than that of $B$ to $AC$. Thus $S_{ABC} &amp;lt; S_{AB'C}$.&lt;br/&gt;&lt;br/&gt;This means that whenever the triangle has two unequal sides, we can always find another triangle with greater area. The process stops when all three sides are equal, and that's when $ABC$ is an equilateral triangle.&lt;br/&gt;&lt;br/&gt;Variation: minimizing $\csc A \csc B \csc C$ can also be done with Jensen, using the function $f(x) = \log \csc x$&lt;br/&gt;&lt;br/&gt;This is because $f'(x) = -\cot(x)$ and $f''(x) = \csc^2 x$ thus $f$ is convex.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-6511737522870315575?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/6511737522870315575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/12/solution-inequality.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6511737522870315575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6511737522870315575'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/12/solution-inequality.html' title='Solution: Inequality'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-5260021490946125829</id><published>2009-12-02T02:21:00.000-08:00</published><updated>2010-03-09T20:55:02.940-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='symmetric'/><category scheme='http://www.blogger.com/atom/ns#' term='homogeneous'/><category scheme='http://www.blogger.com/atom/ns#' term='Inequality'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><title type='text'>Inequality</title><content type='html'>For positive real number $a,b,c$ prove that&lt;br/&gt;&lt;br/&gt;$2\sqrt{ab+bc+ca} \leq \sqrt{3} \sqrt[3]{(a+b)(b+c)(c+a)}$&lt;br/&gt;&lt;br/&gt;solution: &lt;a href="http://dharmath.thehendrata.com/2009/12/02/solution-inequality/"&gt;http://dharmath.thehendrata.com/2009/12/02/solution-inequality/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-5260021490946125829?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/5260021490946125829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/12/inequality.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5260021490946125829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5260021490946125829'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/12/inequality.html' title='Inequality'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-9204288099943730376</id><published>2009-11-30T06:50:00.000-08:00</published><updated>2010-03-09T20:55:02.851-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='muirhead'/><category scheme='http://www.blogger.com/atom/ns#' term='Solution'/><category scheme='http://www.blogger.com/atom/ns#' term='symmetric'/><category scheme='http://www.blogger.com/atom/ns#' term='Inequality'/><category scheme='http://www.blogger.com/atom/ns#' term='schur'/><title type='text'>Solution: 3 Variable Inequality</title><content type='html'>Original problem: &lt;a href="http://dharmath.thehendrata.com/2009/11/24/3-variable-inequality/"&gt;http://dharmath.thehendrata.com/2009/11/24/3-variable-inequality/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;For $a,b,c &amp;gt; 0$, prove that:&lt;br/&gt;&lt;br/&gt;$! (ab(a+b) + bc(b+c) + ca(c+a))^2 \geq 4abc(a+b+c)(a^2+b^2+c^2)$&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;First Solution&lt;/h4&gt;&lt;br/&gt;WLOG, we assume $a \geq b \geq c$.&lt;br/&gt;&lt;br/&gt;From AM-GM: $RHS \leq (ac(a+b+c) + b(a^2+b^2+c^2))^2$&lt;br/&gt;&lt;br/&gt;But $ac(a+b+c) + b(a^2+b^2+c^2) \leq ab(a+b) + bc(b+c) + ca(c+a) \iff b(b-a)(b-c) \geq 0$&lt;br/&gt;&lt;h4&gt;Second Solution&lt;/h4&gt;&lt;br/&gt;We will use the usual notation $S(k,l,m)$ to denote the symmetric sum: $S(k,l,m) = \sum a^kb^lc^m$ where the sum is over all permutations of $a,b,c$.&lt;br/&gt;&lt;br/&gt;$ab(a+b)+bc(b+c)+ca(c+a) = \sum a^2b = S(2,1,0)$.&lt;br/&gt;&lt;br/&gt;$4(a+b+c)(a^2+b^2+c^2) = S(1,0,0).S(2,0,0) = 2S(3,0,0) + 4S(2,1,0)$&lt;br/&gt;&lt;br/&gt;So $RHS = abc(2S(3,0,0) + 4S(2,1,0)) = 2S(4,1,1) + 4S(3,2,1)$&lt;br/&gt;&lt;br/&gt;And $LHS = S(2,1,0).S(2,1,0) = S(4,2,0) + S(3,3,0) + S(4,1,1)+ 2S(3,2,1) + S(2,2,2)$&lt;br/&gt;&lt;br/&gt;So we need to prove:&lt;br/&gt;&lt;br/&gt;$! S(4,2,0) + S(3,3,0) + S(2,2,2) \geq S(4,1,1) + 2S(3,2,1)$&lt;br/&gt;&lt;br/&gt;By Muirhead, $S(4,2,0) \geq S(4,1,1)$, so we only need to prove&lt;br/&gt;&lt;br/&gt;$! S(3,3,0) + S(2,2,2) \geq 2S(3,2,1)$&lt;br/&gt;&lt;br/&gt;$! \iff S(3,3,3) (S(0,0,-3) + S(-1,-1,-1)) \geq 2S(3,3,3) S(0,-1,-2)$&lt;br/&gt;&lt;br/&gt;$! \iff S(0,0,-3) + S(-1,-1,-1) \geq 2S(0,-1,-2)$&lt;br/&gt;&lt;br/&gt;which is true by Schur&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-9204288099943730376?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/9204288099943730376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/11/solution-3-variable-inequality.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/9204288099943730376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/9204288099943730376'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/11/solution-3-variable-inequality.html' title='Solution: 3 Variable Inequality'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-4609411544919744688</id><published>2009-11-30T06:02:00.000-08:00</published><updated>2010-03-09T20:55:02.748-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solution'/><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><category scheme='http://www.blogger.com/atom/ns#' term='Inequality'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><title type='text'>Solution: Integer Inequality</title><content type='html'>Original problem: &lt;a href="http://dharmath.thehendrata.com/2009/11/27/integer-inequality/"&gt;http://dharmath.thehendrata.com/2009/11/27/integer-inequality/&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;For any positive real number $t$, prove that there are integers $a,b,c,d$ such that&lt;br/&gt;&lt;br/&gt;$! a^3b+b^3c+c^3d &amp;lt; tabcd$&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;Solution&lt;/h4&gt;&lt;br/&gt;Putting $a=b=c=d=1$, we find that the answer is trivial if $t &amp;gt; 3$. Now suppose $t \leq 3$.&lt;br/&gt;&lt;br/&gt;Let $x=a/d, y=b/d, z=c/d$ be positive rational numbers, so our inequality becomes:&lt;br/&gt;&lt;br/&gt;$! x^3y + y^3z +z^3 &amp;lt; txyz$&lt;br/&gt;&lt;br/&gt;Let $f(x,y,z) = \frac{x^3y + y^3z +z^3}{xyz}$. Now, AM-GM asserts that $x^3y + y^3z + z^3 \geq 3xyz\sqrt[3]{yz}$, with equality happens if and only if $x^3y = y^3z =z^3$. In other words, when the equality conditions are satisfied, then $f(x,y,z) = 3\sqrt[3]{yz}$.&lt;br/&gt;&lt;br/&gt;Equality conditions require that $z = y^{3/2}$ and $x = (y^2z)^{1/3} = y^{7/6}$. So, $f(y^{7/6}, y, y^{3/2}) = 3y^{5/6}$&lt;br/&gt;&lt;br/&gt;If we want to find $y$ such that $3y^{5/6} &amp;lt; t$ then $y &amp;lt; (t/3)^{6/5}$. Which means we want to find $y$ such that $1/y &amp;gt; (3/t)^{6/5}$.&lt;br/&gt;&lt;br/&gt;Now, let $N$ be an integer large enough such that $N^6 &amp;gt; (3/t)^{6/5}$. We can set $(x,y,z) = (1/N^7,1/N^6,1/N^9)$ which can be achieved by setting $(a,b,c,d) = (N^2, N^3, 1, N^9)$.&lt;br/&gt;&lt;br/&gt;One can check that the assignment of $a,b,c,d$ does satisfy the condition of the problem:&lt;br/&gt;&lt;br/&gt;$LHS = N^9 + N^9 + N^9 = 3N^9$&lt;br/&gt;&lt;br/&gt;$RHS = t N^{14}$&lt;br/&gt;&lt;br/&gt;$LHS &amp;lt; RHS \iff 3 &amp;lt; tN^5 \iff N^6 &amp;gt; (3/t)^{6/5}$, which is true by the way we chose $N$.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-4609411544919744688?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/4609411544919744688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/11/solution-integer-inequality.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4609411544919744688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4609411544919744688'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/11/solution-integer-inequality.html' title='Solution: Integer Inequality'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-8386037568824789694</id><published>2009-11-30T05:56:00.000-08:00</published><updated>2010-03-09T20:55:02.742-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Random'/><title type='text'>System Change</title><content type='html'>Starting with today, I am going to change the system at which problems and solutions are posted, to avoid spoiling solutions for people who do not want to be spoiled.&lt;br/&gt;&lt;br/&gt;For each problem post, there will be a corresponding solution post, with category Solution. The two posts will refer to each other.&lt;br/&gt;&lt;br/&gt;The problem post will simply post the problem and a link to the solution post.&lt;br/&gt;&lt;br/&gt;The solution post will repeat the problem, and then post the solution behind a "More" link.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-8386037568824789694?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/8386037568824789694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/11/system-change.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8386037568824789694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8386037568824789694'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/11/system-change.html' title='System Change'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-8508503369648914617</id><published>2009-11-26T17:58:00.000-08:00</published><updated>2010-03-09T20:55:02.681-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Number Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='infimum'/><category scheme='http://www.blogger.com/atom/ns#' term='arbitrarily'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><category scheme='http://www.blogger.com/atom/ns#' term='Inequality'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><category scheme='http://www.blogger.com/atom/ns#' term='integer inequality'/><title type='text'>Integer Inequality</title><content type='html'>For any positive real number $t$, prove that there are integers $a,b,c,d$ such that&lt;br/&gt;&lt;br/&gt;$! a^3b+b^3c+c^3d &amp;lt; tabcd$&lt;br/&gt;&lt;br/&gt;Solution: &lt;a href="http://dharmath.thehendrata.com/2009/11/30/solution-integer-inequality/"&gt;http://dharmath.thehendrata.com/2009/11/30/solution-integer-inequality/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-8508503369648914617?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/8508503369648914617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/11/integer-inequality.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8508503369648914617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8508503369648914617'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/11/integer-inequality.html' title='Integer Inequality'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-4605554263425974126</id><published>2009-11-25T16:42:00.000-08:00</published><updated>2010-03-09T20:55:02.674-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='polynomial'/><category scheme='http://www.blogger.com/atom/ns#' term='homogeneous'/><category scheme='http://www.blogger.com/atom/ns#' term='algorithm'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><category scheme='http://www.blogger.com/atom/ns#' term='Inequality'/><category scheme='http://www.blogger.com/atom/ns#' term='normalization'/><title type='text'>Polynomial Algorithm</title><content type='html'>&lt;em&gt;Credit for this problem goes to Zeke Chin&lt;/em&gt;&lt;br/&gt;&lt;div&gt;Does there exist an algorithm for the decision problem:&lt;/div&gt;&lt;br/&gt;&lt;div&gt;Given a polynomial over $n$ variables $x_1,\cdots,x_n$ with positive integer coefficients, and a positive integer $c$, is it true that $cx_1\cdots x_n \leq P(x_1,\cdots,x_n)$ for all assignments of positive integers to $x_1,\cdots,x_n$?&lt;/div&gt;&lt;br/&gt;&lt;div&gt;For example, for $P = x_1^2 + x_2^2$ and $c=2$, the algorithm should return "Yes" since $2x_1x_2 \leq x_1^2 + x_2^2$&lt;/div&gt;&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;Solution&lt;/h4&gt;&lt;br/&gt;We can rewrite the problem as follows: if $P$ is a positive integer polynomial defined over positive integers, what is the minimum value of $Q = P/x_1\cdots x_n$? Or, if the minimum value does not exist, what is the infimum of all the achievable values?&lt;br/&gt;&lt;h5&gt;Homogeneous polynomials&lt;/h5&gt;&lt;br/&gt;We first restrict our attention to homogeneous polynomials of degree $k$ (each term in $P$ has a total degree of $k$). If $k &amp;lt; n$ then the infimum is zero, because when we scale up all the $x_i$ by a factor, $P$ decreases accordingly. For example, if $P = ab+b^2+ac$, then $Q = (ab+b^2+ac)/abc$. It is easy to make $Q$ arbitrarily small by multiplying $a,b,c$ by a large factor.&lt;br/&gt;&lt;h5&gt;Homogeneous polynomials of degree $n$&lt;/h5&gt;&lt;br/&gt;If $k=n$, that means $Q$ is homogeneous of degree zero. Thus, if we scale all the $x_i$ by the same factor, $Q$ remains constant. Now, we can assume $P$ is defined over rational numbers for simplicity.&lt;br/&gt;&lt;br/&gt;For each coefficient of $P$, we write them as sums of ones. For example, if $P = a^2b^2 + 2bc^3 + 2cd^3$, then we write it as $P = a^2b^2 + bc^3 +bc^3+ cd^3 + cd^3$ such that we can now assume that all terms in $P$ have coefficients 1, even if the terms may repeat themselves.&lt;br/&gt;&lt;br/&gt;Then $Q = \frac{ab}{cd} + \frac{c^2}{ad} + \frac{c^2}{ad} + \frac{d^2}{ab} + \frac{d^2}{ab}$&lt;br/&gt;&lt;br/&gt;We now define the &lt;em&gt;profile number&lt;/em&gt; of each variable as the total number of powers in the polynomial $Q$. For example, $p_a$, the profile number of $a$ is $1-1-1-1-1 = -3$, and $p_b = -1, p_c =3,p_d=1$. Thus we write the profile numbers of $P$ as $(-3,-1,3,1)$.&lt;br/&gt;&lt;br/&gt;Let $s = P(1,\cdots,1)$ be the number of terms in $P$. In the example above, $s=5$.&lt;br/&gt;&lt;br/&gt;The sum of of all profile numbers $\sum p_{x_i} = 0$, because each term has a total degree of zero. This means that the average number of profile number is zero. If all profile numbers are exactly zero, then the minimum value of $Q$ is $s$. For example, if $Q = (a^2b + abc+bc^2)/abc$, then by AM-GM, $Q \geq 3$. The minimum can be achieved when all $x_i$ is 1.&lt;br/&gt;&lt;h5&gt;Not all profile numbers are equal&lt;/h5&gt;&lt;br/&gt;If not all profile numbers are equal, then some profile numbers are positive and some others negative. Let $x_i,x_j$ be such that $p_{x_i} &amp;gt; 0, p_{x_j} &amp;lt; 0$. Write $x_i = k_1x_j$ and substitute it into $Q$. In the example (before) above, $p_c = 3, p_a=-3$. So we write $c = k_1a$, then&lt;br/&gt;&lt;br/&gt;$! \displaystyle Q = \frac{b}{k_1d} + \frac{k_1^2a}{d}+\frac{k_1^2a}{d}+\frac{d^2}{ab}+ \frac{d^2}{ab}$&lt;br/&gt;&lt;br/&gt;This operation has 3 effects:&lt;br/&gt;&lt;br/&gt;1. It eliminates $c$ from the polynomial. So now the profile of $c$ is guaranteed to be zero.&lt;br/&gt;&lt;br/&gt;2. It preserves homogeneity if we view $k_1$ as a dimensionless number. In the example above, each term is still homogeneous with degree zero. This means that the sum of profile numbers are still zero. In fact, now the profile numbers are $(0,-1,0,1)$. In general, replacing $x_i$ with $kx_j$ will cause the transformation $(p_{x_i}', p_{x_j}') = (0, p_{x_i} + p_{x_j})$&lt;br/&gt;&lt;br/&gt;3. The "profile number" of $k_1$ in the example above is guaranteed to be positive, by the way we choose $k_1$. We say profile number in quotes because we say that $k_1$ is a dimensionless number, and thus is not given a profile number per se.&lt;br/&gt;&lt;br/&gt;We keep doing this operation, choosing a variable with a positive profile number and one with negative profile number, and make a $k$-substitution like above. By the majorization-theorem, we are guaranteed to terminate with a condition that all profile numbers are zero. Furthermore, the "profile numbers" of all the $k_i$s are positive. We continue with the example above, substituting $d=k_2b$ to arrive with:&lt;br/&gt;&lt;br/&gt;$! \displaystyle Q = \frac{1}{k_1k_2} + \frac{k_1^2a}{k_2b}+\frac{k_1^2a}{k_2b}+\frac{k_2^2b}{a}+ \frac{k_2^2b}{a}$&lt;br/&gt;&lt;br/&gt;Now, according to the AM-GM theorem, if we set each term in the above equation to be equal, then $Q$ will be expressed in terms of $k_i$, all with positive powers. This means we can set $Q$ to be arbitrarily small by setting the variables accordingly. Thus, the infimum of all achievable values of $Q$ is zero.&lt;br/&gt;&lt;br/&gt;As an example, if we set $\frac{1}{k_1k_2} = \frac{k_1^2a}{k_2b} = \frac{k_2^2b}{a}$, along with $c=k_1a, d=k_2b$ we get $ b = k_1^3a, c = k_1a, d = k_1^{5/3}a$. Substituting this value back to original expression of $Q$, we obtain $Q = 5k_1^{1/3}$.&lt;br/&gt;&lt;br/&gt;If we want $Q$ to be really small, say $10^{-2}$, then we set $k_1 = 10^{-6}$ and $a=1$, which gives us $b=10^{-18}, c = 10^{-6}, d=10^{-10}$. For the sake of original problems that $a,b,c,d$ need to be positive integers, we multiply everything by $10^{18}$ to get$(a,b,c,d) = (10^{18}, 1, 10^{12}, 10^{8})$&lt;br/&gt;&lt;h5&gt;Missing cases&lt;/h5&gt;&lt;br/&gt;So far, the missing cases are:&lt;br/&gt;&lt;br/&gt;1. Non homogeneous polynomials&lt;br/&gt;&lt;br/&gt;2. Homogeneous polynomials of degree greater than $n$. The conjecture here is that we simply test the value of $Q$ for all combinations of $x_i = 1,2$. The output is either an achievable value when all $x_i = 1$, or an infimum of zero.&lt;br/&gt;&lt;h5&gt;Final Algorithm&lt;/h5&gt;&lt;br/&gt;The final algorithm is as follows. The final output values are italicized.&lt;br/&gt;&lt;br/&gt;1. Is the polynomial homogeneous?&lt;br/&gt;&lt;br/&gt;No: ??&lt;br/&gt;&lt;br/&gt;Yes: go to step 2&lt;br/&gt;&lt;br/&gt;2. What is the degree of homogeneity?&lt;br/&gt;&lt;br/&gt;Less than $n$: &lt;em&gt;infimum value is zero&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;Exactly $n$: go to step 3.&lt;br/&gt;&lt;br/&gt;Greater than $n$: ??&lt;br/&gt;&lt;br/&gt;3. Compute the profile numbers of each variable. Are they all zero?&lt;br/&gt;&lt;br/&gt;Yes: &lt;em&gt;the minimum values achieved when all variables are one&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;No: &lt;em&gt;infimum value is zero&lt;/em&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-4605554263425974126?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/4605554263425974126/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/11/polynomial-algorithm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4605554263425974126'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4605554263425974126'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/11/polynomial-algorithm.html' title='Polynomial Algorithm'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-7664436783917662665</id><published>2009-11-24T03:56:00.000-08:00</published><updated>2010-03-09T20:55:02.603-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='symmetric'/><category scheme='http://www.blogger.com/atom/ns#' term='homogeneous'/><category scheme='http://www.blogger.com/atom/ns#' term='abc'/><category scheme='http://www.blogger.com/atom/ns#' term='Inequality'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><title type='text'>3 Variable Inequality</title><content type='html'>For $a,b,c &amp;gt; 0$, prove that:&lt;br/&gt;&lt;br/&gt;$! (ab(a+b) + bc(b+c) + ca(c+a))^2 \geq 4abc(a+b+c)(a^2+b^2+c^2)$&lt;br/&gt;&lt;br/&gt;Solution: &lt;a href="http://dharmath.thehendrata.com/2009/11/30/solution-3-variable-inequality/"&gt;http://dharmath.thehendrata.com/2009/11/30/solution-3-variable-inequality/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-7664436783917662665?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/7664436783917662665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/11/3-variable-inequality.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/7664436783917662665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/7664436783917662665'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/11/3-variable-inequality.html' title='3 Variable Inequality'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-6961037942805073726</id><published>2009-11-23T11:16:00.000-08:00</published><updated>2010-03-09T20:55:02.598-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='power mean'/><category scheme='http://www.blogger.com/atom/ns#' term='sequence'/><category scheme='http://www.blogger.com/atom/ns#' term='Inequality'/><category scheme='http://www.blogger.com/atom/ns#' term='sum'/><title type='text'>Mean of Means</title><content type='html'>If $a_i,b_i$ are positive numbers for $i=1,\cdots,n$, and&lt;br/&gt;&lt;br/&gt;$! M_r (a,b) = \left( \frac{a^r+b^r}{2} \right)^\frac{1}{r}$&lt;br/&gt;&lt;br/&gt;Prove that for $0 &amp;lt; r &amp;lt; s$,&lt;br/&gt;&lt;br/&gt;$! \displaystyle \sum M_r(a_i,b_i) \sum M_{-r}(a_i,b_i) \leq \sum M_s(a_i,b_i) \sum M_{-s}(a_i,b_i) \leq \sum a_i \sum b_i$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-6961037942805073726?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/6961037942805073726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/11/mean-of-means.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6961037942805073726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6961037942805073726'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/11/mean-of-means.html' title='Mean of Means'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-5879581629329487401</id><published>2009-11-22T03:03:00.000-08:00</published><updated>2010-06-07T11:33:17.663-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='triangle'/><category scheme='http://www.blogger.com/atom/ns#' term='cauchy'/><category scheme='http://www.blogger.com/atom/ns#' term='Inequality'/><category scheme='http://www.blogger.com/atom/ns#' term='Geometry'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><title type='text'>Triangle Inequality</title><content type='html'>Given $n$ right triangles each with sides $a_i, b_i, c_i$, with $c_i$ being the hypotenuse ($i=1,\cdots, n)$. Let $A = \sum a_i, B = \sum b_i, C= \sum c_i$.&lt;br/&gt;&lt;br/&gt;Prove that&lt;br/&gt;&lt;br/&gt;$\displaystyle \frac{a_1b_1}{c_1} + \cdots + \frac{a_nb_n}{c_n} \leq \frac{AB}{\sqrt{A^2+B^2}}$&lt;br/&gt;&lt;br/&gt;Harder version: prove that&lt;br/&gt;&lt;br/&gt;$\displaystyle \frac{a_1b_1}{c_1} + \cdots + \frac{a_nb_n}{c_n} \leq \frac{AB}{C}$&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;Solution&lt;/h4&gt;&lt;br/&gt;For each $i$,&lt;br/&gt;&lt;br/&gt;$ (\frac{1}{a_i^2} + \frac{1}{b_i^2})(\frac{1}{A^2} + \frac{1}{B^2}) \geq (\frac{1}{a_iA} + \frac{1}{b_iB})^2$&lt;br/&gt;&lt;br/&gt;and&lt;br/&gt;&lt;br/&gt;$ (\frac{a_i}{A^3} + \frac{b_i}{B^3})(\frac{1}{a_iA} + \frac{1}{b_iB}) \geq (\frac{1}{A^2} + \frac{1}{B^2})^2$&lt;br/&gt;&lt;br/&gt;If we let $S = 1/A^2 + 1/B^2$, then two inequalities above can be combined to form:&lt;br/&gt;&lt;br/&gt;$ (\frac{a_i}{A^3} + \frac{b_i}{B^3})\sqrt{\frac{1}{a_i^2} + \frac{1}{b_i^2}} \geq S^{3/2}$&lt;br/&gt;&lt;br/&gt;$ (\frac{a_i}{A^3} + \frac{b_i}{B^3}) \geq S^{3/2} \frac{a_ib_i}{c_i}$&lt;br/&gt;&lt;br/&gt;So, when we sum the last inequality over all $i$, we have:&lt;br/&gt;&lt;br/&gt;$ (\frac{A}{A^3} + \frac{B}{B^3}) \geq S^{3/2} \sum \frac{a_ib_i}{c_i}$&lt;br/&gt;&lt;br/&gt;$ S^{-1/2} \geq \sum \frac{a_ib_i}{c_i}$&lt;br/&gt;&lt;br/&gt;So $LHS \leq \frac{1}{\sqrt{S}} =RHS$&lt;br/&gt;&lt;h5&gt;Remark&lt;/h5&gt;&lt;br/&gt;The harder version is stronger than the easier version due to Minkowski's inequality, which asserts that $C^2 \geq A^2+B^2$&lt;br/&gt;&lt;h5&gt;Solution for harder version&lt;/h5&gt;&lt;br/&gt;We wish to prove that&lt;br/&gt;&lt;br/&gt;$ \sum_i c_i \sum_j \frac{a_jb_j}{c_j} \leq \sum_i a_i \sum_j b_j$&lt;br/&gt;&lt;br/&gt;Consider the expansion for both sides. If $i=j$ then the product is $a_ib_i$, which is canceled in both LHS and RHS.&lt;br/&gt;&lt;br/&gt;If $i \neq j$, then we assert that:&lt;br/&gt;&lt;br/&gt;$ \frac{c_ia_jb_j}{c_j} +\frac{c_ja_ib_i}{c_i} \leq a_ib_j + a_jb_i$&lt;br/&gt;&lt;br/&gt;$ \iff c_i^2a_jb_j +c_j^2a_ib_i \leq (a_ib_j + a_jb_i)c_ic_j$&lt;br/&gt;&lt;br/&gt;$ \iff (a_i^2+b_i^2)a_jb_j +(a_j^2+b_j^2)a_ib_i \leq (a_ib_j + a_jb_i)c_ic_j$&lt;br/&gt;&lt;br/&gt;$ \iff (a_ib_j + a_jb_i)(a_ia_j + b_ib_j) \leq (a_ib_j + a_jb_i)c_ic_j$&lt;br/&gt;&lt;br/&gt;$ \iff a_ia_j + b_ib_j \leq c_ic_j$&lt;br/&gt;&lt;br/&gt;which is true by Cauchy, since $c_i = \sqrt{a_i^2+b_i^2}$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-5879581629329487401?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/5879581629329487401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/11/triangle-inequality.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5879581629329487401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/5879581629329487401'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/11/triangle-inequality.html' title='Triangle Inequality'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-3518280093918755062</id><published>2009-11-19T08:58:00.000-08:00</published><updated>2010-03-09T20:55:02.586-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='array'/><category scheme='http://www.blogger.com/atom/ns#' term='holder'/><category scheme='http://www.blogger.com/atom/ns#' term='cauchy'/><category scheme='http://www.blogger.com/atom/ns#' term='power mean'/><category scheme='http://www.blogger.com/atom/ns#' term='induction'/><category scheme='http://www.blogger.com/atom/ns#' term='backward induction'/><category scheme='http://www.blogger.com/atom/ns#' term='arithmetic'/><category scheme='http://www.blogger.com/atom/ns#' term='Inequality'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><category scheme='http://www.blogger.com/atom/ns#' term='minkowski'/><category scheme='http://www.blogger.com/atom/ns#' term='harmonic'/><category scheme='http://www.blogger.com/atom/ns#' term='mean'/><title type='text'>3 Sequence Inequality</title><content type='html'>If $a_i, b_i, c_i$ are sequences of positive numbers for $i = 1,2,\cdots,n$, prove the following inequality:&lt;br/&gt;&lt;br/&gt;$\sum (a_i+b_i+c_i) \sum \frac{a_ib_i + b_ic_i+ c_ia_i}{a_i+b_i+c_i} \sum \frac{a_ib_ic_i}{a_ib_i + b_ic_i+ c_ia_i} \leq \sum a_i \sum b_i \sum c_i$&lt;br/&gt;&lt;br/&gt;where all summations are taken from $i=1$ to $i=n$. When does equality happen?&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;Solution&lt;/h4&gt;&lt;br/&gt;First, we prove the following lemma:&lt;br/&gt;&lt;h5&gt;Lemma&lt;/h5&gt;&lt;br/&gt;$\sum \frac{x_iy_i}{x_i+y_i} \sum (x_i+y_i) \leq \sum x_i \sum y_i$&lt;br/&gt;&lt;br/&gt;Proof:&lt;br/&gt;&lt;br/&gt;Let $X = \sum x_i, Y = \sum y_i$. We first note that $(\frac{x_i}{X^2} + \frac{y_i}{Y^2})(\frac{1}{x_i} + \frac{1}{y_i}) \geq (\frac{1}{X} + \frac{1}{Y})^2$ for each $i$.&lt;br/&gt;&lt;br/&gt;Which means&lt;br/&gt;&lt;br/&gt;$\displaystyle \frac{x_i}{X^2} + \frac{y_i}{Y^2} \geq \frac{1}{1/x_i + 1/y_i}(1/X+1/Y)^2 = \frac{x_iy_i}{x_i+y_i}(1/X+1/Y)^2$&lt;br/&gt;&lt;br/&gt;Then, if we let $S = \frac{XY}{X+Y} \iff 1/S = 1/X+1/Y$, then&lt;br/&gt;&lt;br/&gt;$\displaystyle \frac{x_i}{X^2} + \frac{y_i}{Y^2} \geq \frac{x_iy_i}{(x_i+y_i)S^2}$&lt;br/&gt;&lt;br/&gt;The above inequality holds for all $i$, so we sum them from $i=1$ to $n$ to yield:&lt;br/&gt;&lt;br/&gt;$\displaystyle \frac{X}{X^2} + \frac{Y}{Y^2} \geq \sum \frac{x_iy_i}{(x_i+y_i)S^2}$&lt;br/&gt;&lt;br/&gt;But the LHS is just $1/X+1/Y = 1/S$, so the last inequality is equivalent to the lemma.&lt;br/&gt;&lt;h5&gt;Lemma Interpretation&lt;/h5&gt;&lt;br/&gt;One thing that I was amazed by is that the lemma has such a striking form. If we let $A(x_1,\cdots,x_k)$ be the arithmetic mean of $x_1,\cdots, x_k$, and $H(x_1,\cdots,x_k)$ be its harmonic mean, the lemma can be rewritten as:&lt;br/&gt;&lt;br/&gt;$ \displaystyle A(H(x_1,y_1), \cdots, H(x_n,y_n)) \leq H(A(x_1,\cdots,x_n), A(y_1, \cdots, y_n))$&lt;br/&gt;&lt;br/&gt;There is such a similarity between this equation and, for example, Cauchy. Because if we let $G$ to denote geometric mean, then Cauchy's inequality can be rewritten as:&lt;br/&gt;&lt;br/&gt;$ \displaystyle A(G(x_1,y_1), \cdots, G(x_n,y_n)) \leq G(A(x_1,\cdots,x_n), A(y_1, \cdots, y_n))$.&lt;br/&gt;&lt;br/&gt;Furthermore, if we let $M_p(x_1, \cdots, x_n)$ to be the $p$-th power mean, then $A = M_1, G = M_0, H = M_{-1}$.&lt;br/&gt;&lt;br/&gt;Minkowski Inequality is $M_p \circ M_1 \leq M_1 \circ M_p$ for $p &amp;gt; 1$.&lt;br/&gt;&lt;br/&gt;Holder (and in turn Cauchy) Inequality is $M_1 \circ M_0 \leq M_0 \circ M_1$.&lt;br/&gt;&lt;br/&gt;But our lemma is $M_1 \circ M_{-1} \leq M_{-1} \circ M_{1}$.&lt;br/&gt;&lt;br/&gt;In general, if $p &amp;lt; q$ are finite real numbers, then $M_p \circ M_q \geq M_q \circ M_p$ with equality happens when the numbers are all zeros or all proportional.&lt;br/&gt;&lt;h5&gt;First Inequality&lt;/h5&gt;&lt;br/&gt;First we shall prove the following inequality. If we let $A = \sum a_i, B = \sum b_i, C = \sum c_i$&lt;br/&gt;&lt;br/&gt;$\displaystyle (AB+BC+CA)\sum \frac{a_ib_ic_i}{a_ib_i + b_ic_i + c_ib_i} \leq ABC$&lt;br/&gt;&lt;br/&gt;which can be rewritten as:&lt;br/&gt;&lt;br/&gt;$\sum \frac{1}{1/a_i + 1/b_i + 1/c_i} \leq \frac{1}{1/A + 1/B + 1/C}$&lt;br/&gt;&lt;br/&gt;First let's define a sequence $p_i = \frac{b_ic_i}{b_i + c_i}$ which is equivalent to $1/p_i = 1/b_i + 1/c_i$. Let $P= \sum p_i$&lt;br/&gt;&lt;br/&gt;Then using our lemma, we have $P \leq \frac{BC}{B+C} = \frac{1}{1/B + 1/C}$.&lt;br/&gt;&lt;br/&gt;Again, using the lemma,&lt;br/&gt;&lt;br/&gt;$LHS = \sum \frac{1}{1/a_i + 1/p_i} \leq \frac{1}{1/A + 1/P} \leq \frac{1}{1/A+1/B+1/C}$ which proves the first inequality.&lt;br/&gt;&lt;h5&gt;Second Inequality&lt;/h5&gt;&lt;br/&gt;Now we shall prove the following inequality.&lt;br/&gt;&lt;br/&gt;$\displaystyle (A+B+C)\sum \frac{a_ib_i + b_ic_i + c_ib_i}{a_i+b_i+c_i} \leq AB+BC+CA$&lt;br/&gt;&lt;br/&gt;Now let $q_i = b_i + c_i$, so if we let $Q = \sum q_i = B+C$, by the lemma:&lt;br/&gt;&lt;br/&gt;$\sum \frac{a_ib_i + a_ic_i}{a_i+b_i+c_i} = \sum \frac{a_i q_i}{a_i + q_i} \leq \frac{AQ}{A+Q} = \frac{AB+AC}{A+B+C}$.&lt;br/&gt;&lt;br/&gt;Similarly,&lt;br/&gt;&lt;br/&gt;$\displaystyle \sum \frac{b_ic_i + a_ib_i}{a_i+b_i+c_i} \leq \frac{BC+AB}{A+B+C}$.&lt;br/&gt;&lt;br/&gt;$\displaystyle \sum \frac{a_ic_i + b_ic_i}{a_i+b_i+c_i} \leq \frac{AC+BC}{A+B+C}$.&lt;br/&gt;&lt;br/&gt;Adding three inequalities gives us the second inequality.&lt;br/&gt;&lt;br/&gt;When we multiple first and second inequalities, we get the desired result.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-3518280093918755062?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/3518280093918755062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/11/3-sequence-inequality.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3518280093918755062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3518280093918755062'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/11/3-sequence-inequality.html' title='3 Sequence Inequality'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-901855526550450026</id><published>2009-11-17T08:53:00.000-08:00</published><updated>2010-03-09T20:55:02.580-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='binary'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='string'/><category scheme='http://www.blogger.com/atom/ns#' term='match'/><title type='text'>Matching Binary String</title><content type='html'>We are given two binary strings $A$ and $B$ each of length $2n$. Both strings contain equal number of ones and zeros to each other. We write $A$ on top of $B$, so that each element of $A$ is paired with each element of $B$ at the corresponding position.&lt;br/&gt;&lt;br/&gt;We call the two strings a "match" if there are at least $n$ common elements where the element of $A$ at a certain position matches that of $B$ at that position.&lt;br/&gt;&lt;br/&gt;Prove that, we can cyclically shift $B$ a number of times (and wrap around at the end/beginning) so that $A$ and $B$ form a match.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-901855526550450026?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/901855526550450026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/11/matching-binary-string.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/901855526550450026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/901855526550450026'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/11/matching-binary-string.html' title='Matching Binary String'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-2339494670768675965</id><published>2009-11-16T06:52:00.000-08:00</published><updated>2010-03-09T20:55:02.514-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='taylor series'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><category scheme='http://www.blogger.com/atom/ns#' term='summation'/><category scheme='http://www.blogger.com/atom/ns#' term='generating function'/><category scheme='http://www.blogger.com/atom/ns#' term='differential equation'/><title type='text'>Simplifying Series</title><content type='html'>Let $a_n = \binom{2n}{n}$ and $b_n = \binom{3n}{n}$. Find a more compact expression for:&lt;br/&gt;&lt;br/&gt;$A(x) = a_0 + a_1x + a_2x^2 +\cdots + a_nx^n + \cdots$&lt;br/&gt;&lt;br/&gt;$B(x) = b_0 + b_1x + b_2x^2 +\cdots + b_nx^n + \cdots$&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;Solution&lt;/h4&gt;&lt;br/&gt;We start with $A(x) = 1 + 2x + 6x^2 + 20x^3 + \cdots + \binom{2n}{n}x^n + \cdots$&lt;br/&gt;&lt;br/&gt;Differentiate both sides,&lt;br/&gt;&lt;br/&gt;$A'(x) = 2 + 12x + 60x^2 + \cdots + \binom{2n}{n}nx^{n-1} + \binom{2n+2}{n+1}(n+1)x^n + \cdots$&lt;br/&gt;&lt;br/&gt;$\frac{A' - 2A}{4x} = 2 + 12x + 60x^2 + \cdots $&lt;br/&gt;&lt;br/&gt;The coefficient of $x^{n-1}$ in $\frac{A'-2A}{4x}$ is the coefficient of $x^n$ in $\frac{A'-2A}{4}$&lt;br/&gt;&lt;br/&gt;$= \frac{1}{4}(\binom{2n+2}{n+1}(n+1) - 2\binom{2n}{n})$&lt;br/&gt;&lt;br/&gt;$= \frac{1}{4}\binom{2n}{n}(\frac{(2n+2)(2n+1)}{n+1} - 2) = n\binom{2n}{n}$&lt;br/&gt;&lt;br/&gt;which is the coefficient of $x^{n-1}$ in $A'$.&lt;br/&gt;&lt;br/&gt;Thus, $\frac{A'(x)-2A(x)}{4x} = A'(x)$.&lt;br/&gt;&lt;br/&gt;$A'(x)(1-4x)= 2A(x) \iff \frac{dA}{dx} (1-4x) = 2A$&lt;br/&gt;&lt;br/&gt;$\frac{dA}{2A} = \frac{dx}{1-4x}$&lt;br/&gt;&lt;br/&gt;Integrate both sides, with the boundary condition that $A(0)=0$&lt;br/&gt;&lt;br/&gt;$\frac{\ln |A|}{2} = \frac{\ln (1-4x)}{-4} \iff A = (1-4x)^{-\frac{1}{2}}$&lt;br/&gt;&lt;br/&gt;So $A(x) = \frac{1}{\sqrt{1-4x}}$&lt;br/&gt;&lt;br/&gt;To find a compact expression for $B(x)$, we temporarily use $x^2$ as the generating variable.&lt;br/&gt;&lt;br/&gt;Let $P(x) = B(x^2) = b_0 + b_1x^2 + b_2x^4 + \cdots + b_nx^{2n} + \cdots$&lt;br/&gt;&lt;br/&gt;By inspection, we have&lt;br/&gt;&lt;br/&gt;$(4-27x^2)P'' - 81xP' -24P = 0$&lt;br/&gt;&lt;br/&gt;And its correctness can be verified by comparing the coefficient of $x^n$ directly. All that's left is to simply solve the differential equation.&lt;br/&gt;&lt;br/&gt;I wasn't able to solve the actual equation, but I did find that if we let $y = -27xP + (4-27x^2)P'$ then $y' = -3P$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-2339494670768675965?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/2339494670768675965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/11/simplifying-series.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2339494670768675965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2339494670768675965'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/11/simplifying-series.html' title='Simplifying Series'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-4755050066395966483</id><published>2009-11-14T18:46:00.000-08:00</published><updated>2010-03-09T20:55:02.508-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='enumeration'/><category scheme='http://www.blogger.com/atom/ns#' term='polynomial'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='strings'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><category scheme='http://www.blogger.com/atom/ns#' term='generating function'/><category scheme='http://www.blogger.com/atom/ns#' term='binomial'/><title type='text'>ABC String</title><content type='html'>How many strings of A's, B's, and C's are there that satisfy the following conditions:&lt;br/&gt;&lt;br/&gt;1. There are $n$ A's and $2n$ total of B's and C's.&lt;br/&gt;&lt;br/&gt;2. Every two adjacent letters are different.&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;Solution&lt;/h4&gt;&lt;br/&gt;In order to create such string, we could first arrange $n$ A's and $2n$ D's such that no two A's are adjacent. Then, we can color the D's with B's and C's to satisfy the problem constraint. Note that in order for the coloring to be valid, each contiguous segment of D can only be colored in two ways: BCBCBC.... or CBCBCB...&lt;br/&gt;&lt;br/&gt;So now the question is, how many such linings of A's and D's are possible? We first lay down the A's. We then have $n-1$ spots in between that must be filled by non-empty segments of D's, and two spots at both edges that contain possibly-empty segments of D's. Further more, the sum of the length of the segments must equal $2n$, and each segment may be colored in 2 ways.&lt;br/&gt;&lt;br/&gt;So, we claim that the number of ways is the coefficient of $x^{2n}$ in the expansion of:&lt;br/&gt;&lt;br/&gt;$(1+2x+2x^2+....)(2x+2x^2+2x^3+...)^{n-1}(1+2x+2x^2+...)$&lt;br/&gt;&lt;br/&gt;Each term of $x^{2n}$ in the above expansion comes from multiplication of $x^k$ terms in each factor whose sum of power is $2n$. The contribution of $x^k$ from a given factor corresponds to the length of segment corresponding to that factor. The first and last factor correspond to the outer segments which may be empty. The middle segments may not be empty, and that's why we require that they contribute at least one power of $x$. The coefficients are also set up so that each nonempty segments contribute 2 to the number of possible colorings while empty segments do not contribute.&lt;br/&gt;&lt;br/&gt;From here, it's just a matter of algebraic manipulation. Let $y=2x+2x^2+... = \frac{2x}{1-x}$&lt;br/&gt;&lt;br/&gt;Then $S = (1+y)^2y^{n-1} = y^{n-1} + 2y^n + y^{n+1}$&lt;br/&gt;&lt;br/&gt;Also note that, according to Binomial Theorem:&lt;br/&gt;&lt;br/&gt;$\frac{1}{(1-x)^k} = (1-x)^{-k} = 1 + kx +\frac{(k+1)k}{2!}x^2 + \frac{(k+2)(k+1)k}{3!}x^3 + ... = \sum_{i=0}^{\infty} \binom{k+i-1}{i} x^i$&lt;br/&gt;&lt;br/&gt;So, the coefficient of $x^{2n}$ in $y^{n-1} = 2^{n-1} x^{n-1} \frac{1}{(1-x)^{n-1}}$ is $2^{n-1}$ times the coefficient of $x^{n+1}$ in $\frac{1}{(1-x)^{n-1}}$&lt;br/&gt;&lt;br/&gt;that is $2^{n-1} \binom {2n-1}{n+1}$&lt;br/&gt;&lt;br/&gt;Similarly, the coefficient of $x^{2n}$ in $2y^n$ is $2^{n+1}\binom{2n-1}{n}$&lt;br/&gt;&lt;br/&gt;And the coefficient of $x^{2n}$ in $y^{n+1}$ is $2^{n+1}\binom{2n-1}{n-1}$&lt;br/&gt;&lt;br/&gt;So the total coefficient is $2^{n-1} \binom {2n-1}{n+1} + 2^{n+1}\binom{2n-1}{n} + 2^{n+1}\binom{2n-1}{n-1}$&lt;br/&gt;&lt;br/&gt;$= 2^{n-1} \frac{(2n-1)!}{n!(n-2)!} \left( \frac{1}{n+1} + \frac{4}{n-1}+ \frac{4}{n-1} \right)$&lt;br/&gt;&lt;br/&gt;$= \binom{2n+1}{n} \frac{2^{n-2}(9n+7)}{n(2n+1)}$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-4755050066395966483?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/4755050066395966483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/11/abc-string.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4755050066395966483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4755050066395966483'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/11/abc-string.html' title='ABC String'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-7786389628788709808</id><published>2009-11-14T17:37:00.000-08:00</published><updated>2010-03-09T20:55:02.500-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='repetition'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='coin toss'/><category scheme='http://www.blogger.com/atom/ns#' term='probability'/><title type='text'>Coin Toss</title><content type='html'>A boy tosses a fair coin repeatedly. Every time he gets a Head, he earns 1 penny, and every time he gets a Tail, he earns 2 pennies. He starts with no money. Prove that the probability of him at one time having exactly $n$ pennies is $\frac{2+(-\frac{1}{2})^n}{3}$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-7786389628788709808?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/7786389628788709808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/11/coin-toss.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/7786389628788709808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/7786389628788709808'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/11/coin-toss.html' title='Coin Toss'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-4893680990900572170</id><published>2009-11-12T05:50:00.000-08:00</published><updated>2010-03-09T20:55:02.495-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='parallelogram'/><category scheme='http://www.blogger.com/atom/ns#' term='flea'/><category scheme='http://www.blogger.com/atom/ns#' term='segment'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='piecewise'/><category scheme='http://www.blogger.com/atom/ns#' term='Geometry'/><category scheme='http://www.blogger.com/atom/ns#' term='jump'/><category scheme='http://www.blogger.com/atom/ns#' term='path'/><title type='text'>Path and Parallelogram</title><content type='html'>A path from $A$ to $B$ consists of several piecewise straight segments (where $b \neq A$). A flea starts from point $P$ and for each segment, it performs the following operation:&lt;br/&gt;&lt;br/&gt;If the segment starts at $X$ and ends at $Y$, and the flea is currently at $Z$, the flea will jump to the point $Z'$ such that $XZYZ'$ is a parallelogram (in that order).&lt;br/&gt;&lt;br/&gt;The flea starts from $P$ and performs the operation on the segments sequentially until it is done with the last segment, where the flea is now in $Q$. Prove that $APBQ$ is a parallelogram.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-4893680990900572170?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/4893680990900572170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/11/path-and-parallelogram.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4893680990900572170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/4893680990900572170'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/11/path-and-parallelogram.html' title='Path and Parallelogram'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-8145057820994323773</id><published>2009-11-08T03:59:00.000-08:00</published><updated>2010-03-09T20:55:02.489-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='calculus'/><category scheme='http://www.blogger.com/atom/ns#' term='indefinite'/><category scheme='http://www.blogger.com/atom/ns#' term='integral'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><title type='text'>Integral</title><content type='html'>Evaluate $ \int e^x \sec x \tan^2x dx$&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;Solution&lt;/h4&gt;&lt;br/&gt;Let $A = \int e^x \sec^3x dx$ and $B = \int e^x \sec x dx$, and since $\tan^2x = \sec^2x-1$, the desired integral is $A-B$.&lt;br/&gt;&lt;br/&gt;$A = \int e^x \sec^3x dx$&lt;br/&gt;&lt;br/&gt;Here we evaluate it using integration by parts, with&lt;br/&gt;&lt;br/&gt;$u = e^x \sec x, du = e^x \sec x (\tan x + 1) dx$&lt;br/&gt;&lt;br/&gt;$dv = \sec^2x dx, v = \tan x$&lt;br/&gt;&lt;br/&gt;So&lt;br/&gt;&lt;br/&gt;$A = uv - \int v du = e^x \sec x \tan x - \int e^x \sec x \tan^2 xdx - \int e^x \sec x \tan x dx$&lt;br/&gt;&lt;br/&gt;$= e^x \sec x \tan x - (A-B) - \int e^x \sec x \tan x dx$&lt;br/&gt;&lt;br/&gt;Save this equation. Now we evaluate $\int e^x \sec x \tan x dx$ using integration by parts again,&lt;br/&gt;&lt;br/&gt;$u = e^x, du = e^x dx$&lt;br/&gt;&lt;br/&gt;$dv = \sec x \tan x dx, v =\sec x$&lt;br/&gt;&lt;br/&gt;So $\int e^x \sec x \tan x dx = e^x \sec x - \int e^x \sec x dx = e^x \sec x - B$&lt;br/&gt;&lt;br/&gt;Plug this back into the saved equation:&lt;br/&gt;&lt;br/&gt;$A = e^x \sec x \tan x - (A-B) - \int e^x \sec x \tan x dx $&lt;br/&gt;&lt;br/&gt;$= e^x \sec x \tan x - (A-B) - (e^x \sec x - B)$&lt;br/&gt;&lt;br/&gt;So $2A-2B = e^x \sec x \tan x - e^x \sec x$&lt;br/&gt;&lt;br/&gt;Thus $A-B = (e^x \sec x \tan x - e^x \sec x) / 2$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-8145057820994323773?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/8145057820994323773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/11/integral.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8145057820994323773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/8145057820994323773'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/11/integral.html' title='Integral'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-3559125400556797603</id><published>2009-10-30T05:31:00.000-07:00</published><updated>2011-05-08T08:34:40.482-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='enumerative'/><category scheme='http://www.blogger.com/atom/ns#' term='interpretation'/><category scheme='http://www.blogger.com/atom/ns#' term='lattice'/><category scheme='http://www.blogger.com/atom/ns#' term='cube'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='colored'/><category scheme='http://www.blogger.com/atom/ns#' term='binomial theorem'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><category scheme='http://www.blogger.com/atom/ns#' term='balls'/><category scheme='http://www.blogger.com/atom/ns#' term='generating function'/><category scheme='http://www.blogger.com/atom/ns#' term='equilateral'/><title type='text'>Divide Colored Balls</title><content type='html'>There are $2n$ balls of each color: red, green, and blue. How many ways are there to divide them into two groups such that each group has $3n$ balls?&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;First Solution&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;It is the same as the coefficient of $3n$ in the expansion $(1+x+x^2+x^3+\cdots+x^{2n})^3$. The proof is left to the readers as an exercise.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note that $(1+x+\cdots+x^{2n})^3 = \frac{(1-x^{2n+1})^3}{(1-x)^3} = (1 - 3x^{2n+1} + 3x^{4n+2} - x^{6n+3})(1-x)^{-3}$&lt;br /&gt;&lt;br /&gt;But $(1-x)^{-3} = (1+3x + 6x^2 + 10x^3 + \cdots + \frac{(k+2)(k+1)}{2}x^k + cdots)$&lt;br /&gt;&lt;br /&gt;So the coefficient of $3n$ in that expansion is:&lt;br /&gt;&lt;br /&gt;$\frac{(3n+2)(3n+1)}{2} - 3\frac{n(n+1)}{2} = 3n^2 + 3n + 1$&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Second Solution&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;We shall prove that there are $3n^2+3n+1 = (n+1)^3 - n^3$ ways, which has striking geometrical interpretations.&lt;br /&gt;&lt;br /&gt;Create an equilateral triangle with altitude $3n$, and mark all the points that has integer distance to all the sides. These points will form a triangular lattice&lt;br /&gt;&lt;br /&gt;It is a well-known fact that for any point in an equilateral triangle, the sum of distances to the sides is constant. Since the altitude of the triangle is $3n$, then for any point in that triangular lattice, the sum of distance to the sides is $3n$. Furthermore, the distances are integers. Thus, these points represent the number of ways to choose $3n$ balls from 3 colors.&lt;br /&gt;&lt;br /&gt;However, the constraint that we only have $2n$ supply of each color is not yet enforced. We examine the points in the lattice whose distance to any of the sides is greater than $2n$, and we eliminate them. So we are left with a hexagonal lattice of side $n+1$. This is the projection of a half-shell of an $n+1$-cube that has $n$-cube carved out of it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-3559125400556797603?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/3559125400556797603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/10/divide-colored-balls.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3559125400556797603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/3559125400556797603'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/10/divide-colored-balls.html' title='Divide Colored Balls'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-6255716830719173398</id><published>2009-10-28T09:46:00.000-07:00</published><updated>2010-03-09T20:55:02.467-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='graph theory'/><category scheme='http://www.blogger.com/atom/ns#' term='acquaintance'/><category scheme='http://www.blogger.com/atom/ns#' term='student'/><category scheme='http://www.blogger.com/atom/ns#' term='extremal principle'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='school'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><title type='text'>Students in a School</title><content type='html'>There are 3 schools, each of which has $n$ students. Each student knows altogether $n+1$ students from the other two schools. Prove that we can choose 3 students, each from a different school, such that they know each other.&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;Solution&lt;/h4&gt;&lt;br/&gt;Assign each student a &lt;em&gt;score&lt;/em&gt; based on the higher number of students he/she knows from each school. For example, if a student knows 4 students from one school and 5 students from another school, his score is 5.&lt;br/&gt;&lt;br/&gt;Choose student $a$ with the highest score. Since the highest score is not necessarily unique (there may be multiple highest scores), choose any one of them.&lt;br/&gt;&lt;br/&gt;Suppose student $a$ belongs to school $A$, and let $k$ be his score. Suppose he knows $k$ students from school $B$ and $n+1-k$ students from school $C$, where $k \geq n+1-k$.&lt;br/&gt;&lt;br/&gt;Take any student $c$ from school $C$ who knows $a$. If $c$ knows any of the $k$ students from school $B$, then we are done, since $a,c,$ and this mutual acquaintance from school $B$ form a desired trio. Thus, we may assume that $c$ knows at most $n-k$ students from school $B$, that is, the ones that $a$ doesn't already know.&lt;br/&gt;&lt;br/&gt;But that means $c$ knows at least $(n+1) - (n-k) = k+1$ students from school $A$. Since $\max(k+1, n-k) \geq k+1 &amp;gt; k$, that means $c$ has a higher score than $a$, contradicting our choice of $a$.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-6255716830719173398?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/6255716830719173398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/10/students-in-school.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6255716830719173398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/6255716830719173398'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/10/students-in-school.html' title='Students in a School'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-1406368686616386542</id><published>2009-10-27T02:58:00.000-07:00</published><updated>2010-03-09T20:55:02.181-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='recursion'/><category scheme='http://www.blogger.com/atom/ns#' term='fibonacci'/><category scheme='http://www.blogger.com/atom/ns#' term='induction'/><category scheme='http://www.blogger.com/atom/ns#' term='boarding'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='uniform'/><category scheme='http://www.blogger.com/atom/ns#' term='probability'/><category scheme='http://www.blogger.com/atom/ns#' term='airplane'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><category scheme='http://www.blogger.com/atom/ns#' term='passenger'/><category scheme='http://www.blogger.com/atom/ns#' term='seat'/><title type='text'>Passengers Boarding Airplane, Part Deux</title><content type='html'>2009 passengers are waiting in a line to board an airplane with 2009 seats. The seats are numbered from 1 to 2009. Each passenger has a boarding pass that has his/her seat number on it. However, these passengers are oblivious to their boarding pass and choose their seats at random, each with a uniform probability from the available empty seats.&lt;br/&gt;&lt;br/&gt;What is the probability that everyone's actual seat number and their assigned seat number differ by at most 1? That is, no one sits more than 1 seat away from their assigned seat.&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;Solution&lt;/h4&gt;&lt;br/&gt;Zeke's solution in the comment is correct.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-1406368686616386542?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/1406368686616386542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/10/passengers-boarding-airplane-part-deux.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1406368686616386542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1406368686616386542'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/10/passengers-boarding-airplane-part-deux.html' title='Passengers Boarding Airplane, Part Deux'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-471960959008220042</id><published>2009-10-23T03:55:00.000-07:00</published><updated>2010-03-09T20:55:02.062-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='calculus'/><category scheme='http://www.blogger.com/atom/ns#' term='taylor series'/><category scheme='http://www.blogger.com/atom/ns#' term='recursion'/><category scheme='http://www.blogger.com/atom/ns#' term='polynomial'/><category scheme='http://www.blogger.com/atom/ns#' term='induction'/><category scheme='http://www.blogger.com/atom/ns#' term='catalan'/><category scheme='http://www.blogger.com/atom/ns#' term='convergent'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><category scheme='http://www.blogger.com/atom/ns#' term='2 variable recursion'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><category scheme='http://www.blogger.com/atom/ns#' term='generating function'/><category scheme='http://www.blogger.com/atom/ns#' term='binomial'/><title type='text'>2 Variable Recursion</title><content type='html'>&lt;em&gt;This problem is written as an auxiliary lemma for the solution to &lt;a href="http://http://dharmath.thehendrata.com/2009/10/16/show-and-change/"&gt;this problem&lt;/a&gt;.&lt;/em&gt;&lt;br/&gt;&lt;br/&gt;Suppose $f(m,n)$ is a function that is defined for non-negative integers $m,n$ where:&lt;br/&gt;&lt;br/&gt;$f(m,n) = 0$ if $m &amp;lt; n$&lt;br/&gt;&lt;br/&gt;$f(m,0) = 1 \forall m$&lt;br/&gt;&lt;br/&gt;$\displaystyle f(m,n) = \sum_{k=1}^{n} f(k-1,k-1) f(m-k,n-k) + f(m-1,n) \forall m \geq n$&lt;br/&gt;&lt;br/&gt;Prove that $f(m,n) = \frac{m-n+1}{m+1} \binom{m+n}{m}$&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;Solution&lt;/h4&gt;&lt;br/&gt;First, if $m=n$, then the recursion becomes the recursion of Catalan numbers, and the initial condition $f(0,0) = 1$ matches. So $f(n,n) = C_n = \frac{1}{n+1}\binom{2n}{n}$ is the $n$-th Catalan number.&lt;br/&gt;&lt;br/&gt;Our recursion now becomes:&lt;br/&gt;&lt;br/&gt;$\displaystyle f(m,n) = \sum_{k=1}^{n} C_{k-1} f(m-k,n-k) + f(m-1,n)$&lt;br/&gt;&lt;br/&gt;Let $d = m-n$, we know that the formula holds for $d=0$. For $d&amp;gt;0$, we introduce $g(n,d) = f(n+d,n)$ that is defined over all non-negative $n,d$, with $g(n,0) = C_n \forall n$.&lt;br/&gt;&lt;br/&gt;Then our recursion formula becomes:&lt;br/&gt;&lt;br/&gt;$\displaystyle g(n,d) = \sum_{k=1}^{n} C_{k-1} g(n-k,d) + g(n,d-1)$&lt;br/&gt;&lt;br/&gt;Due to the last term, we also define that $g(n,-1) = 0 \forall n$ to allow that recursion formula to work generally. Note that this convention does not violate the original definition of $f$.&lt;br/&gt;&lt;br/&gt;Suppose $P(x) = C_0 + C_1x + C_2x^2 + \cdots + C_nx^n + \cdots$ be an infinite polynomial defined on a region near $x=0$ (within its converging radius). We know that $P(x)$ is the generating function for Catalan numbers, and it's known to be&lt;br/&gt;&lt;br/&gt;$\displaystyle P(x) = \frac{1-\sqrt{1-4x}}{2x}$&lt;br/&gt;&lt;br/&gt;Now let $Q(x,y) = \sum_{n,d \geq 0} g(n,d)x^ny^d $ also defined near zero.&lt;br/&gt;&lt;br/&gt;Consider the coefficient of $x^n y^d $ in $P(x)Q(x,y)$. It is the sum $C_0 g(n,d) + C_1g(n-1,d) + \cdots + C_ng(0,d) = g(n+1,d) - g(n+1,d-1)$&lt;br/&gt;&lt;br/&gt;But $\sum_{n \geq 1, d \geq 0}g(n,d)x^ny^d = Q(x,y) - (1+y+y^2 + \cdots) = Q - \frac{1}{1-y}$&lt;br/&gt;&lt;br/&gt;Which means the coefficients of $P(x) Q(x,y)$ is identical to $\frac{1}{x}(Q - \frac{1}{1-y}}) - \frac{y}{x}(Q - \frac{1}{1-y})$&lt;br/&gt;&lt;br/&gt;$PQ = \frac{1}{x}(Q - \frac{1}{1-y}} )- \frac{y}{x}(Q - \frac{1}{1-y})$  solving for $Q$ yields&lt;br/&gt;&lt;br/&gt;$Q(x,y) = \frac{1}{1-y-xP(x)}$&lt;br/&gt;&lt;br/&gt;As a sanity check, when $y =0$, all the $y$ terms vanish and $Q$ should be identical to $P$. But since $P$ is the Catalan generating function, it satisfies $P(x) = 1+xP(x)^2$, so $Q = \frac{1}{1-xP} = P$.&lt;br/&gt;&lt;br/&gt;One possible approach here is to solve explicitly for $Q(x,y)$ and find its Taylor series to get an explicit formula for $g$ and thus $f$, but it would make you want to gouge your eyes out.&lt;br/&gt;&lt;br/&gt;Instead, we note that $P = 1 + xP^2$, so $1-xP = 1-\frac{P-1}{P} = \frac{1}{P}$, thus&lt;br/&gt;&lt;br/&gt;$Q=\frac{1}{1-y-xP} = \frac{1}{\frac{1}{P}-y} = \frac{P}{1-Py}$&lt;br/&gt;&lt;br/&gt;Which means that $Q-P = yPQ$ is an identity near zero. Note that&lt;br/&gt;&lt;br/&gt;$\displaystyle Q-P = \sum_{n \geq 0, d \geq 1}g(n,d)x^ny^d$&lt;br/&gt;&lt;br/&gt;And that&lt;br/&gt;&lt;br/&gt;$\displaystyle yPQ = \sum_{n \geq 0, d \geq 1}x^ny^d(g(n+1,d-11) - g(n+1,d-2))$&lt;br/&gt;&lt;br/&gt;From there we get another identity: $g(n,d) = g(n+1,d-1) - g(n+1,d-2)$ for all $n \geq 0, d \geq 1$&lt;br/&gt;&lt;br/&gt;In other words, $g(n,d) = g(n-1,d+1) + g(n,d-1) \forall n\geq 1, d \geq 0$&lt;br/&gt;&lt;br/&gt;Translating back, we have $f(m,n) = f(m,n-1) + f(m-1,n)$&lt;br/&gt;&lt;br/&gt;Suppose $s = m+n$, we can prove the desired formula by induction on $s$. First, for $m+n=1$, it must be that $m=1,n=0$, and the formula is satisfied trivially. One can also check that the formula still holds for low values of $s$. The induction step holds because:&lt;br/&gt;&lt;br/&gt;$f(m,n-1) + f(m-1,n) = \frac{m-n+2}{m+1} \binom{m+n-1}{m} - \frac{m-n}{m} \binom{m+n-1}{m-1}$&lt;br/&gt;&lt;br/&gt;$=\frac{n(m-n+2)}{(m+n)(m+1)} \binom{m+n}{m} + \frac{m-n}{m+n} \binom{m+n}{m} = \frac{m-n+1}{m+1} \binom{m+n}{m+1}$&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-471960959008220042?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/471960959008220042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/10/2-variable-recursion.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/471960959008220042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/471960959008220042'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/10/2-variable-recursion.html' title='2 Variable Recursion'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-2178941850489016905</id><published>2009-10-23T01:41:00.000-07:00</published><updated>2010-03-09T20:55:01.874-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='telescoping'/><category scheme='http://www.blogger.com/atom/ns#' term='induction'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='random walk'/><category scheme='http://www.blogger.com/atom/ns#' term='bijection'/><category scheme='http://www.blogger.com/atom/ns#' term='Algebra'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><category scheme='http://www.blogger.com/atom/ns#' term='combinatorial sum binomial identity sum'/><category scheme='http://www.blogger.com/atom/ns#' term='counting'/><category scheme='http://www.blogger.com/atom/ns#' term='path'/><title type='text'>Combinatorial Sum Identity</title><content type='html'>For $m,n &amp;gt; 0$ prove that&lt;br/&gt;&lt;br/&gt;$\displaystyle 1 + \sum_{k=1}^{m} \binom{k+n}{k}  = \binom{m+n+1}{m}$&lt;br/&gt;&lt;br/&gt;Harder version:&lt;br/&gt;&lt;br/&gt;$\displaystyle \sum_{k=l}^{m} \binom{k+n}{k}  = \binom{m+n+1}{n+1} - \binom{n+l}{n+1}$&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;First Solution&lt;/h4&gt;&lt;br/&gt;Note that&lt;br/&gt;&lt;br/&gt;$\displaystyle \binom{k+n}{k} = \frac{k+n+1}{n+1}\binom{k+n}{k} - \frac{k}{n+1}\binom{k+n}{k}$&lt;br/&gt;&lt;br/&gt;$\displaystyle = \binom{k+n+1}{n+1} - \binom{k+n}{n+1}$&lt;br/&gt;&lt;br/&gt;So&lt;br/&gt;&lt;br/&gt;$\displaystyle \sum_{k=l}^{m} \binom{k+n}{k}  = \binom{n+m}{m} + \cdots +   \binom{n+k}{k} + \cdots + \binom{n+l}{l}$&lt;br/&gt;&lt;br/&gt;$\displaystyle =  \binom{n+m+1}{n+1} - \binom{n+m}{n+1} + \binom{n+m}{n+1} - \binom{n+m-1}{n+1} + \cdots + \binom{n+l+1}{n+l} - \binom{n+l}{n+1}$&lt;br/&gt;&lt;br/&gt;$\displaystyle = \binom{m+n+1}{m} - \binom{n+l}{n+1}$&lt;br/&gt;&lt;h4&gt;Second Solution&lt;/h4&gt;&lt;br/&gt;For the normal version, suppose in the Cartesian lattice we walk from $(0,0)$ to $(m, n+1)$ where we can only move 1 unit to the right or to the top. There are $\binom{m+n+1}{m}$ possible paths.&lt;br/&gt;&lt;br/&gt;Consider the last upwards motion that we make, say from $(k,n)$ to $(k,n+1)$. There is only one possible path to complete after this motion, that is, all horizontal motions. But in order to get here, we may use any possible path from $(0,0)$ to $(k,n)$. There are $\binom{k+n}{k}$ such paths. Note that $k$ can range from $0$ to $m$, so the 1 term in the LHS accounts for the case where $k=0$.&lt;br/&gt;&lt;br/&gt;For the harder version, suppose now we limit ourselves for $k \geq l$. The LHS describes the number of paths where the last upward motion happens at or after $l$. The negative term in the RHS describes the number of paths where the last upward motion happen before $l$, because that means the path must pass through $(l-1, n+1)$.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-2178941850489016905?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/2178941850489016905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/10/combinatorial-sum-identity.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2178941850489016905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/2178941850489016905'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/10/combinatorial-sum-identity.html' title='Combinatorial Sum Identity'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-425447206977797617</id><published>2009-10-22T14:53:00.000-07:00</published><updated>2010-03-09T20:55:01.807-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='stone'/><category scheme='http://www.blogger.com/atom/ns#' term='girl'/><category scheme='http://www.blogger.com/atom/ns#' term='induction'/><category scheme='http://www.blogger.com/atom/ns#' term='catalan'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><category scheme='http://www.blogger.com/atom/ns#' term='boy'/><category scheme='http://www.blogger.com/atom/ns#' term='Add new tag'/><category scheme='http://www.blogger.com/atom/ns#' term='table'/><category scheme='http://www.blogger.com/atom/ns#' term='turn'/><category scheme='http://www.blogger.com/atom/ns#' term='game'/><title type='text'>Boys and Girls around the table</title><content type='html'>$(n+1)$ boys and $n$ girls are seated around a circular table playing a game. One boy started to put a stone on the table, and they subsequently went around the table clockwise. At each child's turn, if that child is a boy, he puts a stone on the table, but if that child is a girl, she takes away one stone from the table. They're finished when everyone has had one turn. If the table ever becomes empty (except before the first boy put his stone), they all lose the game.&lt;br/&gt;&lt;br/&gt;Prove that there is a boy such that if he starts, they can complete the round without losing.&lt;br/&gt;&lt;br/&gt;Furthermore, prove that there is only one such boy. That is, if any other boy starts, they would lose the game.&lt;br/&gt;&lt;br/&gt;Harder version: suppose you now have $m+n$ boys and $n$ girls, with $m$ positive. Prove that there are exactly $m$ boys who could start a non-losing game.&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;Solution for normal version&lt;/h4&gt;&lt;br/&gt;We prove by induction on $n$. The proof is trivial for $n=1$. Now, suppose that there is one and only one boy who could start a non-losing game in the case of $n=k-1$. We consider the case of $n=k$.&lt;br/&gt;&lt;br/&gt;Take any boy who sits with a girl to his left, so that the girl's turn is immediately following him. Call the boy Andy and the girl Betty. Remove Andy and Betty from the table. We are now left with $k-1$ girl and $k$ boys, for which we would have exactly one boy who could start a non-losing game.&lt;br/&gt;&lt;br/&gt;Suppose we start with that boy, then when we get to Andy, his stone would immediately be removed by Betty, and then the game proceeds exactly like it would in $n=k-1$ case. So the table would never become empty.&lt;br/&gt;&lt;br/&gt;To prove that there is only one boy who could start a non-losing game, we only need to prove that Andy could not start a non-losing game. But it is trivial. If we start with Andy, the table would become empty right after Betty's turn. For any other boy besides Andy, the game proceeds exactly like it would in $n=k-1$ case, so there can only be one  starter boy.&lt;br/&gt;&lt;h4&gt;Solution for harder version&lt;/h4&gt;&lt;br/&gt;We fix $m$, and prove by induction on $n$. For $n=1$, it is easy to see that all the $m+1$ boys are sitting together, so the first $m$ boys could start a non-losing game.&lt;br/&gt;&lt;br/&gt;The induction step works exactly like the normal version. We take any boy who sits immediately before a girl and remove them from the game.&lt;br/&gt;&lt;br/&gt;Any boy who had started a non-losing game would still start a non-losing game after those two are returned to the table. The boy who was temporarily removed couldn't have been a starter boy. So there are exactly $m$ starter boys.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-425447206977797617?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/425447206977797617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/10/boys-and-girls-around-table.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/425447206977797617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/425447206977797617'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/10/boys-and-girls-around-table.html' title='Boys and Girls around the table'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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-6803079253342371630.post-1987322999210163054</id><published>2009-10-21T06:26:00.000-07:00</published><updated>2010-03-09T20:55:01.799-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='parity'/><category scheme='http://www.blogger.com/atom/ns#' term='circle'/><category scheme='http://www.blogger.com/atom/ns#' term='Combinatorics'/><category scheme='http://www.blogger.com/atom/ns#' term='color'/><category scheme='http://www.blogger.com/atom/ns#' term='intersect'/><category scheme='http://www.blogger.com/atom/ns#' term='Solved'/><category scheme='http://www.blogger.com/atom/ns#' term='coloring'/><title type='text'>Circles and Coloring</title><content type='html'>Several circles are drawn on a piece of paper to form several regions on the paper. We wish to color these regions such that no two regions that share a common boundary would have the same color.&lt;br/&gt;&lt;br/&gt;(It is okay if two regions that share a common &lt;strong&gt;point&lt;/strong&gt; to have the same color, but not boundary)&lt;br/&gt;&lt;br/&gt;How many colors minimum are needed?&lt;br/&gt;&lt;h4&gt;&lt;a name='more'&gt;&lt;/a&gt;Solution&lt;/h4&gt;&lt;br/&gt;Two colors are sufficient.&lt;br/&gt;&lt;br/&gt;For each circle $C$, we give a region the score of 1 if it's inside $C$ and 0 if it's outside of $C$. We go through the circles one by one and give scores accordingly, and at the end, we tally up the total scores of each region. If a region has an even score, we color it Red, and if it has an odd score, we color it Blue.&lt;br/&gt;&lt;br/&gt;If two regions share a common boundary, that boundary must belong to a circle. One region would have to be inside that circle and another region outside. Their inside/outside-ness are identical with regard to all the other circles. Therefore, their scores differ by exactly 1, and they would have opposite color.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6803079253342371630-1987322999210163054?l=dharmath.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dharmath.blogspot.com/feeds/1987322999210163054/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dharmath.blogspot.com/2009/10/circles-and-coloring.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1987322999210163054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6803079253342371630/posts/default/1987322999210163054'/><link rel='alternate' type='text/html' href='http://dharmath.blogspot.com/2009/10/circles-and-coloring.html' title='Circles and Coloring'/><author><name>hendrata</name><uri>http://www.blogger.com/profile/00010802956223979858</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>
