CUMO November 2026

Problem 3

Difficulty D 7.0

Problem

Find all functions such that for all integers and ,

Solution

Answer
for all ; or, for some positive integer and integers with the function , where is the remainder of modulo .

Equivalently: there is an integer such that is periodic with period and for all (for , read “period ” as no condition and “” as equality). For example, gives , and gives for even and for odd .

Proof

Put and .

Claim 1. The equation is equivalent to

Proof. Subtracting from both sides, the equation becomes for all . Replacing by gives (1), and every step is reversible.

So the problem asks for all such that every number is a period of .

Claim 2. There is a unique integer such that the periods of are exactly , and then

Proof. Let be the set of all periods of , i.e. the integers with for all . It is closed under addition and negation, so is a subgroup of and for a unique . Condition (1) says exactly for all , which is (2).

Case . Then for all , so .

Case . Then has period , so depends only on the remainder of modulo , and . By (2) with , .

Verification. gives , so (1) holds. If with , then has period , and for , so is a period of and (1) holds.

Solved it another way? Send a written solution to [email protected]. The most interesting solution, with the solver's name, will be posted.