Part of 2013 Vietnam National Olympiad
Source: Problem 1 VMO 2013 day 1
Source: Problem 5 VMO 2013 day 2