Päevaülesanne

Juhuslik

Harjutuskomplekt

Balti Tee 2019 · Ülesanne 4

Algebra

Determine all integers nn for which there exist an integer k≥2k\ge2 and positive integers x1,x2,…,xkx_1,x_2,\ldots,x_k so that

x1x2+x2x3+⋯+xk−1xk=nx_1x_2+x_2x_3+\cdots+x_{k-1}x_k=n

and

x1+x2+⋯+xk=2019.x_1+x_2+\cdots+x_k=2019.
Muuda valikut

Kui oled valmis

Ülevaatematerjal muutub kättesaadavaks järgmise päevaülesannete komplektiga.

Ülevaade

Teemad

Jadad ja rekurrentsid · Võrrandid ja võrratused · Ekstremaalmeetodid algebras

Lahendused

Lahendus

First, easy induction shows that ∑i=1k−1xixi+1≥(∑i=1kxi)−1\sum_{i=1}^{k-1} x_i x_{i+1} \ge (\sum_{i=1}^k x_i) - 1.

Base case k=2k=2: x1x2−(x1+x2−1)=(x1−1)(x2−1)≥0x_1x_2 - (x_1+x_2-1) = (x_1-1)(x_2-1) \ge 0. Assuming the inequality holds for a certain kk and adding the obvious xkxk+1≥xk+1x_kx_{k+1} \ge x_{k+1}, we get the claim for k+1k+1.

Given the conditions of the problem, this shows that (for a given nn) the quadratic form in question takes values ≥n−1\ge n-1; and the minimum n−1n-1 is attained e.g. for k=nk=n and all xi=1x_i=1.

Now to the upper bound. The fine point is that kk is variable. So, let x1,…,xkx_1, \dots, x_k be a kk-string of positive integers with ∑xi=n\sum x_i = n, and with k≥4k \ge 4; and let VV be the generated value V=∑i=1k−1xixi+1V = \sum_{i=1}^{k-1} x_i x_{i+1}. If x2≤x3x_2 \le x_3, we merge x1x_1 with x2x_2; and if x2>x3x_2 > x_3, we merge x3x_3 with x4x_4, thus creating the following (k−1)(k-1)-string (with entries summing to nn): (x1+x2),x3,…,xk, resp. x1,x2,(x3+x4),x5,…,xk(if k=4,x5=0)(x_1+x_2), x_3, \dots, x_k, \text{ resp. } x_1, x_2, (x_3+x_4), x_5, \dots, x_k \quad (\text{if } k=4, x_5=0). If V~\tilde{V} is the new value of the quantity under consideration then, in the first case V~−V=x1x3−x1x2≥0\tilde{V} - V = x_1x_3 - x_1x_2 \ge 0; and in the second case

V~−V=x2x4−x3x4+x3x5≥0\tilde{V} - V = x_2x_4 - x_3x_4 + x_3x_5 \ge 0

After several steps kk comes down to 33 and we arrive at a 33-string z1,z2,z3z_1, z_2, z_3 (with z1+z2+z3=nz_1 + z_2 + z_3 = n) producing the value

W=z1z2+z2z3=z2(z1+z3)≥VW = z_1z_2 + z_2z_3 = z_2(z_1 + z_3) \ge V

The product of two integers with a given sum nn has a maximum

Mn=⌊n/2⌋⋅⌈n/2⌉=⌊(n2+1)/4⌋M_n = \lfloor n/2 \rfloor \cdot \lceil n/2 \rceil = \lfloor (n^2 + 1)/4 \rfloor

To show that all integer values between n−1n-1 and MnM_n are attained, we focus on strings x1,…,xkx_1, \dots, x_k ending in xk=1x_k=1. We claim that these alone are enough to generate all those values. Induction again. Base n=2n=2: obvious. Fix n>2n>2 and assume that positive-integer strings with sum n−1n-1, ending in a 11, yield all values from n−2n-2 to Mn−1M_{n-1}. At the end of each of these strings (next to the terminal 11) we attach another 11; the value of the quadratic form grows by 11. So we already have strings with sum nn and with last entry 11, producing all values from n−1n-1 to Mn−1+1M_{n-1}+1.

Now, if nn is even, n=2mn=2m, the triples (3-strings) m−1,m,1m-1, m, 1 and m,m−1,1m, m-1, 1 produce the values Mn=m2M_n = m^2 and Mn−1=m2−1M_n-1 = m^2-1; and the quadruples (4-strings) j,m−2,m+1−j,1j, m-2, m+1-j, 1 with j=1,…,mj=1, \dots, m give values from m2−2m^2-2 down to m2−m−1m^2-m-1 (which is below Mn−1M_{n-1}). If nn is odd, n=2m+1n=2m+1, the value Mn=m2+mM_n = m^2+m comes from the triples m,m,1m, m, 1; and now the quadruples j,m−1,m+1−j,1j, m-1, m+1-j, 1 with j=1,…,mj=1, \dots, m yield the values from m2+m−1m^2+m-1 down to m2m^2 (below Mn−1M_{n-1}). In each case, as jj ranges from 11 to mm, the generated values of the quadratic form sweep (with slight excess) the entire missing interval. Induction is completed and the claim results.

The answer follows: the values of ∑i=1k−1xixi+1\sum_{i=1}^{k-1} x_i x_{i+1} are all integers from n−1n-1 to MnM_n (inclusive).

Võistluse kontekst

Balti Tee tulemused 2019

11 võistkonda

Keskmine tulemus
0,7 / 5
4 või 5 punkti
0 / 11
Eesti
0 / 5

Punktijaotus

07
12
20
32
40
50
Kõigi võistkondade punktid
VõistkondPunktid
St. Petersburg3 / 5
Poland3 / 5
Estonia0 / 5
Lithuania0 / 5
Germany0 / 5
Norway1 / 5
Finland0 / 5
Denmark1 / 5
Sweden0 / 5
Latvia0 / 5
Iceland0 / 5