Archive

Archive for the ‘Uncategorized’ Category

IMC 2017 – Day 2 – Problems

August 3, 2017 Leave a comment

Problem 6. Let {f: [0,\infty) \rightarrow \Bbb{R}} be a continuous function such that {\lim_{x \rightarrow \infty}f(x) = L} exists (finite or infinite).

Prove that

\displaystyle \lim_{n \rightarrow \infty} \int_0^1 f(nx) dx = L.

Problem 7. Let {p(x)} be a nonconstant polynomial with real coefficients. For every positive integer {n} let

\displaystyle q_n(x) = (x+1)^n p(x)+x^n p(x+1).

Prove that there are only finitely many numbers {n} such that all roots of {q_n(x)} are real.

Problem 8. Define the sequence {A_1,A_2,...} of matrices by the following recurrence

\displaystyle A_1 = \begin{pmatrix} 0& 1 \\ 1& 0 \end{pmatrix}, \ A_{n+1} = \begin{pmatrix} A_n & I_{2^n} \\ I_{2^n} & A_n \end{pmatrix} \ \ (n=1,2,...)

where {I_m} is the {m\times m} identity matrix.

Prove that {A_n} has {n+1} distinct integer eigenvalues {\lambda_0<\lambda_1<...<\lambda_n} with multiplicities {{n \choose 0},\ {n\choose 1},...,{n \choose n}}, respectively.

Problem 9. Define the sequence {f_1,f_2,... : [0,1) \rightarrow \Bbb{R}} of continuously differentiable functions by the following recurrence

\displaystyle f_1 = 1; f'_{n+1} = f_nf_{n+1} \text{ on } (0,1) \text{ and } f_{n+1}(0)=1.

Show that {\lim_{n\rightarrow \infty}f_n(x)} exists for every {x \in [0,1)} and determine the limit function.

Problem 10. Let {K} be an equilateral triangle in the plane. Prove that for every {p>0} there exists an {\varepsilon >0} with the following property: If {n} is a positive integer and {T_1,...,T_n} are non-overlapping triangles inside {K} such that each of them is homothetic to {K} with a negative ratio and

\displaystyle \sum_{\ell =1}^n \text{area}(T_\ell) > \text{area} (K)-\varepsilon,

then

\displaystyle \sum_{\ell =1}^n \text{perimeter} (T_\ell) > p.

Advertisements

IMC 2017 – Day 1

August 2, 2017 Leave a comment

Problem 1. Determine all complex numbers {\lambda} for which there exists a positive integer {n} and a real {n\times n} matrix {A} such that {A^2 = A^T} and {\lambda} is an eigenvalue of {A}.

Problem 2. Let {f: \Bbb{R} \rightarrow (0,\infty)} be a differentiable function and suppose that there exists a constant {L>0} such that

\displaystyle |f'(x)-f'(y)|\leq L|x-y|

for all {x,y}. Prove that

