Part of 2008 Mathcenter Contest
Source: Mathcenter Contest / Oly - Thai Forum 2008 R3 p9 https://artofproblemsolving.com/community/c3196914_mathcenter_contest