MathDB
Modulo Sequence of 2021

Source: KJMO 2021 P2

November 13, 2021
modular arithmeticSequenceInteger sequencenumber theory

Problem Statement

Let {an}\{a_n\} be a sequence of integers satisfying the following conditions.
[*] a1=20212021a_1=2021^{2021} [*] 0ak<k0 \le a_k < k for all integers k2k \ge 2 [*] a1a2+a3a4++(1)k+1aka_1-a_2+a_3-a_4+ \cdots + (-1)^{k+1}a_k is multiple of kk for all positive integers kk.
Determine the 202120222021^{2022}th term of the sequence {an}\{a_n\}.