Unofficial archive — problems, solutions & results © IMC, reproduced with permission.

IMC / 2017 / Problems / Day 1, P3

IMC 2017 · Day 1 · P3

hard

For any positive integer mm, denote by P(m)P(m) the product of positive divisors of mm (e.g. P(6)=36P(6) = 36). For every positive integer nn define the sequence a1(n)=n,ak+1(n)=P(ak(n))(k=1,2,,2016).a_1(n) = n, \qquad a_{k+1}(n) = P(a_k(n)) \quad (k = 1, 2, \dots, 2016). Determine whether for every set S{1,2,,2017}S \subseteq \{1, 2, \dots, 2017\}, there exists a positive integer nn such that the following condition is satisfied:

For every kk with 1k20171 \le k \le 2017, the number ak(n)a_k(n) is a perfect square if and only if kSk \in S.

(Proposed by Matko Ljulj, University of Zagreb)

Solution (official)

We prove that the answer is yes; for every S{1,2,,2017}S \subset \{1, 2, \dots, 2017\} there exists a suitable nn. Specially, nn can be a power of 2: n=2w1n = 2^{w_1} with some nonnegative integer w1w_1. Write ak(n)=2wka_k(n) = 2^{w_k}; then 2wk+1=ak+1(n)=P(ak(n))=P(2wk)=1242wk=2wk(wk+1)2,2^{w_{k+1}} = a_{k+1}(n) = P(a_k(n)) = P(2^{w_k}) = 1 \cdot 2 \cdot 4 \cdots 2^{w_k} = 2^{\frac{w_k (w_k + 1)}{2}}, so wk+1=wk(wk+1)2.w_{k+1} = \frac{w_k (w_k + 1)}{2}. The proof will be completed if we prove that for each choice of SS there exists an initial value w1w_1 such that wkw_k is even if and only if kSk \in S.

Lemma. Suppose that the sequences (b1,b2,)(b_1, b_2, \dots) and (c1,c2,)(c_1, c_2, \dots) satisfy bk+1=bk(bk+1)2b_{k+1} = \frac{b_k (b_k + 1)}{2} and ck+1=ck(ck+1)2c_{k+1} = \frac{c_k (c_k + 1)}{2} for k1k \ge 1, and c1=b1+2mc_1 = b_1 + 2^m. Then for each k=1,mk = 1, \dots m we have ckbk+2mk+1(mod2mk+2)c_k \equiv b_k + 2^{m-k+1} \pmod{2^{m-k+2}}.

As an immediate corollary, we have bkck(mod2)b_k \equiv c_k \pmod 2 for 1km1 \le k \le m and bm+1cm+1+1(mod2)b_{m+1} \equiv c_{m+1} + 1 \pmod 2.

Proof. We prove the by induction. For k=1k = 1 we have c1=b1+2mc_1 = b_1 + 2^m so the statement holds. Suppose the statement is true for some k<mk < m, then for k+1k + 1 we have ck+1=ck(ck+1)2(bk+2mk+1)(bk+2mk+1+1)2=bk2+2mk+2bk+22m2k+2+bk+2mk+12==bk(bk+1)2+2mk+2mk+1bk+22m2k+1bk(bk+1)2+2mk(mod2mk+1),\begin{align*} c_{k+1} = \frac{c_k (c_k + 1)}{2} &\equiv \frac{\bigl( b_k + 2^{m-k+1} \bigr) \bigl( b_k + 2^{m-k+1} + 1 \bigr)}{2} \\ &= \frac{b_k^2 + 2^{m-k+2} b_k + 2^{2m-2k+2} + b_k + 2^{m-k+1}}{2} = \\ &= \frac{b_k (b_k + 1)}{2} + 2^{m-k} + 2^{m-k+1} b_k + 2^{2m-2k+1} \equiv \frac{b_k (b_k + 1)}{2} + 2^{m-k} \pmod{2^{m-k+1}}, \end{align*} therefore ck+1bk+1+2m(k+1)+1(mod2m(k+1)+2)c_{k+1} \equiv b_{k+1} + 2^{m-(k+1)+1} \pmod{2^{m-(k+1)+2}}.

Going back to the solution of the problem, for every 1m20171 \le m \le 2017 we construct inductively a sequence (v1,v2,)(v_1, v_2, \dots) such that vk+1=vk(vk+1)2v_{k+1} = \frac{v_k (v_k + 1)}{2}, and for every 1km1 \le k \le m, vkv_k is even if and only if kSk \in S.

For m=1m = 1 we can choose v1=0v_1 = 0 if 1S1 \in S or v1=1v_1 = 1 if 1S1 \notin S. If we already have such a sequence (v1,v2,)(v_1, v_2, \dots) for a positive integer mm, we can choose either the same sequence or choose v1=v1+2mv'_1 = v_1 + 2^m and apply the same recurrence vk+1=vk(vk+1)2v'_{k+1} = \frac{v'_k (v'_k + 1)}{2}. By the Lemma, we have vkvk(mod2)v_k \equiv v'_k \pmod 2 for kmk \le m, but vm+1v_{m+1} and vm+1v'_{m+1} have opposite parities; hence, either the sequence (vk)(v_k) or the sequence (vk)(v'_k) satisfies the condition for m+1m + 1.

Repeating this process for m=1,2,,2017m = 1, 2, \dots, 2017, we obtain a suitable sequence (wk)(w_k).

How the field did

contestants scored
315
average (of 10)
2.98
solved (≥ 80%)
25.4%
near-0 (≤ 10%)
57.5%
discrimination
0.58

Score distribution (field cohort)

Computed on contestants with a meaningful total (field cohort); discrimination is the corrected item–total correlation.

Similar problems

IMC 2014 · Day 1 · P4hardavg 2.7/10 · solved 25% · near-0 63% · disc 0.45
IMC 2025 · Day 1 · P4hardavg 2.9/10 · solved 23% · near-0 62% · disc 0.53
IMC 2012 · Day 2 · P8hardavg 2.4/10 · solved 22% · near-0 71% · disc 0.55
IMC 2022 · Day 2 · P6hardavg 3.1/10 · solved 21% · near-0 55% · disc 0.53