Part of 2005 National High School Mathematics League
Source: 2005 National High School Mathematics League, Exam One, Problem 13