Monday, August 5, 2013
Fractional inequality
Let $x, y > 0$, $x \neq y$, and let $n > 1$ be an integer.
If $x^n - y^n = x^{n+1} - y^{n+1}$, show that
$$1 < x+y < \frac{2n}{n+1}$$
Solution
Let $f(x) = x^n ( 1 - x)$ and we have $f(x) = f(y)$. WLOG, we may assume that $x
If $y > 1$ then $f(y)$ is negative, so that $f(x)$ is negative, which means $x > 1$ as well. But $f(x)$ is monotonically decreasing for $x > 1$ (because $x^n$ is monotonically increasing and $1-x$ is monotonically decreasing). Contradiction.
If $y=1$ then $f(x) = f(y) = 0$ impossible for $x>0$. Contradiction.
If $0 < x < y < 1$, we draw the graph of $f(x)$. It starts off at (0,0), going up to a maximum between 0 and 1, and goes back down to (1,0). This graph can be deduced easily be realizing that $f(x) = x(1-x) . x^{n-1}$. Because $x(1-x)$ only has one turning point and $x^{n-1}$ is monotonically increasing (or constant), then $f(x)$ also only has one turning point.
We can find that turning point by using AM-GM:
$$f(x) = x.x\dots x.(1-x)$$
$$ = \frac{1}{n} x.x\dots x.(n-nx)$$
$$ \leq \frac{1}{n} (\frac{n}{n})^n = \frac{1}{n}$$
Equality happens when $x = n-nx$ or $x = \frac{n}{n+1}$. Note that for $n>1, \frac{n}{n+1} = 1 - \frac{1}{n+1}> 1/2$
Monotonically increasing sequences with sums
Let $a_1, \dots, a_{1007}$ and $b_1, \dots, b_{1007}$ be monotonically increasing sequences such that:
For all $i$, $0 \leq a_i \leq 2013$ and $0 \leq b_i \leq 2013$.
For $i \neq j$, $a_i + a_j \neq 2013$ and $b_i + b_j \neq 2013$
$a_0 = b_0$
There exists a real number S such that for all $i$, $a_i + b_{1008-i} = S$.
What are the possible values of $S$?
Solution
Note that for $a_i$ and $b_i$, we need to choose 1007 numbers from 2014 numbers (0,1,...,2013) and no two of those chosen ones may add up to 2013. Thus, from each of the following pairs of numbers $(0,2013), (1,2012), \dots, (1006,1007)$ we must choose exactly one number. Thus, at most one of 0 or 2013 may be chosen. For now, let's assume that $a_1 = b_1 = 0$, which means 2013 is not chosen in both $a_i$ and $b_i$. We'll deal with the other cases later. Let $k$ be the first number that is not chosen in $a_i$. That means $0, \dots, k-1$ are all chosen, so we have $a_1 = 0, a_2 = 1, \dots, a_k = k-1$. This also means that $2013, \dots, 2013-(k-1)$ are not chosen but $2013-k$ is chosen. In other words, $2013-k$ is the largest chosen number in $a_i$, so $a_{1007} = 2013-k$. Because $b_1 = 0$ then $S = 2013-k$. That means $b_{1007}=2013-k - a_0 = 2013-k$ Because $2013-k$ is the largest chosen number in $b_i$, then $2013-k+1,\dots,2013$ are not chosen in $b_i$, therefore $0,\dots,k-1$ are chosen in $b_i$ and $k$ is not chosen in $b_i$. Because $0,\dots,k-1$ are chosen in $b_i$, and $S = 2013-k$, that means $2013-k, 2013-k-1, \dots, 2013-(2k-1)$ are chosen in $a_i$, which means $k,k+1,\dots,2k-1$ are not chosen in $a_i$. Likewise, because $0,\dots,k-1$ are chosen in $a_i$, and $S = 2013-k$, that means $2013-k, 2013-k-1, \dots, 2013-(2k-1)$ are chosen in $b_i$, which means $k,k+1,\dots,2k-1$ are not chosen in $b_i$. At this point, we have established the following fact:- The first $k$ numbers in $a_i$ and $b_i$ are chosen, and the next $k$ numbers are not chosen.
- The last $k$ numbers in $a_i$ and $b_i$ are not chosen, and the previous $k$ numbers are chosen.
- $2km, \dots, (2m+1)k-1$ are chosen in $a_i$ and $b_i$.
- $(2m+1)k, \dots, (2m+2)k-1$ are not chosen in $a_i$ and $b_i$.
- $2013-((2m+1)k-1), \dots, 2013-2km$ are not chosen in $a_i$ and $b_i$.
- $2013-((2m+2)k-1), \dots, 2013-(2m+1)k$ are chosen in $a_i$ and $b_i$.
Marble distribution
In a class, the teacher gives each student $n$ marbles, and each marble was either red, blue, or green. Each student gets a different combination of marbles (i.e. no two students get the same number of red, blue, and green marbles altogether). Also, no two students have a total of exactly $n$ marbles of any color between them. What is the maximum number of students in the class?
Tuesday, May 7, 2013
Integer solutions
Let $f(t) = t(t-1)$.
Find all positive integers $x,y$ such that
$$f(x) + f(y) = f(x+y) / 2$$
First Solution
Expanding and canceling, we have:
$$x^2+y^2-2xy = x+y$$
It's easy to see that there's no solution for $x=y$. The above equation is now equivalent to:
$$16x^2+16y^2+1-8x-8y+32xy = 64xy+8x+8y+1$$
$$(4x+4y-1)^2 = (8x+1)(8y+1)$$
Because both quantities are positive, we have:
$$4x+4y-1 = \sqrt{8x+1} \sqrt{8y+1}$$
Once again rearranging,
$$(8x+1) - 2\sqrt{8x+1} \sqrt{8y+1} + (8y+1) = 4$$
$$(\sqrt{8x+1} - \sqrt{8y+1})^2 = 4$$
If $x=y$, then there is no solution
WLOG, we may assume that $x > y$, so that
$$\frac{\sqrt{8x+1}}{2} - \frac{\sqrt{8y+1}}{2} = 1$$
Note that $g(t) = \frac{1+\sqrt{8t+1}}{2}$ is the reverse triangular number function. Thus, any two consecutive triangular numbers (for example 3 and 6, 6 and 10, and so on) are a solution.
Now we show that there's no other solution. The equation is equivalent to $g(x) - g(y) = 1$. In order for $g(x)$, to be an integer, we must have $8x + 1 = k^2$ for some $k$. But $k$ is odd, so $8x+1 = 4m^2 + 4m + 1$ which means $x = m(m+1)/2$ is a triangular number
Now suppose $g(x)$ is not an integer, then it will be irrational, and so will $g(y)$. They both have form of $a+\sqrt{b}$ with $a,b$ rational, but with different $b$s, because $x \neq y$. The difference can't be rational, a contradiction.
Thus, the only solutions are two consecutive triangular numbers.
Second Solution
Let $d = \gcd(x,y)$, and $x = dm, y = dn$ with $m,n$ coprime. Upon substitution and rearranging, we have:
$$d(m-n)^2 = m+n$$
Clearly $m=n$ is not a solution. Now wlog let $m < n$ and $n = m + k$
$$dk^2 = 2m+k$$
Because $k$ divides $dk^2$ and $2m$ then $k$ divides $2m$. Because $m$ and $n$ are coprime, then $k$ and $m$ are coprime. Thus we have $k=1$ or $k=2$.
For $k=1$, $d = 2m+1, n=m+1$, so $x = (2m+1)m,y=(2m+1)(m+1)$.
For $k=2$, $d = (m+1)/2, n=m+2$, and obviously we can only use odd values of $m$. Suppose $m = 2l+1$, then $d = l+1, n=2l+3$, so $x=(l+1)(2l+1), y =(l+1)(2l+3)$. Interestingly, this form is the same as the case for $k=1$, except we substitute $m = l + 1/2$
Combining the two cases, we can conclude that the solution must have form of $m(2m+1),(m+1)(2m+1)$ for $m$ multiples of 1/2, or equivalently, $k(k+1)/2, (k+1)(k+2)/2$ for $k$ any integers. In other words, they must be two consecutive triangular numbers.
Labels:
Algebra,
Combinatorics,
function,
Number Theory,
triangular numbers
Wednesday, March 6, 2013
Charged pendulum
From brilliant.org:
Two point charges, each of charge q and mass m, are hung from 1 m long cords and constrained to move in the xy-plane. The charge and mass are chosen such that the when the charges are in their equilibrium position the angle $/theta$ the cords make with the vertical is 0.1 radians. The masses are placed in their equilibrium positions and then each is pulled out by some small angle 0.01 radians and released. What is the period of the resulting oscillation in seconds?
Wednesday, December 5, 2012
Sum of products of 3
Let $p>3$ be a prime number, and let $S={2,3,\dots,p-1}$ Let $X = \sum_{ i < j < k \in S} ijk$, prove that $X + 1$ is divisible by $p$.
Solution
Because $p$ is odd, let $p = 2m+1$. First we calculate $1^2 + \dots + (p-1)^2 \mod p$. We do this by realizing that $1^2 = (p-1)^2 \mod p, 2^2 = (p-2)^2 \mod p$ and so on. Every term will have a "pair", so the sum is: $$1^2 + \dots + m^2 + (m+1)^2 + \dots + (p-1)^2$$ $$ \equiv 2 (1 + \dots + m^2) \mod p$$ $$ \equiv m(m+1)(2m+1) \equiv 0 \mod p$$ because $2m+1 = p$. This means that $2^2 + \dots + (p-1)^2 \equiv -1 \mod p$ Next we calculate $1^3 + \dots + (p-1)^3 \mod p$. We do this by realizing that $p = 1 + (p-1) | 1^3 + (p-1)^3, p=2+(p-2) | 2^3+(p-2)^3$ and so on. Like above, each term will have a pair that it cancels out with. Thus $1^3 + \dots + (p-1)^3 \equiv 0 \mod p$, so $2^3 + \dots + (p-1)^3 \equiv -1 \mod p$. Now we also have that $1+\dots + (p-1) \equiv 0 \mod p$, so $2 + \dots + (p-1) \equiv -1 \mod p$. From this, we have: $$ 2\sum_{i < j \in S} ij \equiv (-1)^2-(-1) \equiv 2 \mod p $$ $$\sum_{i < j \in S} ij \equiv 1 \mod p$$ because $p$ is odd. Now, for any real numbers $a_1, \dots, a_n$, let us define the following variables: $$A = a_1 + \dots + a_n$$ $$B = \sum_{i < j} a_i a_j$$ $$C = \sum_{i \neq j } a_i^2 a_j$$ $$D = \sum_{i < j < k} a_i a_j a_k$$ $$E = a_1^2 + \dots + a_n^2$$ $$F = a_1^3 + \dots + a_n^3$$ Then we have: $$AB = (a_1+\dots+a_n)(a_1a_2 + a_1a_3 + \dots + a_{n-1}a_n) = C + 3D$$ The identity from middle to right is because for each $a_i$ in $A$, it's either paired with $a_ia_j$ or $a_j a_k$ in B. If it's paired with $a_i a_j$ then it would contribute towards $C$, otherwise it would contribute towards $3D$. Likewise, each term in $C$ and $3D$ can be traced back to $AB$. Each term $a_i^2 a_j$ in $C$ comes from $a_i$ in $A$ and $a_i a_j$ in $B$. Each term $3a_i a_j a_k$ in $3D$ comes from three sources: $a_i$ in $A$ and $a_j a_k$ in $B$ and its permutations. To further convince ourselves, $A$ has $n$ terms, and $B$ has $n(n-1)/2$ terms, so $AB$ has $n^2(n-1)/2$ terms. $3D$ has $n(n-1)(n-2)/2$ terms and $C$ has $n(n-1)$ terms, so altogether they have $n^2(n-1)/2$ terms. Furthermore: $$C = a_1^2(A-a_1) + a_2^2(A-a_2) + \dots + a_n^2(A-a_n) = AE - F$$ So: $$3D = AB-C = F + AB-AE$$ This identity holds for any real numbers $a_i$, and it's based on pure algebraic manipulation. We can apply this identity to our set $S$. We already know that $F \equiv -1, A \equiv -1, B \equiv 1, E \equiv -1 \mod p$. From there, we have $3D \equiv -3 \mod p$, which means $(3D+3)$ is divisible by $p$. Because $p > 3$ then $D+1$ is divisible by $p$.Wednesday, June 13, 2012
An equilateral with side $n$ is divided into smaller equilaterals with size 1 so that they form a triangular lattice. Each segment of length 1 is colored either red, blue, or green. A coloring is called "good" if every equilateral has sides of three different colors. How many good colorings are there?
Two colorings are called distinct if at least one segment is colored differently. For example, with $n=1$, there are 6 good colorings. With $n=2$, there are 48 colorings.
Subscribe to:
Posts (Atom)