Part of 2010 Mathcenter Contest
Source: Mathcenter Contest / Oly - Thai Forum 2010 R1 p5 https://artofproblemsolving.com/community/c3196914_mathcenter_contest