Part of 2015 Singapore Junior Math Olympiad
Source: Singapore Junior Math Olympiad 2015 2nd Round p2 SMO