Problem 5.
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 . |