Part of 2003 Finnish National High School Mathematics Competition
Source: Finnish Mathematics Competition 2003, Final Round, Problem 1