Part of 2011 Irish Math Olympiad
Source: 2011 IrMO Paper 1 Problem 1
Source: 2011 IrMO Paper 2 Problem 1