MathDB
Periodic sequence modulo f(n)

Source: 2023 Turkey TST D3 P7

March 29, 2023
functionnumber theory

Problem Statement

Let us call an integer sequence {a1,a2,}\{ a_1,a_2, \dots \} nice if there exist a function f:Z+Z+f: \mathbb{Z^+} \to \mathbb{Z^+} such that aiaj(modn)    ij(modf(n))a_i \equiv a_j \pmod{n} \iff i\equiv j \pmod{f(n)} for all i,j,nZ+i,j,n \in \mathbb{Z^+}. Find all nice sequences.