Distance of integers
Source: Baltic Way 2015
November 8, 2015
number theory
Problem Statement
For any integer , we define to be the number of positive integers with the following property: the distance from to the nearest multiple of is equal to the distance from to the nearest multiple of . Find all integers for which is odd. (Note: The distance between two integers and is defined as .)