mods with a twist
Source: EGMO 2023/5
April 16, 2023
EGMOEGMO 2023number theory
Problem Statement
We are given a positive integer . For each positive integer , we define its twist as follows: write as , where are non-negative integers and , then . For the positive integer , consider the infinite sequence where and is the twist of for each positive integer .
Prove that this sequence contains if and only if the remainder when is divided by is either or .