Maths Olympiad Prep

Library / /9 of 17

Algebra Difficulty 7.6 National Olympiad, round 2 Prove it Balkan Mathematical Olympiad

Let f,gf, g be functions from the positive integers to the integers. Vlad the impala is jumping around the integer grid. His initial position is x0=(0,0)\mathbf{x}_0 = (0,0), and for every n1n \ge 1, his jump is
xnxn1=(±f(n),±g(n)) or (±g(n),±f(n)), \mathbf{x}_n - \mathbf{x}_{n-1} = (\pm f(n), \pm g(n)) \text{ or } (\pm g(n), \pm f(n)),
with eight possibilities in total. Is it always possible that Vlad can choose his jumps to return to his initial location (0,0)(0,0) infinitely many times when
(a) f,gf, g are polynomials with integer coefficients?
(b) f,gf, g are any pair of functions from the positive integers to the integers?

Solutions — 2

Solution 1

(a) Yes it is always possible. The key idea is the following: Let b(n)b(n) be the number of 1's in the binary expansion of n=0,1,2,n = 0, 1, 2, \dots.

Lemma: Given a polynomial ff with integer coefficients and degree at most dd, then
k=02d+11(1)b(k)f(n+k)=f(n)f(n+1)f(n+2)++±f(n+(2d+11))=0. \sum_{k=0}^{2^{d+1}-1} (-1)^{b(k)} f(n+k) = f(n) - f(n+1) - f(n+2) + \dots + \pm f(n + (2^{d+1} - 1)) = 0.
Proof of Lemma: The result is clear for d=0d=0. For d1d \ge 1, we have
k=02d+11(1)b(k)f(n+k)=k=02d1(1)b(k)[f(n+k)f(n+k+2d)]. \sum_{k=0}^{2^{d+1}-1} (-1)^{b(k)} f(n+k) = \sum_{k=0}^{2^d-1} (-1)^{b(k)} [f(n+k) - f(n+k+2^d)].
So set f~(n)=f(n)f(n+2d)\tilde{f}(n) = f(n) - f(n + 2^d), which is a polynomial of degree at most d1d-1. Then
k=02d+11(1)b(k)f(n+k)=k=02d1f~(n+k)=0, \sum_{k=0}^{2^{d+1}-1} (-1)^{b(k)} f(n+k) = \sum_{k=0}^{2^d-1} \tilde{f}(n+k) = 0,
by induction, completing the proof of the lemma. \square

In particular, if we take
xnxn1=((1)b(n)f(n),(1)b(n)g(n)), \mathbf{x}_n - \mathbf{x}_{n-1} = ((-1)^{b(n)} f(n), (-1)^{b(n)} g(n)),
then xD=0\mathbf{x}_D = \mathbf{0} whenever DD is a multiple of 21+max(deg(f),deg(g))2^{1+\max(\deg(f),\deg(g))}.

(b) No, it is not always possible. Let gg be any suitable function. Then, we construct ff inductively. There are at most 8n18^{n-1} possibilities for xn1\mathbf{x}_{n-1}, so choose f(n)f(n) to be greater than the magnitude of all of them. Consequently xn\mathbf{x}_n cannot be 0\mathbf{0}.

Solution 2

(a) Given a polynomial ff of degree at most dd and integers n,rn, r, we claim that
k=02d+11εkf(2dn+r+k)=0 \sum_{k=0}^{2^{d+1}-1} \varepsilon_k f(2^d n + r + k) = 0
for some choice of ε0,ε1,,ε2d+11{1,1}\varepsilon_0, \varepsilon_1, \dots, \varepsilon_{2^{d+1}-1} \in \{-1, 1\}. (Which are allowed to depend on dd and ff.)

We proceed by induction on dd, the case d=0d = 0 being immediate. For the inductive step we define the polynomial g(n)=f(2n+r+1)f(2n+r)g(n) = f(2n + r + 1) - f(2n + r) which is a polynomial of degree at most d1d - 1. Then
k=02d1εkg(2d1n+k)=0 \sum_{k=0}^{2^d-1} \varepsilon_k g(2^{d-1}n + k) = 0
for some choice of the εk\varepsilon_k's giving
k=02d+11εkf(2dn+r+k)=0 \sum_{k=0}^{2^{d+1}-1} \varepsilon'_k f(2^d n + r + k) = 0
where ε2k=εk\varepsilon'_{2k} = -\varepsilon_k and ε2k+1=εk\varepsilon'_{2k+1} = \varepsilon_k. This completes the proof of the claim.

Now the proof can be completed as in Solution 1.

(b) Apart from magnitude arguments, one could also use modulo arguments. For example, taking f(0),g(0)f(0), g(0) to be odd and f(n),g(n)f(n), g(n) to be even for every n1n \ge 1 works.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.