Maths Olympiad Prep

Library / Eighth IMAR MATHEMATICAL COMPETITION /3 of 4

Eighth IMAR MATHEMATICAL COMPETITION, 2010

Algebra Difficulty 6.2 National Olympiad Prove it Romania

Show that a sequence (εn)n∈N(\varepsilon_n)_{n \in \mathbb{N}} of plus and minus ones is periodic with period a power of 22, if and only if εn=(−1)P(n)\varepsilon_n = (-1)^{P(n)}, n∈Nn \in \mathbb{N}, where PP is an integer-valued polynomial with rational coefficients.

Solutions — 2

Solution 1

A polynomial PP of degree at most kk with complex coefficients is integer-valued if and only if
P=∑j=0kaj(Xj)=∑j=0kajj!X(X−1)⋯(X−j+1), P = \sum_{j=0}^{k} a_j \binom{X}{j} = \sum_{j=0}^{k} \frac{a_j}{j!} X(X-1) \cdots (X-j+1),
where the aja_j are all integer numbers, so its coefficients are rational.

We show that for such a PP, the sequence ((−1)P(n))n∈N((-1)^{P(n)})_{n \in \mathbb{N}} is periodic with period 2r2^r, where r=min⁡{s:2s>k}r = \min\{s : 2^s > k\}. To this end, it suffices to show that if j<2sj < 2^s and mm is integer, then (mj)≡(m+2sj)mod  2\binom{m}{j} \equiv \binom{m+2^s}{j} \mod 2. These are the coefficients of XjX^j in the expansions of (1+X)m(1+X)^m and (1+X)m+2s(1+X)^{m+2^s}, respectively. The congruence (1+X)2s≡1+X2smod  2(1+X)^{2^s} \equiv 1+X^{2^s} \mod 2 follows easily by induction on ss. Hence (1+X)m+2s=(1+X)m(1+X2s)mod  2(1+X)^{m+2^s} = (1+X)^m (1+X^{2^s}) \mod 2. Since jj is less than 2s2^s, it is immediate that the coefficients of XjX^j in (1+X)m(1+X)^m and (1+X)m+2s(1+X)^{m+2^s} have the same parity.

Conversely, let α0,…,α2r−1\alpha_0, \dots, \alpha_{2^r-1} be arbitrary integers, and let β0,…,β2r−1\beta_0, \dots, \beta_{2^r-1} be the solution to the lower triangular system of linear equations
∑i=02r−1βi(ji)=αj,j=0,…,2r−1. \sum_{i=0}^{2^r-1} \beta_i \binom{j}{i} = \alpha_j, \quad j = 0, \dots, 2^r-1.
Then
∑i=02r−1βi(Xi)=∑i=02r−1βii!X(X−1)⋯(X−i+1) \sum_{i=0}^{2^r-1} \beta_i \binom{X}{i} = \sum_{i=0}^{2^r-1} \frac{\beta_i}{i!} X(X-1)\cdots(X-i+1)
realizes the sequence (−1)αj(-1)^{\alpha_j}, j=0,…,2r−1j = 0, \dots, 2^r - 1, and its extension with period 2r2^r.

Solution 2

Given an integer-valued polynomial PP with rational coefficients, we show that the sequence ((−1)P(n))n∈N((-1)^{P(n)})_{n \in \mathbb{N}} is periodic with period a power of 22. Clearly, it is sufficient to show that, for some non-negative integer ss, the integer numbers P(n)P(n) and P(n+2s)P(n + 2^s) both have the same parity, whatever n∈Nn \in \mathbb{N}. To this end, consider a positive integer mm such that Q=mPQ = mP is a polynomial with integral coefficients (e.g., let mm be the least common multiple of the denominators of the coefficients of PP when written in lowest terms), let 2r2^r be the highest power of 22 dividing mm, and let ss be an integer greater than rr. Write m=2r(2m′+1)m = 2^r(2m' + 1) and fix a positive integer nn. Since 2s2^s divides the difference
Q(n+2s)−Q(n)=m(P(n+2s)−P(n))=2r(2m′+1)(P(n+2s)−P(n)) Q(n + 2^s) - Q(n) = m(P(n + 2^s) - P(n)) = 2^r(2m' + 1)(P(n + 2^s) - P(n))
and s>rs > r, the conclusion follows.

Conversely, given a sequence (εn)n∈N(\varepsilon_n)_{n \in \mathbb{N}} of plus and minus ones which is periodic with period 2r2^r, let
ak={0,if εk=1,1,if εk=−1,k=0,…,2r−1, a_k = \begin{cases} 0, & \text{if } \varepsilon_k = 1, \\ 1, & \text{if } \varepsilon_k = -1, \end{cases} \quad k = 0, \dots, 2^r - 1,
and consider the polynomial (Lagrange)
P=∑k=02r−1ak∏j≠kX−jk−j=∑k=02r−1(−1)k+1ak(1k!∏0≤j<k(X−j))(1(2r−k−1)!∏k<j≤2r−1(X−j))=∑k=02r−1(−1)k+1ak(Xk)(X−k−12r−k−1). \begin{align*} P &= \sum_{k=0}^{2^r-1} a_k \prod_{j \neq k} \frac{X-j}{k-j} \\ &= \sum_{k=0}^{2^r-1} (-1)^{k+1} a_k \left( \frac{1}{k!} \prod_{0 \le j < k} (X-j) \right) \left( \frac{1}{(2^r-k-1)!} \prod_{k<j \le 2^r-1} (X-j) \right) \\ &= \sum_{k=0}^{2^r-1} (-1)^{k+1} a_k \binom{X}{k} \binom{X-k-1}{2^r-k-1}. \end{align*}

Clearly, PP has rational coefficients, is integer-valued, and P(k)=akP(k) = a_k, k=0,…,2r−1k = 0, \dots, 2^r - 1, so εk=(−1)P(k)\varepsilon_k = (-1)^{P(k)}, k=0,…,2r−1k = 0, \dots, 2^r - 1. To prove that the latter extends to all of N\mathbb{N}, it is sufficient to show that P(n)P(n) and P(n+2r)P(n + 2^r) both have the same parity, whatever n∈Nn \in \mathbb{N}. This amounts to showing that if j,m∈Nj, m \in \mathbb{N} and j<2rj < 2^r, then (mj)\binom{m}{j} and (m+2rj)\binom{m+2^r}{j} have the same parity. Recalling that (2ri)\binom{2^r}{i}, i=1,…,2r−1i = 1, \dots, 2^r - 1, are all even, this follows for instance from the identity
(m+2rj)=∑i=0j(m−ij−i)(2ri); \binom{m+2^r}{j} = \sum_{i=0}^{j} \binom{m-i}{j-i} \binom{2^r}{i};
or, which is actually the same, from the argument in Solution 1.

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

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