For , how many integers satisfying the condition: the reminder divided by is smaller than the one divided by .
JMO 2016
Japan Mathematical Olympiad 2016.
Other problems
There is a square grid. We divided this in rectangles along unit squares. How many ways that one of the rectangles doesn't have a edge on basic circumference. Note that we count as different ways that one way coincides with another way by rotating or reversing.