IMC 2023 · Problem 4

Day 130th IMC · Blagoevgrad, Bulgaria

Statement

Let pp be a prime number and let kk be a positive integer. Suppose that the numbers ai=ik+ia_i = i^k + i for i=0,1,,p1i = 0, 1, \ldots, p-1 form a complete residue system modulo pp. What is the set of possible remainders of a2a_2 upon division by pp?

Official solution

Hidden so you can work on the problem first.

Proposed by Tigran Hakobyan, Yerevan State University, Armenia.