\displaystyle (f'(x))^2 < 2Lf(x)

holds for all {x}.

Problem 3. For any positive integer {m} denote by {P(m)} the product of positive divisors of {m}. For every positive integer {n} define the sequence

\displaystyle a_1(n)=n, \ \ \ a_{k+1}(n) = P(a_k(n)) \ \ (k=1,2,...,2016).

Determine whether for every set {S \subseteq \{1,2,...,2017\}} there exists a positive integer {n} such that the following condition is satisfied:

For every {k} with {1\leq k \leq 2017} the number {a_k(n)} is a perfect square if and only if {k \in S}.

Problem 4. There are {n} people in a city and each of them has exactly {1000} friends (friendship is mutual). Prove that it is possible to select a group {S} of people such that at least {n/2017} persons in {S} have exactly two friends in {S}.

Problem 5. Let {k} and {n} be positive integers with {n \geq k^2-3k+4} and let

\displaystyle f(z) = z^{n-1}+c_{n-2}z^{n-2}+...+c_0

be a polynomial with complex coefficients such that

\displaystyle c_0c_{n-2} = c_1c_{n-3} = ... = c_{n-2}c_0 = 0.

Prove that {f(z)} and {z^n-1} have at most {n-k} common roots.

Categories: Uncategorized

Project Euler – Problem 264

July 28, 2017 Leave a comment

Today I managed to solve problem 264 from Project Euler. This is my highest rating problem until now: 85%. You can click the link for the full text of the problem. The main idea is to find all triangles ABC with vertices having integer coordinates such that

  • the circumcenter O of each of the triangles is the origin
  • the orthocenter H (the intersection of the heights) is the point of coordinates (0,5)
  • the perimeter is lower than a certain bound

I will not give detailed advice or codes. You can already find a program online for this problem (I won’t tell you where) and it can serve to verify the final code, before going for the final result. Anyway, following the hints below may help you get to a solution.

The initial idea has to do with a geometric relation linking the points A, B, C, O and H. Anyone who did some problems with vectors and triangles should have come across the needed relation at some time. If not, just search for important lines in triangles, especially the line passing through O and H (and another important point).

Once you find this vectorial relation, it is possible to translate it in coordinates. The fact that points A, B, C are on a circle centered in O shows that their coordinates satisfy an equation of the form x^2+y^2=n, where n is a positive integer, not necessarily a square… It is possible to enumerate all solutions to the following equation for fixed n, simply by looping over x and y. This helps you find all lattice points on the circle of radius \sqrt{n}.

Once these lattice points are found one needs to check the orthocenter condition. The relations are pretty simple and in the end we have two conditions to check for the sum of the x and y coordinates. The testing procedure is a triple loop. We initially have a list of points on a circle, from the previous step. We loop over them such that we dont count triangles twice: i from 1 to m, j from i+1 to m, k from j+1 to m, etc. Once a suitable solution is found, we compute the perimeter using the classical distance formula between two points given in coordinates. Once the perimeter is computed we add it to the total.

Since the triple loop has cubic complexity, one could turn it in a double loop. Loop over pairs and construct the third point using the orthocenter condition. Then just check if the point is also on the circle. I didn’t manage to make this double loop without overcounting things, so I use it as a test: use double loops to check every family of points on a given circle. If you find something then use a triple loop to count it properly. It turns out that cases where the triple loop is needed are quite rare.

So now you have the ingredients to check if on a circle of given radius there are triangles with the desired properties. Now we just iterate over the square of the radius. The problem is to find the proper upper bound for this radius in order to get all the triangles with perimeter below the bound. It turns out that a simple observation can get you close to a near optimal bound. Since in the end the radii get really large and the size of the triangles gets really large, the segment OH becomes small, being of fixed length 5. When OH is very small, the triangle is almost equilateral. Just use the upper bound for the radius for an equilateral triangle of perimeter equal to the upper bound of 100000 given in the problem.

Using these ideas you can build a bruteforce algorithm. Plotting the values of the radii which give valid triangles will help you find that you only need to loop over a small part of the radii values. Factoring these values will help you reduce even more the search space. I managed to  solve the problem in about 5 hours in Pari GP. This means things could be improved. However, having an algorithm which can give the result in “reasonable” time is fine by me.

I hope this will help you get towards the result.

Project Euler 607

June 11, 2017 2 comments

If you like solving Project Euler problems you should try Problem number 607. It’s not very hard, as it can be reduced to a small optimization problem. The idea is to find a path which minimizes time, knowing that certain regions correspond to different speeds. A precise statement of the result can be found on the official page. Here’s an image of the path which realizes the shortest time:

euler607

 

Balkan Mathematica Olympiad 2017 – Problem 3

May 10, 2017 Leave a comment

Problem 3. Let {\mathbb{N}} denote the set of positive integers. Find all functions {f:\mathbb{N}\longrightarrow\mathbb{N}} such that

\displaystyle n+f(m)\mid f(n)+nf(m)

for all {m,n\in \mathbb{N}}

Read more…

Categories: Uncategorized

Balkan Mathematical Olympiad 2017 – Problems

May 10, 2017 Leave a comment

Problem 1. Find all ordered pairs of positive integers { (x, y)} such that:

\displaystyle x^3+y^3=x^2+42xy+y^2.

Problem 2. Consider an acute-angled triangle {ABC} with {AB<AC} and let {\omega} be its circumscribed circle. Let {t_B} and {t_C} be the tangents to the circle {\omega} at points {B} and {C}, respectively, and let {L} be their intersection. The straight line passing through the point {B} and parallel to {AC} intersects {t_C} in point {D}. The straight line passing through the point {C} and parallel to {AB} intersects {t_B} in point {E}. The circumcircle of the triangle {BDC} intersects {AC} in {T}, where {T} is located between {A} and {C}. The circumcircle of the triangle {BEC} intersects the line {AB} (or its extension) in {S}, where {B} is located between {S} and {A}.

Prove that {ST}, {AL}, and {BC} are concurrent.

Problem 3. Let {\mathbb{N}} denote the set of positive integers. Find all functions {f:\mathbb{N}\longrightarrow\mathbb{N}} such that

\displaystyle n+f(m)\mid f(n)+nf(m)

for all {m,n\in \mathbb{N}}

Problem 4. On a circular table sit {\displaystyle {n> 2}} students. First, each student has just one candy. At each step, each student chooses one of the following actions:

  • (A) Gives a candy to the student sitting on his left or to the student sitting on his right.
  • (B) Separates all its candies in two, possibly empty, sets and gives one set to the student sitting on his left and the other to the student sitting on his right.

At each step, students perform the actions they have chosen at the same time. A distribution of candy is called legitimate if it can occur after a finite number of steps. Find the number of legitimate distributions.

(Two distributions are different if there is a student who has a different number of candy in each of these distributions.)

Source: AoPS

Missing digit – short puzzle

April 15, 2017 Leave a comment

The number 2^{29} has 9 digits, all different; which digit is missing?

Mathematical Mind-Benders, Peter Winkler

Read more…

%d bloggers like this: