Problem

Source: 2018 Korea Winter Program Practice Test 1 #1

Tags: functional equation, function, floor function, algebra



Find all functions $f : \mathbb{R} \rightarrow \mathbb{R}$ satisfying the following conditions : 1) $f(x+y)-f(x)-f(y) \in \{0,1\} $ for all $x,y \in \mathbb{R}$ 2) $\lfloor f(x) \rfloor = \lfloor x \rfloor $ for all real $x$.