Part of 2006 Bundeswettbewerb Mathematik
Source: Germany Bundeswettbewerb Mathematik 2006, Day 1, Problem 1